Tag Archives: IR Remote

Remote-controlled night-light

Posted 11 October 2025

My wife wants a low-intensity lamp she can turn on/off using any common TV remote from a distance of about 20ft. I found this set of four pairs of IR receiver and transmitter breakout boards on Amazon, and discovered the receiver can indeed detect the signal from a TF remote at well more than 20ft, so the project looks feasible.

Wiring is simplicity itself; just +5V, GND, and output pins.

Here are some representative scope grabs:

20ms/div, so each block of data is about 80-90msec long
Closeup of one data block

The idle output voltage is +5V, so I’m thinking that I can probably just low-pass the output and set a threshold.

The low-pass idea didn’t work – there wasn’t enough difference between the HIGH level and the average to comfortably use, so I wound up just counting the number of LOW occurrences in the receiver output, and that worked well (and eliminated two components as well). Here’s the finished prototype:

16 October 2025 Update:

This project is now finished, sort-of. The TV Remote Lamp works according to the wife, but there are some issues with the remote. If she uses the TV remote as we intended, and presses the ON/OFF button at the top – that will also turn the TV itself back on – an unintended consequence, but one that can be resolved by NOT using the ON/OFF button on the remote – any button will do.

Here’s a photo of the finished product and the accompanying enclosure, compliments of my Prusa Core ONE 3D printer:

And here is a photo of the ‘installation’ in our master bathroom:

As can be seen from the above photo, the sensor and LED are actually facing away from the bedroom and toward the mirror, but the sensor is perfectly happy with the reflected signal from the TV remote.

And here is the finished Arduino code for the Teensy 3.2: