Creating a sine wave generator without a hardware DAC and only 3 GPIOs may seem like an impossible task but Sergey was up to it! In this tutorial, we show how, using an R-2R resistor array and a PIC10F200, you can create a simple and low cost sine wave generator.
This video has a little more complicated hardware and the written tutorial goes into more detail on both the hardware and how Sergey selected the values used. Also, while a lot simpler than our more recent tutorials, if you want the code that you can copy and paste or need some more time going through everything line by line, check out the written tutorial that this video is based off of: [ Ссылка ]
If you find this interesting, subscribe to the CircuitBread channel for more videos on microcontrollers and other beginner and intermediate electronics!
Table of Contents
0:00 Introduction
0:21 Hardware setup with an R-2R resistor array
1:31 Discussion on the resolution of the sine wave with only 3 GPIOs
2:12 How we did the math to know what to output
3:48 Reviewing the very simple assembly code
4:47 Showing the outputs at different points in the R-2R array
8:07 Restrictions and ways around the restrictions with this setup
For electronics tools, tutorials, equations and more check out our site: [ Ссылка ]
And check out our Friends of CircuitBread, who offer special discounts, product samples, resources and more to our users: [ Ссылка ]
CircuitBread is joining the fight to help people more easily learn about and use electronics. With an ever-growing array of equations, tools, and tutorials, we're striving for the best ways to make electronics and electrical engineering topics more accessible to everyone.
Connect with CircuitBread:
Instagram ➤ [ Ссылка ]
Facebook ➤ [ Ссылка ]
Twitter ➤ [ Ссылка ]
Ещё видео!