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

author Craig Hollinger   2 год. назад
13,416 views

132 Like   4 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

RC Low Pass Filters (make an analog value from PWM)

http://quicknuclearscience.webs.com/ I start off a video series showing you how to get an analog voltage or low frequency signal out of a digital system using PWM and low pass filters. This first video focuses on the basic concepts of a RC low pass filter, how they work with PWM, optimizing the cutoff frequency, and selecting component values.

DIY Solar Tracker || How much solar energy can it save?

Easy Quote & Order Online ($2 for 10 boards): https://jlcpcb.com Previous video: https://youtu.be/SPoMvuRxwFw Photovoltaic Off-Grid System: https://youtu.be/WU16AJwvNhE Power Meter/Logger: https://youtu.be/lrugreN2K4w Facebook: https://www.facebook.com/greatscottlab Twitter: https://twitter.com/GreatScottLab Support me for more videos: https://www.patreon.com/GreatScott?ty=h Mini Pan Tilt from Thingiverse: https://www.thingiverse.com/thing:708819 More project information (code, schematic, parts list,.....) on Instructables: https://www.instructables.com/id/DIY-Miniature-Solar-Tracker/ Parts list (incomplete, see Instructables for more, affiliate links): Amazon.com: 1x Arduino Nano: https://amzn.to/2MCkpI2 2x SG90 Servo: https://amzn.to/2lJDT24 4x Photoresistor: https://amzn.to/2tHYY1a 4x 1kohm Resistor: https://amzn.to/2KjGBds Ebay: 1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=201539955347&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg 2x SG90 Servo: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=253673114521&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg 4x Photoresistor: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=401051315285&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg 4x 1kohm Resistor: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=371759674335&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg In this project I will show you how to create a solar tracker which like the name implies can follow the movement of the sun throughout the day. And at the end I will show you the energy harvest difference between a solar tracker mounted solar panel and a flat mounted solar panel. Thanks to JLCPCB for sponsoring this video Visit https://jlcpcb.com to get professional PCBs for low prices Music: 2011 Lookalike by Bartlebeats Ecstatic Wave, Jens Kiilstofte https://machinimasound.com/music

#85: Basics of R2R Ladder DAC | Digital Analog Conversion, Tutorial R-2R DAC Thevenin Superposition

This video gives the basics of R-2R resistor networks and their use for digital to analog conversion (DAC). It discusses why these networks have a constant output impedance of R, and how the digital inputs contribute to the composite analog output in a binary scaled manner. The network is analyzed easily when broken down into segments using both Thevenin equivalent circuits and Superposition. Practical examples are shown with a homemade R-2R network, an Arduino Uno, a mixed signal oscilloscope and a fun XY application. A copy of the drawings in this video can be found here: http://www.qsl.net/w/w2aew//youtube/Basics_of_R-2R_Ladder_DACs.pdf

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: