loading

My IR receiver module from Banggood bangged after first run - it just ceased working. The next new one will take weeks to arrive, but the show must go on.... so decided to find temporary solution, and it worked :).

I googled, and found that mostly it is mentioned that normal photo-transistor itself cannot be used as an IR receiver because it does not have inbuilt amplifier. There was a photo-transistor BPW 77NB and standard NPN amplifier transistor PN2222A in the components box, so decided to go with this trial experiment and it worked...in the first attempt. The range is obviously not very long (around 30-35 cm ) like standard TSOP IR receiver (few meters). But at least I could continue to work on the main project until new IR receiver arrives :)

Let us see how to make it work...

Step 1: Components and Circuit for IR Receiver and Arduino Due Pins

Components-

*Photo-transistor TFK-BPW 77NB

*Standard NPN amplifier transistor PN2222A

*Breadboard and Jumper wires

*Arduino Due dev board (you can use even other boards, just change pins if required)

*Resistors 2.2k and 4.7k (you can use any other suitable resistor in place of 2.2k for LEDs, in place of 4.7k resistor you can use a potentiometer so as to adjust range- probably - experts please correct me :) )

*Few LEDs of any color

Note that in circuit diagram i have shown LEDs connected to pin 5,6,7 only, but practically i have connected one more bi-color LED to pin 3 and 4. This was just as fun for my kid.

The phototransistor and NPN amplifier transistor forms a kind of darlington pair amplifier circuit. The red LED between collector and PN2222A works as indicator when IR codes are received by photo-transistor.

Step 2: Arduino Due Code

Final working code is available on my github page.... or attached arduino .ino file

https://github.com/Electromania/Arduino-Due/blob/m...

Acknowledgements- IRremote2 library from https://github.com/enternoescape/Arduino-IRremote-...

Circuit for phototransistor originally from https://www.youtube.com/user/curiosity551/videos

how to make infrared sensor in few steps!

Have fun..... the show must go on..............

Step 3:

<p>Accidently i had uploaded incomplete code for this project, i have now updated code file here and also on my github and codebender pages.</p>
<p>Thanks... yes i agree.</p>
<p>This is a great idea for controlling all sorts of Arduino projects. </p>

About This Instructable

1,698views

25favorites

License:

Bio: A Researcher, an Engineer and an electronics enthusiast
More by TheElectromania:Quick Digital thermometer using cheap USB to TTL converter and  DS18B20 - WITHOUT Arduino or Raspberry Pi Digital thermometer on OLED display using ESP8266 ESP-12E NodeMCU and DS18B20 temperature sensor PIR Motion Detector With Arduino: Operated at Lowest Power Consumption Mode 
Add instructable to: