Simple wireless Remote control switch using TSOP 1738, IR Receiver Remote control. (IR sensor project)
This is an IR receiver using a TSOP 1738. This is a very good simple receiver for your projects.
Components used in this project:-
1. TSOP 1738 IR Receiver
2. 4.7uf 16v Cap
3. 1K resistor
4. BC557 Transistor
This instructable is for Arduino beginners. This is one of my earlier projects with Arduino. I enjoyed a lot when I made it and hope you will like it too. The most attractive feature of this project is the “Wireless control”. And that is through a normal IR remote easily available in our house. It may be a TV remote, an AC remote, or any other IR remote. In this project we'll see the working principle of an infrared remote and decode it's signal with the help of ARDUINO and TSOP 1738, it's a universal infrared receiver. This TSOP 1738 works with most of the infrared remotes.
In the photo as I pressed any button of the remote you can see the red LED light blinking. means the remote is emitting infrared signal whenever I press the button. However we cannot see this light with bare eyes.
This signal has a bunch of ON and OFF or you can say HIGH and LOW. We can call this bunch of ON and OFF as a signal pattern. Each of the button has its own unique pattern. So whenever we press a particular button we get a particular signal pattern which is assigned to that button only. So this is all about the IR remote.
Now it's time to receive the signal. Our aim is to identify the high and low signals as 1 and 0. In this way we can convert the signal pattern into data. ARDUINO and TSOP 1738 will do that for us.
The infrared receiver will receive the signal from the remote and give it to arduino. Then arduino will analyze the received signal and convert it into hex data. Once we convert the infrared signal into data, we can easily process that data and perform any conditional task as per our wish.
In this case the target was to control digital output of Arduino with a TV remote. To represent digital HIGH/LOW I have used 3 LEDs - Red, Yellow and Green. Conditional activities are as follows:
Turn ‘ON’ the LEDs in a particular sequence (RED, GREEN, BLUE) when the “Volume up” button is pressed each time.
Turn ‘OFF’ the LEDs in a particular sequence (BLUE, GREEN, RED) when the “Volume down” button is pressed each time.
But the above buttons will work only when the system is activated by pressing ON/OFF button. If you press the ON/OFF button when system is already ON then the whole system will shut down and turn off all LEDs.
Please see the Algorithm for better understanding.
IR Remote control: You can use any IR remote available in your house. Or you can buy it.
IR receiver: 1 no. TSOP 1738 sensor which is easily available in online shops.
Resistor: 1 no. 330 ohm resistor and 3 nos. 220 ohm resistor
Arduino controller: 1 no. Arduino UNO. Any other Arduino board will work fine for this project.
LEDs: 3 nos. 5mm LEDs of different color (Red, Yellow, Green)
Jumper wire: some jumper wires (male-male).
Breadboard: 1 no. Full or half size breadboard.
And of course the power cable of arduino is required. No special tools or instruments are required for this project.
For software you’ll need Arduino IDE installed in your PC or laptop.
If you don’t have the Arduino IDE then you may check the official website of Arduino. You'll find the link over there.
Also you need to download “IRremote” library from github and copy to the library folder of arduino IDE.
Upload the sketch “IRrecvDemo.ino” from the example of IRremote library.
Check the board name and COM port before uploading.
Hold the oval surface of TSOP1738 facing towards you. Now the left most pin is the Ground pin. The next pin is the Vcc (5V DC) and the right most pin is the data pin. Please see the pin out diagram for better understanding.
Connect GND pin to one of the GND pin of Arduino UNO.
Connect Vcc pin with 5V pin of Arduino UNO.
Connect 330 Ωresistor to the data pin of TSOP 1738. Then connect another leg of the resistor to Arduino pin 2.
Now open the serial monitor and press the buttons from the remote. You'll find the HEX code of each button on the serial monitor.
Note down the HEX code of the buttons of your choice.
Add the Output LED circuit with the existing TSOP circuit.
Connect Ground bus to Arduino UNO GND. Its a simple and small step but IMPORTANT.
Now, Place all 3 LEDs in RED – GREEN – BLUE sequence. Connect 220 Ω resistors between –VE leg of each LED and Ground bus.
Connect +VE leg of red, green and blue LED to pin 7, 6 and 5 of arduino respectively.
Please see the algorithm in Step 2 for understanding the sketch in an easy way. However, the whole sketch has line by line description in the sketch itself.
Please download the sketch from the link below. You have to replace the HEX codes inside sketch with your HEX codes which you have already noted in STEP 6.
Upload the sketch “IR_Test.ino” to Arduino.
Check the board name and com port before uploading.
Now use the remote buttons to operate the LEDs as per your wish.
Extras:
You may use a 5V DC relay to control other home appliances with the TV remote.
Please share your views and ideas in the comment section.
It is recommended to check the datasheet and pin out available from the
seller of your TSOP sensor. There are several types of TSOP sensors available on the market. Pin out are different in each case. Some of them come with aluminum cover. Some will look similar but different pin out. So take care before powering up.
Simple wireless Remote control switch using TSOP 1738, IR Receiver Remote control. (IR sensor project)
This is an IR receiver using a TSOP 1738. This is a very good simple receiver for your projects.
Components used in this project:-
1. TSOP 1738 IR Receiver
2. 4.7uf 16v Cap
3. 1K resistor
4. BC557 Transistor
This instructable is for Arduino beginners. This is one of my earlier projects with Arduino. I enjoyed a lot when I made it and hope you will like it too. The most attractive feature of this project is the “Wireless control”. And that is through a normal IR remote easily available in our house. It may be a TV remote, an AC remote, or any other IR remote. In this project we'll see the working principle of an infrared remote and decode it's signal with the help of ARDUINO and TSOP 1738, it's a universal infrared receiver. This TSOP 1738 works with most of the infrared remotes.
In the photo as I pressed any button of the remote you can see the red LED light blinking. means the remote is emitting infrared signal whenever I press the button. However we cannot see this light with bare eyes.
This signal has a bunch of ON and OFF or you can say HIGH and LOW. We can call this bunch of ON and OFF as a signal pattern. Each of the button has its own unique pattern. So whenever we press a particular button we get a particular signal pattern which is assigned to that button only. So this is all about the IR remote.
Now it's time to receive the signal. Our aim is to identify the high and low signals as 1 and 0. In this way we can convert the signal pattern into data. ARDUINO and TSOP 1738 will do that for us.
The infrared receiver will receive the signal from the remote and give it to arduino. Then arduino will analyze the received signal and convert it into hex data. Once we convert the infrared signal into data, we can easily process that data and perform any conditional task as per our wish.
In this case the target was to control digital output of Arduino with a TV remote. To represent digital HIGH/LOW I have used 3 LEDs - Red, Yellow and Green. Conditional activities are as follows:
Turn ‘ON’ the LEDs in a particular sequence (RED, GREEN, BLUE) when the “Volume up” button is pressed each time.
Turn ‘OFF’ the LEDs in a particular sequence (BLUE, GREEN, RED) when the “Volume down” button is pressed each time.
But the above buttons will work only when the system is activated by pressing ON/OFF button. If you press the ON/OFF button when system is already ON then the whole system will shut down and turn off all LEDs.
Please see the Algorithm for better understanding.
IR Remote control: You can use any IR remote available in your house. Or you can buy it.
IR receiver: 1 no. TSOP 1738 sensor which is easily available in online shops.
Resistor: 1 no. 330 ohm resistor and 3 nos. 220 ohm resistor
Arduino controller: 1 no. Arduino UNO. Any other Arduino board will work fine for this project.
LEDs: 3 nos. 5mm LEDs of different color (Red, Yellow, Green)
Jumper wire: some jumper wires (male-male).
Breadboard: 1 no. Full or half size breadboard.
And of course the power cable of arduino is required. No special tools or instruments are required for this project.
For software you’ll need Arduino IDE installed in your PC or laptop.
If you don’t have the Arduino IDE then you may check the official website of Arduino. You'll find the link over there.
Also you need to download “IRremote” library from github and copy to the library folder of arduino IDE.
Upload the sketch “IRrecvDemo.ino” from the example of IRremote library.
Check the board name and COM port before uploading.
Hold the oval surface of TSOP1738 facing towards you. Now the left most pin is the Ground pin. The next pin is the Vcc (5V DC) and the right most pin is the data pin. Please see the pin out diagram for better understanding.
Connect GND pin to one of the GND pin of Arduino UNO.
Connect Vcc pin with 5V pin of Arduino UNO.
Connect 330 Ωresistor to the data pin of TSOP 1738. Then connect another leg of the resistor to Arduino pin 2.
Now open the serial monitor and press the buttons from the remote. You'll find the HEX code of each button on the serial monitor.
Note down the HEX code of the buttons of your choice.
Add the Output LED circuit with the existing TSOP circuit.
Connect Ground bus to Arduino UNO GND. Its a simple and small step but IMPORTANT.
Now, Place all 3 LEDs in RED – GREEN – BLUE sequence. Connect 220 Ω resistors between –VE leg of each LED and Ground bus.
Connect +VE leg of red, green and blue LED to pin 7, 6 and 5 of arduino respectively.
Please see the algorithm in Step 2 for understanding the sketch in an easy way. However, the whole sketch has line by line description in the sketch itself.
Please download the sketch from the link below. You have to replace the HEX codes inside sketch with your HEX codes which you have already noted in STEP 6.
Upload the sketch “IR_Test.ino” to Arduino.
Check the board name and com port before uploading.
Now use the remote buttons to operate the LEDs as per your wish.
Extras:
You may use a 5V DC relay to control other home appliances with the TV remote.
Please share your views and ideas in the comment section.
It is recommended to check the datasheet and pin out available from the
seller of your TSOP sensor. There are several types of TSOP sensors available on the market. Pin out are different in each case. Some of them come with aluminum cover. Some will look similar but different pin out. So take care before powering up.
No comments:
Post a Comment