TV-B-Gone V1.2 PNP transistor question

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

TV-B-Gone V1.2 PNP transistor question

Postby Kyleperson » Sun Mar 04, 2012 8:44 pm

I have a question about the TV B Gone v1.2 shown here:
https://github.com/adafruit/TV-B-Gone-kit/raw/master/pcb/tvbgone3sch.png

I had planned on building this circuit with only one IR LED, and omitting all transistors...until I realized that the first transistor out of the MCU was a PNP. Given that a PNP shuts off(per say) when voltage is applied, is it required that I keep the PNP to invert the high and low signal?
Kyleperson
 
Posts: 2
Joined: Sun Mar 04, 2012 8:34 pm

Re: TV-B-Gone V1.2 PNP transistor question

Postby EasternStarGeek » Sun Mar 04, 2012 10:31 pm

No, it isn't.

If you want to drive the LED directly from the microprocessor, connect the anode of the LED to the positive supply through a 100 ohm resistor and the cathode to the digital output. In this case, a Logic LOW at the output will turn on the LED.

Keep in mind that the LED will not light nearly as brightly, and will drastically reduce the range.
EasternStarGeek
 
Posts: 243
Joined: Mon Dec 13, 2010 12:39 pm
Location: Upper Eastern Tennessee

Re: TV-B-Gone V1.2 PNP transistor question

Postby Kyleperson » Sun Mar 04, 2012 10:50 pm

EasternStarGeek wrote:No, it isn't.

If you want to drive the LED directly from the microprocessor, connect the anode of the LED to the positive supply through a 100 ohm resistor and the cathode to the digital output. In this case, a Logic LOW at the output will turn on the LED.

Keep in mind that the LED will not light nearly as brightly, and will drastically reduce the range.


Something about that doesn't really sit right in my head, but I'll give it a try anyway. If you could explain, that would be great, otherwise, thanks for your help.
Kyleperson
 
Posts: 2
Joined: Sun Mar 04, 2012 8:34 pm

Re: TV-B-Gone V1.2 PNP transistor question

Postby philba » Mon Mar 05, 2012 10:45 am

The reason there are no current limiting resistors for the LEDs in that design is because IR LEDs need to be driven at a much higher current than visible LEDs. Well, they don't HAVE to but to get any kind of distance, you need to pulse them pretty hard. That's why there are transistors in that design - the AVR is limited to 40 mA on an output pin which really isn't enough current. I'd shoot for 100 mA pulse current or higher. Note also that since it runs off of 2 alkaline cells, the 4 LEDs won't see super high current. Guessing from the design docs, the IR LEDs each get around a max of 250 mA pulses with 2 AAs, driving them out of spec. This definitely shortens their life but, given that the duty cycle is miniscule, probably doesn't matter.

So, I would use the transistor design of the original plan.
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm


Return to General Project help

Who is online

Users browsing this forum: Google [Bot] and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]