Search found 4 matches

by Vernonvand
Wed Jan 11, 2023 8:23 am
Forum: Hardware
Topic: ESP32-WROOM PWM output jitter
Replies: 6
Views: 2918

Re: ESP32-WROOM PWM output jitter

Just to circle back on this. I also tried setting the frequency to be a whole multiple of the clock frequency and it still produced jitter. My conclusion is that, at the frequencies I am working, the ESP32 is not capable of producing a jitter free PWM output. I tried a few external clock sources, wh...
by Vernonvand
Sat Jan 07, 2023 8:39 pm
Forum: Hardware
Topic: ESP32-WROOM PWM output jitter
Replies: 6
Views: 2918

Re: ESP32-WROOM PWM output jitter

Yes I realise it's an Arduino specific call, but what I am saying is that it is mapped to the ESP LEDC calls, so I don't believe that the issue I am experiencing is because I'm using Arduino. Do you have any feedback on this ... Maybe I have misunderstood, but you seem to be suggesting that the ESP3...
by Vernonvand
Sat Jan 07, 2023 6:37 am
Forum: Hardware
Topic: ESP32-WROOM PWM output jitter
Replies: 6
Views: 2918

Re: ESP32-WROOM PWM output jitter

Thanks for the response. I don't believe the issue is anything to do with using the Arduino IDE, as the "ledc" functions map to the native LEDC functions in the ESP ... as far as I can tell. The frequency returned from the ledcSetup() function is not the frequency I set, but is instead slightly lowe...
by Vernonvand
Sat Jan 07, 2023 4:58 am
Forum: Hardware
Topic: ESP32-WROOM PWM output jitter
Replies: 6
Views: 2918

ESP32-WROOM PWM output jitter

Hi all, I am trying to produce a square wave output from the ESP32-WROOM, but the resulting output jitters, rather than being stable. The desired frequency is around 134.2kHz and I am using the code below to produce it. I am checking the output on an oscilloscope and it appears that the frequency (o...