There were a few questions in the forum about generating sine waves on the MCP4725 I2C DAC. To show one way you might accomplish this, an example sketch was added to the Adafruit MCP4725 library. You can set the resolution between 9-bit and 5-bit, depending on your requirements and how much flash space you can spare. 5 and 6-bit output would benefit from a basic filter to smooth the output out, but 7-bits and higher is reasonably smooth, as can be seen in the image above comparing the out from an Agilent function generator (in blue) and the MCP4725 sketch at 8-bit resolution (in yellow).
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — “ORANGE PI: MEETING WITH STEVEN ZHAO IN SHENZHEN”
Wearables — Design with IFTTT
Electronics — Keep track of those rails!
Biohacking — Why Our Eyes Cannot Look at a Solar Eclipse
No comments yet.
Sorry, the comment form is closed at this time.