• 1 Post
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle



  • Interesting suggestions, I would not have tried such low frequencies except based on your suggestion and it turns out that going very low, below 1000Hz and even down to 100Hz causes the power supply whine to almost entirely go away. I also have a 470uF capacitor in between the power rails now too.

    This range is a usable - there is no visible flickering even at very low duty cycles.

    From what I understand in the reference guides the LEDC library attaches directly to the 80mhz or 40mhz esp32 hardware clock for PWM. Intuitively I’d have guessed that higher frequency would always mean less discernable audible feedback, but seems not in this case.