![]() Sinewave Tables were generated using this calculator: For devices with A0 pulled HIGH, use 0圆1 Please note that this breakout is for the MCP4725A0. This is the I2C Address of the MCP4725, by default (A0 pulled to GND). #include //Include the Wire library to talk I2C This code builds off the sketch written by Mark VandeWettering, which can be found here: This code is beerware if you see me (or any other SparkFun employee) at the local,Īnd you've found our code helpful, please buy us a round! Waveforms to be generated by the MCP4725 DAC. This sketch takes data from a lookup table to provide Open up the Arduino IDE, and copy in this snippet of code: language:c ![]() In this example, the code will generate a simple sine wave. With everything hooked up, it's time to upload some code to the Arduino that will allow the breakout to send analog signals. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |