Doubt about the pnp transistor

Get help and show off your TV-B-Gone kit!

Moderators: adafruit_support_bill, adafruit

Doubt about the pnp transistor

Postby exapod » Wed Feb 08, 2012 10:55 am

If you use a pnp transistor for switch the npn that drives the leds is the pwm signal inverted? i mean if the pwm of the uc pin is high for 20us the led will be off for 20 us or i am wrong?
exapod
 
Posts: 9
Joined: Tue Jul 12, 2011 12:58 pm

Re: Doubt about the pnp transistor

Postby Stephanie » Wed Feb 08, 2012 1:29 pm

You are correct, when pin 5 is high, the IR leds are off, and when pin 5 is low, the IR leds are on.
User avatar
Stephanie
 
Posts: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: Doubt about the pnp transistor

Postby exapod » Thu Feb 09, 2012 6:55 am

So if i use the v1,2 software but control only one led with a npn it will not work??
exapod
 
Posts: 9
Joined: Tue Jul 12, 2011 12:58 pm

Re: Doubt about the pnp transistor

Postby Stephanie » Thu Feb 09, 2012 7:42 am

If you want to do that then you'd have to modify the software to invert the signal on that pin. It's not too difficult, just changing a few lines in the main file.

I actually had to do this on my most-recent TV-B-Gone build, not for the IR LEDs but for the visible LED as my build had the visible LED wired to ground instead of Vcc.
User avatar
Stephanie
 
Posts: 286
Joined: Sat Dec 11, 2010 12:17 am
Location: Canada

Re: Doubt about the pnp transistor

Postby exapod » Thu Feb 09, 2012 4:14 pm

Thank you for the help.
exapod
 
Posts: 9
Joined: Tue Jul 12, 2011 12:58 pm


Return to TV-B-Gone Kit

Who is online

Users browsing this forum: No registered users and 1 guest

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


New Products [100]

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]