aqua_life
Newbie level 6
- Joined
- Mar 23, 2013
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,468
Hi,
I want to control a 12 Volt output with a microcontroller PIC18.
The output of PIC18 is 0V or 5V. I want to convert it to 0V or 12V.
I have searched a lot and the cheapest way to make it is with two transistor.
The 0/5 Volt output controls a NPN transistor and this one will control a PNP transistor.
I have tried it with real components and I have the same output for differents inputs.
With 0V in input I have 12V in output. I should have 0V. How can I make it?
I have tried with 8V instead of 12V and it works fine.
With 0V input I have 0V output. With 5V input I have 8V output.
Here you can see my schematic:
Thanks for your help
I want to control a 12 Volt output with a microcontroller PIC18.
The output of PIC18 is 0V or 5V. I want to convert it to 0V or 12V.
I have searched a lot and the cheapest way to make it is with two transistor.
The 0/5 Volt output controls a NPN transistor and this one will control a PNP transistor.
I have tried it with real components and I have the same output for differents inputs.
With 0V in input I have 12V in output. I should have 0V. How can I make it?
I have tried with 8V instead of 12V and it works fine.
With 0V input I have 0V output. With 5V input I have 8V output.
Here you can see my schematic:
Thanks for your help