Changes between Version 4 and Version 5 of HackingIRDongle


Ignore:
Timestamp:
11/09/12 05:14:46 (7 years ago)
Author:
hz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HackingIRDongle

    v4 v5  
    44 
    55[[Image(wiki:Attachments:IR LED Quick Hack.2.png)]] 
     6 
     7There are 4 components in the circuit 2 resistors(5k, 50 OHM) , 1 IR LED(IR333C/H0/L10), and 1 NPN transistor(2N3904). 
     8 
     9 
     10 * Resistors are not direction specific, both ends are the same. 
     11 
     12 * IR LED symbol, pin 1 is Anode (longer lead), pin2 is Cathode(shorter lead). 
     13 
     14[[Image(wiki:Attachments:2N3904.png)]] 
     15 * 2N3904 is the NPN transistor. Looking at the flat face, the left lead is Emitter (pin 1 in schematic), the middle lead is Base (pin 2 in schematic), the right lead is Collector (pin 3 in schematic). 
     16 
     17Solder them together as in the picture (or use bread board), and then connect  
     18 
     19 * 50 Ohm resistor to Collector on NPN transistor 
     20 * 5K resistor to Base on NPN transistor 
     21 * Anode of IR LED (longer lead) to Emitter NPN transistor 
     22 * another end of 50 Ohm resistor to +5v pin on Arduino. (An alternative would be use a bigger resistor, say 100 Ohm, to replace the 50 Ohm one, and connect the other end to Vin Pin on Arduino.) This resistor is to make sure we won't burn the IR LED. The IR LED can only accept a maximum of 100 mA current, so if we use 5V to drive the IR LED, we need to make sure  the current run through the LED is limited less than 100 mA, which yields the resistance R=5V/100mA=50 Ohm.  
     23 * Another end of 5K Ohm resistor to Pin 10 on Arduino Uno. 
     24 * Cathode of IR LED (shorter lead) to GND on Arduino Uno. 
     25 
     26There's a total of 6 connection. After all these connections, you're all set.  
     27 
     28After download the firmware to Uno, and wire everything up, if the helicopter still don't fly, you need to use a camera (except iphone camera) to look at the IR LED, make sure it's blinking. ALso, remember you may need to point the IR LED to the IR receiver(a little black plastic square) on the helicopter.