Sin wave output with PWM pin output amplitude question

@MarkT: I was under the impression that you could only drive one DAC per board So I went with the high speed PWM option as I was hoping to drive multiple phases in the future. I had this working great for low frequencies but I had my RC filter designed poorly. That is what initiated my post. Then @johnerrington, @jremington, and @build_1971 helped me solve that very quickly and @johnerrington led me to realize that I also had my PWM pins set to too low of a frequency with respect to the onboard clock since my Atmega is an older board. Once this was solved, I was able to get a decent sin wave output at higher frequencies with a higher number of sampling points. Now I am just playing around and cleaning it up when I have time while using the website @johnerrington provided to help me clean it up.

1 Like