PWM frequency esp32
Moderators: grovkillen, Stuntteam, TD-er
PWM frequency esp32
Good afternoon. I have a simple simple question that doesn't require a long discussion. Since I couldn’t find a topic where I could ask such questions, I decided to create one.
here is my question: what is the maximum PWM frequency that the esp32 can provide? Is it possible to use esp32 with espeasy to operate an induction cooker?
here is my question: what is the maximum PWM frequency that the esp32 can provide? Is it possible to use esp32 with espeasy to operate an induction cooker?
Last edited by dr.zorg82 on 20 Jan 2024, 13:17, edited 1 time in total.
Re: simple questions
The simple answer can be found in the wonderful documentation of ESPEasy:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio
https://espeasy.readthedocs.io/en/lates ... ernal-gpio
Edit:Frequency (in Hz) will be set to 1000 Hz when not given. Frequencies above 30 kHz are not stable and will likely crash the ESP.
Probably yes...
Re: simple questions
That 30 kHz limit was from the ESP8266 age, which dpes it all in software.
The ESP32 does use hardware operated PWM which is much more capable.
It can do higher frequencies, but as always it will reduce the granuality of how many steps you can make between 0 and 100%.
N.B. there is very likely a difference between "LittleFS" builds and "SPIFFS" builds as recently the LittleFS builds are using ESP-IDF5.1 code which does things a bit different. (actually quite a lot different....)
The ESP32 does use hardware operated PWM which is much more capable.
It can do higher frequencies, but as always it will reduce the granuality of how many steps you can make between 0 and 100%.
N.B. there is very likely a difference between "LittleFS" builds and "SPIFFS" builds as recently the LittleFS builds are using ESP-IDF5.1 code which does things a bit different. (actually quite a lot different....)
Re: simple questions
What makes it less simple is that the subject doesn't have a subject: When including some of the key terms of your question in the subject, it is much (ESP)easier to recognize it later
For new questions, please start a new thread/topic, as 'piggy-backing' on other questions just makes it impossible to find it when trying to continue a thread.
/Ton (PayPal.me)
Re: PWM frequency esp32
ок. Thank you. The question is related to the fact that I have an induction cooker, but its power adjustment has a wide step (1000-1300-1500-1800-2100-2500-3000-3500) and I want to make a smoother power adjustment. I'm wondering whether it will work or not
Re: PWM frequency esp32
What frequency does the current controller of the induction heater currently use?
Does it also the same frequency for all steps?
When using a pan which isn't the optimal size, or positioned slightly off-center, I can hear the induction coils, so it probably isn't running at several 10's of kHz.
Or is it some mechanical resonance frequency I'm hearing and does the induction heater actually use much higher frequencies?
Does it also the same frequency for all steps?
When using a pan which isn't the optimal size, or positioned slightly off-center, I can hear the induction coils, so it probably isn't running at several 10's of kHz.
Or is it some mechanical resonance frequency I'm hearing and does the induction heater actually use much higher frequencies?
Re: PWM frequency esp32
I haven’t taken frequency measurements on my induction cooker yet. but there is a desire to buy an inexpensive induction cooker and do experiments on it, and if the experiment is successful, then modify my cooker.
Re: PWM frequency esp32
As far as i understand you´ll also need a form of feedback? If so i guess a ESPEasy only solution is out of the question since the analog input would be too slow (@TDer correct me if i am wrong).
Here is a very simple project with an Arduino Uno:
https://www.electronicsdna.com/simple-q ... duino-uno/
Used frequency there is 17Khz.
But is this exactly what you want? Somehow i think you only look for a way to control the excising circuitry.
What do these values mean?
Re: PWM frequency esp32
I think what he meant is that you likely also need some feedback loop to keep the oscillation stable.
I don't know how exactly those induction cooking heaters work, but I can imagine that the coil will have some resonance frequency which will be changed when placing a pan on it.
Exactly like how a metal detector operates.
And you also need to stop feeding large currents when the pan is no longer present or misplaced or else your induction plate will get damages.
Like I said, I have no clue how they actually operate, just thinking out loud.
I don't know how exactly those induction cooking heaters work, but I can imagine that the coil will have some resonance frequency which will be changed when placing a pan on it.
Exactly like how a metal detector operates.
And you also need to stop feeding large currents when the pan is no longer present or misplaced or else your induction plate will get damages.
Like I said, I have no clue how they actually operate, just thinking out loud.
Re: PWM frequency esp32
Same here
Regarding that i might be worth to investigate how the signal of the powerlevel selector is read and maybe piggyback on that with a microcontroller rather than invent the wheel new and building a hole new circutry...
Last edited by chromo23 on 21 Jan 2024, 13:50, edited 1 time in total.
Re: PWM frequency esp32
Yep this sounds like a project with high failure rate with severe consequences.
Maybe using a variac is easier?
But I have no clue what high frequency switching will do to a transformer like being used in a variac.
It may introduce seriously high voltages due to interrupting current in a transformer coil.
Maybe using a variac is easier?
But I have no clue what high frequency switching will do to a transformer like being used in a variac.
It may introduce seriously high voltages due to interrupting current in a transformer coil.
Re: PWM frequency esp32
thanks for support. I think that a variac is not suitable for these purposes, and power adjustment is performed using a microcontroller using control buttons. Therefore, in order to change the adjustment step, I need to change the microcontroller firmware, and I’m unlikely to succeed. first I need to take the frequency readings from my induction cooker and then make a decision. but as usual there is not enough time to pursue my hobby.
Re: PWM frequency esp32
I read about the principle of operation of an induction cooker and concluded that not everything is so simple. and adjust frequency, voltage and duty cycle. All this can be done, but in my case the result is not worth the effort. I decided to do without the ESP, and just install a variable resistor and this adjustment should be enough for me.
Re: PWM frequency esp32
Hmm where is this variable resistor being placed?
If it is just in the low voltage controller circuit, then I guess it's probably not really dangerous.
But maybe best to use one with plastic to the outside as it is probably not isolated from mains.
If it is in the high voltage circuit, then please reconsider as it is likely at least a fire hazard or it may not work at all as it may interfere with the sensing part to see if there's a pan placed on top of the induction coil.
If it is just in the low voltage controller circuit, then I guess it's probably not really dangerous.
But maybe best to use one with plastic to the outside as it is probably not isolated from mains.
If it is in the high voltage circuit, then please reconsider as it is likely at least a fire hazard or it may not work at all as it may interfere with the sensing part to see if there's a pan placed on top of the induction coil.
Re: PWM frequency esp32
There is a 500 ohm trim resistor on the motherboard. it is replaced with a variable resistor and installed on the panel of the induction cooker. the resistor is set to low voltage. with its help I can smoothly adjust the power at each stage, that is, at the 2500 watt stage can regulate from (approximately) 2600 to 2000 watts.
Who is online
Users browsing this forum: Google [Bot] and 1 guest