17 Online
3 Member And 14 Guest
Members present at the site
Today Visits : 1883
Yesterday Visits : 5452
All Visits : 516797

Welcome to Electronoobs Q&A, where you can ask questions and receive answers from other members of the community.



Categories


1 like 0 dislike

dear sir, im looking this your project. http://electronoobs.com/eng_arduino_tut24_2.php. so i have a question !  line number 48: 

  TCCR2B = TCCR2B & B11111000 | 0x03;    // pin 3 and 11 PWM frequency of 980.39 Hz

what is the purpose of this cord,  why do you used to PWM frequency of 980.39 Hz ?

Thank you ! 

in Arduino by (210 points)

1 Answer

0 like 0 dislike
The default frequency of pwm signal in Arduino is too low for the MOSFET switch. We need higher frequency to avoid flickering.
by (34.7k points)
...