New answers tagged

2 votes

I need a 10KHZ PWM signal from pin 3 and 11 using timer 2

As explained in Nick Gammon's answer, you cannot really generate two PWM signals at 10 kHz from Timer 2: the register OCR2A will be used to set the frequency, and you won't have independent control of ...
Edgar Bonet's user avatar
  • 42.8k
3 votes

I need a 10KHZ PWM signal from pin 3 and 11 using timer 2

You can't do it with Timer 2 without external hardware. This code will generate a 10 kHz signal on pin 3, however it uses both of the timer's registers to do that: OCR2A is used to set the period (ie....
Nick Gammon's user avatar
  • 38.1k
0 votes

FastLed (WS2812B) and IRRemote problem

I want to add my two cents at the solution posted bt @BenAshmore, that allow to mediate between fast updates and receiving sensible data: void loop() { if(IrReceiver.decode()){ if( IrReceiver....
Felice Pollano's user avatar

Top 50 recent answers are included