Questions tagged [dac]
A digital-to-analog converter (DAC) is a system that converts a digital signal into an analog signal.
12 questions
3
votes
2
answers
167
views
Why are there extra steps on DAC output?
Testing the DAC on the Feather M4 Express (SAMD51 microcontroller). Tried to generate a square wave with the DAC.
void setup() {
analogWriteResolution(12);
}
void loop() {
analogWrite(A0, 0);
...
1
vote
3
answers
159
views
How can I create a short (0.5us) electrical pulse (50mV amplitude)
I'm working on a charged particle detector consisting of a plastic scintillator and a SiPM to create an electrical signal and I'm using an arduino with an ADC to detect these pulses.
I'd like to ...
0
votes
0
answers
875
views
ESP-C3 Super mini MAX98357A and SD Card Reader together
After a lot of research and minimum results about pin mapping and particular specific configurations for SPI and I2S on ESP-C3, i about to give up on this.
I have recently bought ESP32-C3 Supermini ...
-1
votes
1
answer
142
views
Generate a sine wave with a predefined frequency and amplitude via DAC0 or DAC1 with Arduino Due
Good Morning to everyone,
I am a PhD Student in experimental fluid mechanics at the University of Naples "Federico II", Italy. I am working on Arduino Due card and i am novel in applications ...
1
vote
0
answers
61
views
Audio range with custom waveshape
I am planning to use several Arduino to produce audio range analog signals. I need to use custom waveshapes generated on the fly. As far as I understand, there are two paths:
Aquiring a DAC, but can ...
1
vote
0
answers
333
views
Proper wiring for a HiLetgo DAC to Arduino
I have been having trouble finding any recourses for a DAC chip that I bought. It is the HiLetgo PCM5102 DCA.
https://www.amazon.com/gp/product/B07Q9K5MT8/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&...
2
votes
1
answer
123
views
Fast PWM: Resolution in hertz
I am trying to get a nice sounding varying PWM to DAC, and intend to use a Sallen Key as part of an active low pass filter.
I set the Fast PWM at a max of 255 (WGM1[0-3] = 5) and set/clear OC1A upon ...
1
vote
0
answers
3k
views
Using ESP32 to measure vbat
I'm using ESP32 to read an analog value of a liPo battery (3.7v-4.2v).
Since ESP32 DAC's is 3.3v I'm using a voltage divider ( 2x10K resistors ), to split bat's voltage into ESP's GPIO36. So far ...
1
vote
1
answer
486
views
Multiple variant.cpp entries for same physical pin
Some variant.cpp files have more than one entry that points to the same physical pin. For example (from Arduino Zero's file):
// 14..19 - Analog pins
// --------------------
{ PORTA, 2, PIO_ANALOG, ...
0
votes
1
answer
80
views
Arduino and DAC
this might be more general electronics question, forgive me if this is not the correct place to ask.
I am atempting to use the arduino and MCP4725 breakout board to inject 4 different voltages into ...
0
votes
1
answer
3k
views
MCP4725 I2C address
I want to use four of MCP4725 DAC module at the same time but it only has two I2C addresses which can be set via jumpers:
In page 10 of the datasheet it says:
Device Address Selection pin. This pin ...
3
votes
1
answer
2k
views
Creating a sine wave with a DAC and feeding it back
I want to produce a digital sine wave, send it to DAC0, and then receive it back as input on A0 and plot the graph. I am using an Arduino Due. I wrote the following code:
#define maxSamplesNum 120
#...