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

author Craig Hollinger   2 год. назад
12,247 views

117 Like   4 Dislike

Arduino Basics 103: Library, Port Manipulation, Bit Math, Faster PWM/ADC

Support me for more videos: https://www.patreon.com/GreatScott Previous video: https://youtu.be/UvH49nzpJts Arduino Basics 101: https://youtu.be/BtLwoNJ6klE Arduino Basics 102: https://youtu.be/YT3birSKLLU Facebook: https://www.facebook.com/greatscottlab Twitter: https://twitter.com/GreatScottLab You can get Arduino boards here: Ebay: Arduino Uno: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=281638689314&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg 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=162002876661&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg Arduino Pro Mini: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=331809989705&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg FTDI board: http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=381374421597&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg Amazon.com: Arduino Uno: http://amzn.to/2lw4DEt Arduino Nano: http://amzn.to/2kBp43B Arduino Pro Mini: http://amzn.to/2kVVFxc FTDI board: http://amzn.to/2mbPm8V Amazon.de: Arduino Uno: http://amzn.to/2ljDLFL Arduino Nano: http://amzn.to/2ljnq3J Arduino Pro Mini: http://amzn.to/2kMv0ly FTDI board: http://amzn.to/2ljvuRY In this third and final epsiode of the Arduino Basics video series I will talk about how to use libraries, how you can use port manipulation to turn a pin on/off faster and how you can modify the registers of the Arduino µC with Bit Math in order to increase the frequency of the PWM Signal or the sampling rate of the ADC. Music: In the Hall of the Mountain King, Kevin MacLeod Killing Time, Kevin MacLeod (incompetech.com) 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

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.

MOSFETs and How to Use Them | | AddOhms #11

MOSFETs are the most common transistors used today. They are switches that can be used an Arduino, BeagleBone, or Raspberry Pi. This is part 2 of a 2 part series, which covers MOSFETs. (Part 1 Covered BJTs). When it comes down to it, MOSFETs are pretty complicated devices. This video will cover the basics of what you need to use them in your circuit, including calculating if you need a heat sink or not. Learn what they are and how to use them. Part 1 (BJTs): https://www.youtube.com/watch?v=sRVvUkK0U80 Show Notes: http://www.addohms.com/ep11 Follow us on twitter: @addohms

10 Programming Languages in ONLY 15 minutes!

Learn web development like a pro: https://shop.killervideostore.com/ Python Course: https://www.killervideostore.com/video-courses/beginners_python_3.php Learn about 10 programming languages in only 15 minutes! The point of this video is to give you an overview of each of these popular languages, and how they are used in the real world. So it is a mix of programmatic and business concerns about each of the programming languages. I cover C++, Java, Swift, JavaScript, SQL, PHP, Python, C, Ruby and C#. There are many more programming languages out there, but these are are the most important in 2018. Learn Python 3 fast: http://www.killervideostore.com/python/ Create an AMAZING Business: https://goo.gl/kpVUD2 My Instagram: https://www.instagram.com/stefanmischook/?hl=en Thanks! Stef

Top 10 best arduino music projects

-------------------Top 10 best arduino music projects--------------------------- 0:00 - intro music https://goo.gl/YswBdN 0:06 - Pirate with Floppy and Arduino https://goo.gl/E2SDGG 0:55 - The Typewriter Symphony https://goo.gl/ZJp2TU 1:27 - Arduino Guitar https://goo.gl/uKpDDk 1:54 - Super Mario stepper motor music https://goo.gl/WZ7TVf 2:17 - Coke Piano made with Arduino https://goo.gl/m7x3Kt 2:48 - Robot Guitar - Arduino - Jessica https://goo.gl/zzLz43 3:09 - Arduino Tesla Coil https://goo.gl/yeVqex 3:32 -Build MIDI Controller with 400 Keys https://goo.gl/27LZpS 4:03 -Meganome -- DIY Arduino MIDI Controller https://goo.gl/kps4kb 4:23- Hello, 450kV Tesla Coil & Robot Orchestra cover https://goo.gl/H9wYwZ

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: