Hi everyone,
I'm working on a project using the Arduino Zero, and I need to generate a swept sine wave (i.e., a sine wave whose frequency changes over time, also called a chirp signal).
I understand that the Arduino Zero has a DAC, which should be useful for outputting analog signals. My goal is to generate a sine wave that sweeps from a lower frequency (e.g., 1 Hz) to a higher one (e.g., 100 Hz) over a given sweep rate.
Has anyone done something similar with the Zero? What would be the best approach for this?
I'm particularly interested in:
- Whether to use a lookup table or generate the values on the fly
- How to control the frequency sweep (e.g., linear or logarithmic)
- Timing accuracy and DAC update rate limits
- Any sample code or library recommendations
Thanks in advance!