Transistor as switch

Status
Not open for further replies.

tiwari.sachin

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
 

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 :



+++
 

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…