Go Down

Topic: PWM to DC (Read 2511 times) previous topic - next topic

MomoWen

Hi , Try this one , the schematic is verified and for your reference.
If you want buy exist module , please visit:
http://www.ebay.com/itm/3CH-PWM-DAC-For-UNO-ATMEGA2560-STM32-8051-PIC-Low-Cost-Module-16bit-DAC-DAC-3000-/321910893394?hash=item4af3626b52:g:WDcAAOSwhcJWOQ1M

ChrisTenone

im not use this, im using LINX in LabVIEW.
i see sine wave
You are using LV in oscilloscope mode, right - x=time, y=volts ?
Are you seeing a sine wave, or a lopsided sawtooth?

First, do this in your sketch: analogWrite(pin, 128);

Then attach a resistor (3300 to 4700 ohms) to the pin. Then attach one lead of a capacitor (4.7 to 10 microfarads) to the resistor (to the end that is NOT attached to the Arduino pin.). Attach the other end of the cap to ground. If you are using a polarized capacitor, put the negative side to ground.

Now observe the signal between the junction of the resistor and the capacitor, and ground.
It should be flat, and 2.5 volts.
What, I need to say something else too?

maor444

I succed. i used simple RC circuit. R=3.9K C=30uF. i got 0.025 ripple.

Go Up