Electronic – Using a transistor as a switch

atmegaavrbreadboardtransistors

I am attaching a motor to an ATmega32 chip. I want to build an H-bridge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack. I have 5V running though the breadboard. I attached Vcc to the Collector, Base to the Pin, and Emitter to the motor. And other wire of motor is hooked up to Ground. Unfortunately, the power coming out of the transistor is too low, the motor is barely moving (As opposed to when I hook up my motor straight to 5V). What is wrong? Do I need a different transistor or is my setup wrong? If it is the transistor, can you please recommend the right one, I am not too good at those.

Best Answer

As already noted, the direct connection of a NPN BJT (or N-channel Mosfet) in high-side configuration is not suitable (emitter follower no saturates with equal voltages Vb and Vc). A proper driver is required. For example these ones on figure below (B, instead uses a PNP):

(A) Input Low -> load On; Input High -> Load Off

(B) Input Low -> load Off; Input High -> Load On

The problem with (A) is the initial state under power-on or reset by watchdog activation. Maybe, in some application, can be a bonus.

NPN High side

Related Topic