I am trying to create PWM pulse which frequency I should control with potentiometer in range 0-500kHz. The pulse width must be 2,5microseconds.
I am using ESP32 Dev Module but LEDC does not go through compliation.
ESP32 3.1.0 board manager installed and I am using IDE 2.3.4
Any helpful comments ?
Welcome to the forum
The LEDC implementation in the Espressif ESP32 board files was changed in the release 3.x board files and this has caused some problems
Which version of the board files are you using ?
Thanks for your reply !
I am using 3.1.0 esp32 by espressif.
Would it help if I remove it and take some older version ?
That would be a good start to prove if is the problem
If you search the forum for recent LEDC problems you will find examples of other solutions using the latest version
Will do that, thx
You need 2.0.17
Even with the new APIs for LEDC mentioned here?
https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html
You are right. Back in business with 2.0.17, thx
I haven't checked, but if he is using a library that has not been upgraded by it's 3rd party owner to Boards 3 the the only sensible alternative is to roll back to 2.0.17.
My Mac is my primary machine and itg is using Boards3, my Win11 mini PC is being held at 2.0.17 until all 3rd part libs are updated.
After changing to older version compiling has not been an issue.
I am trying to control AC servo RPM and direction of rotation with MCPWM and I was able to create pulses with opposite phases without an issue. The pulses are both 0v and above. In order to make servo controller to react, should these pulses be "opposite" sides of 0v ?
The servo is expecting pulses between 0V and 5V, not pulses greater and less than 0V
So, complementary pulse is also 0-5V ? Only 180 degrees different phase ?
I am a bit confused. The schematic shows 5 wires: PULSE+, PULSE-, SIGN+, SIGN- and GND.
Which schematic are you referring to ?
I thought that you were using a standard RC servo, but it seems not
Yes, no. It is an AC servo with a controller. The controller can be inputted various ways but I am using "simple" PWM input.
OK. Ignore my advice about the polarity of the PWM signal
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
