AN-1111 Sine Wave Generator
In this app note we will use pulse width modulation coupled with an external filter to create an approximation of a sine wave using a SLG46531V device. We will then interface with this GreenPAK™ using an Arduino Uno and have it play a short song. This functionality will be created by writing to several counters via I2C and triggering a note by toggling a GPIO.
- AN-1111.zip- (583 KB)
Sine Wave, PWM, Arduino, I2C, Duty Cycle, Filter