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

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); delay(1); analogWrite(A0, 4095); …
misk94555
  • 133
  • 4
3
votes
1 answer

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 #define Sample 50000000/maxSamplesNum // sample for…
2
votes
1 answer

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 comparing with OCR1A (1<< COM1A1) I also update…
B7th
  • 167
  • 8
1
vote
3 answers

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 create a circuit which can emulate the pulse from the…
Milfod
  • 11
  • 1
1
vote
0 answers

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 I send instructions fast enough (the Arduino…
huhu roro
  • 11
  • 1
1
vote
0 answers

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&psc=1 There are 6 ports to be routed. VIN, GND (I…
Jacob
  • 111
  • 2
1
vote
0 answers

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 nothing new or not well documented on the web. Using…
guyd
  • 1,049
  • 2
  • 26
  • 61
1
vote
1 answer

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, PIN_ATTR_ANALOG, ADC_Channel0, NOT_ON_PWM,…
Andrew M.
  • 145
  • 6
0
votes
0 answers

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 because of its size and versatility, but i'm facing…
0
votes
1 answer

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 an existing line that comes from V1. V1 is the…
amet
  • 3
  • 1
0
votes
1 answer

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 can be tied to VSS or VDD, or can be actively…
ElectronSurf
  • 814
  • 4
  • 17
  • 43
-1
votes
1 answer

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 using it. First, I need to generate a sine wave with…