Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 550 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 550 Bytes

SineWave

Sine wave library for Arduino. Produces a sine signal and passes the output to a DAC pin.

Features:

  • Produces a sine wave using a high sampling frequency.
  • Uses a 50 microsecond sample time as the default.
  • Uses DAC0 as the default output pin.
  • Can produce two tones at once.
  • Can produce very low frequencies (below 1 Hz, low enough to blink an led) by increasing the sample time.

A neat thing to try is to connect the sine wave DAC output pin to an ADC input pin to demonstrate data conversion full circle.