Categories

ESP8266 NodeMCU Backdoor uPWM hack for IR signals

Posted on Wednesday, July 6th, 2016 in how-to, infrared by DP

ESP8266-NodeMCU-uPWM-Inverted-IR-Circuit

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.

This entry was posted on Wednesday, July 6th, 2016 at 3:09 pm and is filed under how-to, infrared. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “ESP8266 NodeMCU Backdoor uPWM hack for IR signals”

  1. KH says:

    That thing will draw current at both logic levels.
    Not really suitable for battery-powered ops.
    More of a test circuit really…

  2. AnalysIR says:

    Good spot…

    The circuit was really provided to highlight that the output is inverted vs normal IR output and as you say to test the concept. The main thing is generating accurate PWM for IR signals on this device.

    For low power/battery operation supplying the 3V3 to R2 from a GPIO pin and deactivating the UART on D4 – so that the circuit is only active when needed should work fine (although there may be some IR noise generated during activation, which would necessitate a short delay before emitting the signal). All in all, a relatively easy adjustment for low power usage.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...
  • jose: Part removal described here is pure butchery, the cheapest hot air station will do a fast and clean job removing the QFP, heat air to...
  • Cody: Yes please