Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Transistor as switch

Status
Not open for further replies.

tiwari.sachin

Full Member level 6
Full Member level 6
Joined
Aug 1, 2009
Messages
341
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
India
Visit site
Activity points
4,449
I have a input to the transistor that will be 5V or 0V and I want to switch the output to 24V or 0V

ie.

when input = 5V, Output = 24V

when input = 0V, Output = 0V

Suggest how I can do this. This 24V output will be used to drive the relay.

Max current requirement to drive the relay shall be 200mA. The input to the transistor circuit will be given via PIC16F877A
 

You can use a PNP one :

npn-pnp.png



+++
 

Andre,

I too thought about the same thing but was keen if I can use a single component to do so.
 

You can use that, however uC output will be more susceptible to burn due to spike generated by relay coil :

low-side.png


+++
 

I am designing a board that will be used with general purpose relay boards available here so I need to control the positive signal of the relay and not the ground. I guess first option is more suitable but with increase in BOM cost.

By the way, there would be a flyback diode that will take care of spikes.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top