Going Beyond Arduino # 8: PWM as a Digital to Analog Converter

author Craig Hollinger   2 год. назад
10,817 views

99 Like   2 Dislike

Going Beyond Arduino # 9: PWM as Direct Digital Synthesis

In this video I demonstrate a more versatile method of digitally generating a signal called Direct Digital Synthesis (DDS). The frequency of the signal can now be varied, but only by re-compiling the code. I'll demonstrate a method of making frequency changes on-the-fly in a future video. Source code available at: https://github.com/hollingerc/going-beyond-arduino/blob/master/pwmDDS.c

Going Beyond Arduino # 10: PWM D-to-A vs R2R Ladder D-to-A

In this video I introduce another type of D/A converter, the R2R Ladder. I discuss the benefits and limitations of both. Link to a schematic of the R2R Ladder: https://github.com/hollingerc/going-beyond-arduino/blob/master/LadderDDS%20schematic.pdf

Converting an Arduino PWM Output to a DAC Output

In this video we look at how to convert a PWM output or signal to a analog or DAC signal. To get the Arduino code from the video: https://forcetronic.blogspot.com/2018/02/converting-arduino-pwm-output-to-dac.html To access the low pass filter tutorial mentioned in the video got to: https://youtu.be/gW5oF8vcYb8

Electronic Basics #10: Digital to Analog Converter (DAC)

Twitter: https://twitter.com/GreatScottLab Facebook: https://www.facebook.com/greatscottlab Previous video: http://youtu.be/np6yp-cN6iE In this video I will show you how a Digital to Analog converter works and how to use one. I will mainly talk about an 8bit R-2R DAC. But also a bit about voltage followers and I2C devices which can also do the job. You want to support my videos? You can browse and buy tools&materials from my Amazon Store. This way I get a small commission: Amazon.de: http://astore.amazon.de/great043-21 Amazon.com:http://astore.amazon.com/gre09a-20 Amazon.co.uk: http://astore.amazon.co.uk/gre0b-21 Or you feel super generous and want to use this Amazon link as your Amazon home page. And do not worry, your purchases are all anonym and the prices are all the same: Amazon.de:http://www.amazon.de/?_encoding=UTF8&camp=1638&creative=19454&linkCode=ur2&site-redirect=de&tag=great043-21&linkId=ORZEQZEOVJAFURCZ Amazon.com:http://www.amazon.com/?_encoding=UTF8&camp=1789&creative=390957&linkCode=ur2&tag=gre09a-20&linkId=I5NDCEAVCD2OWM4S Amazon.co.uk:http://www.amazon.co.uk/ref=as_li_ss_tl?_encoding=UTF8&camp=1634&creative=19450&linkCode=ur2&tag=gre0b-21

Digital to Analog Converter using PWM

This a short explanation how a PWM DAC works. It is a kind of technical background knowledge you might be interested in for some upcoming sound synthesis projects. It also shows a simple low pass filter. Next video will be about the R-2R resistor ladder.

By connecting a low-pass filter to the PWM output, we are able to generate a voltage. The voltage can be varied by varying the PWM duty cycle. This video demonstrates this by generating a sine wave.

Previous video on PWM:
https://youtu.be/j2TYdMfqI_c

Source code is available at:
https://github.com/hollingerc/going-beyond-arduino/blob/master/pwmDAC.c

Comments for video: