Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

ESP8266 NodeMCU Backdoor uPWM hack for IR signals

ESP8266 NodeMCU Backdoor uPWM hack for IR signals

The AnalysIR crew has published an article showing how to achieve accurate PWM for Infrared carrier signals on the ESP8266 NodeMCU:

Quite simple really – just set the baud rate to 10 times the desired Infrared carrier frequency and send a ‘magic’ 8 bit character to achieve the desired duty cycle. Of course we need to take the 1-start bit and 1-stop bit into account plus the 8 bits in each character. Remember that the UART sends the data inverted, so this needs to be taken into account with the characters sent and also in the IR LED driver circuit above, which required 2 transistors instead of the usual one.

More details at AnalysIR blog.

 

More Articles to Read

Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Teleknitting: TV-based string art
Teleknitting: TV-based string art
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Converting a coffee maker into a 3D printer
Converting a coffee maker into a 3D printer
Sort your M&Ms or Skittles with this ingenious machine
Sort your M&Ms or Skittles with this ingenious machine
The Hunt is both a playful game and tasteful home decor
The Hunt is both a playful game and tasteful home decor
The Rick and Morty Alarm will make sure you’re always on time
The Rick and Morty Alarm will make sure you’re always on time
Build your own MIDI accordion with Arduino
Build your own MIDI accordion with Arduino
A tiny orchestra of Lego Robots driven by Arduino
A tiny orchestra of Lego Robots driven by Arduino
8-bit Frogger game on a digital microfluidics device
8-bit Frogger game on a digital microfluidics device
An experimental game with a conductive rubber band controller
An experimental game with a conductive rubber band controller

Top




Shares