Electrical – voltage drop across collector and emitter when using transistor as a switch

arduinoraspberry pitransistorsttl

I am trying to send TTL pulse from Arduino to 8 raspberry pi simultaneously. For this, I am using npn transistor as a switch. Below is the circuit for same:

enter image description here

Note: MB102 is a power supply that takes in 5v or more and regulates it to 3v3 http://www.petervis.com/Raspberry_PI/Breadboard_Power_Supply/YwRobot_Breadboard_Power_Supply.html.
I am using q1 2n3904 transistor. Also, Arduino is connected to a recording system which takes 5v pulse rather 3.3v.

Issue
the voltage drop across collector-emitter is 2.51v whereas it should be 0 when the TTL pulse is HIGH. The voltage drop across Pi is 0.67v whereas it should be ~3.3v. What is wrong with the circuit? What can be changed?

Best Answer

Generally speaking, when you wish to use an NPN transistor as a switch, the emitter should be grounded and the load is connected to the collector side of the transistor. In your case, ground the emitter and place a 220 ohm resistor in series with the collector to your supply and then connect the Pi's to the junction of the resistor and collector.

You are showing a resistor in parallel wth the Pi's. This should be removed.

You didn't state what input of the Pi's this is going to but be aware that if combined they represent too much of a load, you may have to use more than one transistor circuit and split the Pi's among them. Test your circuit with one Pi first and then add others.

Also take note that an NPN in this configuration will invert your logic. When the base is biased on, the voltage to the Pi's will be low (about 0.2 volts) and vise versa.