Hi ,
I am trying to build a high power LED dimmer using the ESP PWM but i have a problem PWM frequency is only 1khz this produces a buzzing sound since 1khz is audible tryed to add inductors but the problem still persists
Is there a way to increase the PWM frequency ?
Pwm frequency
Moderators: grovkillen, Stuntteam, TD-er
Re: Pwm frequency
You will have to change it in the source code, but someone already made a pull request on git hub. So either wait or compile your own binAlan_37 wrote: ↑15 Jan 2018, 23:19 Hi ,
I am trying to build a high power LED dimmer using the ESP PWM but i have a problem PWM frequency is only 1khz this produces a buzzing sound since 1khz is audible tryed to add inductors but the problem still persists
Is there a way to increase the PWM frequency ?
https://github.com/letscontrolit/ESPEasy/issues/575
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: Pwm frequency
Thanks for your help toffel969
Re: Pwm frequency
Hello,
I have a Problem with hard coded frequency because of noices that a PWM controled fan does if you don't bring it into an area where you cant hear it.
In arduino you do it like
what have i to do in easyESP coding?
Best reguards
Michael
I have a Problem with hard coded frequency because of noices that a PWM controled fan does if you don't bring it into an area where you cant hear it.
In arduino you do it like
Code: Select all
void setup() {
TCCR1B = TCCR1B & 0b11111000 | 0x01; // Setzt Timer1 (Pin 9 und 10) auf 31300Hz
}
Best reguards
Michael
Re: Pwm frequency
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Who is online
Users browsing this forum: No registered users and 47 guests