0
\$\begingroup\$

I just learned about measuring the base resistor of a transistor but I think I did something wrong.

I wired everything up like this, but when I measure it I only get around 2.7V out of my device. Is my resistor calculation wrong?

Transistor is a S8050 or similar - datasheet

enter image description here

P.S.: Yes I also have a diode for not overloading the transistor but I think my calculations are wrong.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ Your calcs use 5V but the circuit says ‘3.3V esp gpio’. You should measure your base current - that would’ve alerted you to the mistake. \$\endgroup\$
    – Kartman
    Sep 15, 2022 at 10:12
  • 4
    \$\begingroup\$ You don't want the transistor "just barely" saturated. You want it fully saturated under all conditions, so cut the resistor value in half relative to your calculated value, and make sure that the MCU I/O pin can supply that much current. \$\endgroup\$
    – Dave Tweed
    Sep 15, 2022 at 10:56
  • 1
    \$\begingroup\$ Look at the datasheet of an S8050 transistor and see that for a 500mA collector SATURATED current then the base current must be 50mA. At such high currents the base-emitter voltage could be 1.2V then your current in the 750 ohms base resistor is only (3.3V - 1.2V)/750 ohms= 2.8mA which is over 17 times too low. \$\endgroup\$
    – Audioguru
    Sep 15, 2022 at 15:33
  • 1
    \$\begingroup\$ @dessi It's good that you found what was wrong - but it would be a good idea if you tiried up the question by noting the comments and adding whatever extra information that you may have. Also, understanding the point that each comment is making will help you learn more rapidly. Noting the ground path is important as while it may seem obvious, the ESP, the transistor emitter and the 5V supply also must share the same ground for proper operation - some people qho have problems do not do this and operation is by stray ground paths. \$\endgroup\$
    – Russell McMahon
    Sep 19, 2022 at 10:19
  • 1
    \$\begingroup\$ @dessi As Kartman says, you used 5V in your calculations, but show ESP Vhi as 3V3. Providing a link the the datasheet of the components you use is also a very good idea. \$\endgroup\$
    – Russell McMahon
    Sep 19, 2022 at 10:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.