**Modifying a TV Remote Control to Turn On/Off Any 12V DC Load Using Radio Frequencies**
The project began with the transmission of a number and receiving feedback from the receiver, indicating that the wiring was successful. It was time to build the actual transmitter by adding three tactile switches to the breadboard, which would pull pins 4, 5, and 6 to ground to simulate the 3 TV remote buttons.
**Writing Code for the Transmitter**
The code for the transmitter was not complicated; it just needed to define the RF board on pin 7 and 8, as well as the output strength of the signal, the channel used, and the address of the communication pipe. The documentation of the library provided detailed information about every command for the IF board.
**The Loop**
The loop created would send out the code number 100, 101, or 102 depending on which of the three buttons was pushed. The receiver circuit would listen whether there's an incoming message and if so save it, present it on the serial monitor, assert whether it is 100, 102, or 101, and thus either turn on/flash off the LEDs, decrease the brightness, or increase the brightness.
**Uploading Sketches and Testing**
After uploading both sketches and pushing the tactile switches, the serial monitor of the receiver outputted the code numbers. If we took a look at Pin N9, which later controls the Gate of M fats, we can see how it turns on and off, decreases or increases its duty cycle. This means everything works fine, but there might be a problem later on.
**Problem with Current Consumption**
The circuits still required around 10 milliamps of current, and thus with an average AAA battery capacity of 1 amp-hour, the remote would only last around 4 days in the best case. Therefore, three diodes were added from pin two of the Arduino to the button input pins. This way, a timer could be used which puts the Arduino into sleep mode after 3 seconds and uses an interrupt on pin two to wake the Arduino up when a button is pushed.
**Low Power Modes**
The NRF 24 L01 also supports low power modes, which are activated after sending out each code number. With those changes and the removal of the SMD LEDs and voltage regulator of the Arduino Pro Mini board, this circuit only requires around 15 microamps in sleep mode, which equals a battery run time of around 7 years.
**Modifying the TV Remote**
Before modifying the TV remote, let's gather the required components for the receiver circuits and solder them onto a small piece of perfboard according to this created schematic. Once all the parts were connected to one another, the Arduino was programmed through an FTDI breakout, hooked up the LEDs, plugged in the power, and gave it one last time test with the breadboard transmitter.
**Prying Open the TV Remote**
Using a slotted screwdriver, slowly pry open my TV remote on the inside. Remove the rubber keypads to reveal a big switch matrix which connects to an ADOM 24 P20 remote control transmitter. By scraping off the protective layer from the copper traces of the three useless buttons and connecting their breakout points to an oscilloscope, we can see that by pushing the buttons, the input of the microcontroller is pulled down to ground.
**Testing**
This basically means we can use them just like we use the tactile switches beforehand. This was confirmed after a short test on the breadboard. The only negative aspect is that a couple of other buttons, like the power button, pull the input to ground as well and thus send out the code number. Since most of those buttons are useless for me, it still was a good trade-off.
**Finalizing the Transmitter Circuit**
So, I sold a wire to each one of the three buttons, redirected them to the underside of the board, and connected them to the finalized transmitter circuits according to the schematic. The last thing to do was to remove some of the plastic of the remote's insides, glue the transmitter circuit inside two cavities, hook it all up to the battery terminals, and close it all up.
**Success**
Just like that, we successfully modified the TV remote to turn on and off pretty much any 12V DC load we want through radio frequencies.