Why is my transistor only driving 5V instead of 6V? How can I fix it?
I have a 6V, 25mA circuit running some LEDs. I can control them by connecting and disconnecting the positive terminal of the battery pack.
I want to control them with an Arduino. So I added an NPN bipolar junction transistor with the base attached to the arduino's digital output pin and the collector-emitter acting like a wire from the positive terminal of the battery to the LED circuit. I also connected the Arduino's ground to the battery's negative terminal, but the Arduino is powered off a separate power supply.
o---------o
##### | |
# # |/ /+\
# A #--| ( )
# R # |> \-/
# D # | ####### |
# U # | # # |
# I # o-# LED #-o
# N # # # |
# O # ####### |
# # |
#####--------------o
The problem is that the LED circuit really needs 6V to run, while the Arduino's digital pins only output 5V. I don't quite understand why, but even though the collector is attached to 6V, the emitter is not really driving 6V, even when the base is on at 5V.
It's a little hard for me to debug, since the circuit is all diode-y, so if it doesn't get enough voltage that part just turns off in a non-ohmic way. Part of the circuit only needs 5V to function, and it works, but the longer series of LEDs only works when I connect the base to a 6V source.
What is going wrong, and just as importantly, how do I fix it?