Best way to provide a Positive 12V

What is the best way to achive a positive 12v signal using arduino as controller?

I'm thinking about using a PNP transistor to use as a switch, so the idea is when the PNP transistor base goes 0v it activate the load.

I think this will work, but when I want to turn off the curcuit, I could change the pin to 1 (HIGH), and I think 5v is not enough to turn the transistor off.

My idea is change pin mode to INPUT when I want to power the circuit off, so the pullup R1 will change the transistor base to 12V.

And when I want to turn the circuit on, I change pin mode to OUTPUT and use DigitalWrite 0

Will it work?



Information you did not provide:

  • What is the load?
  • Why do you need to control it?
  • Why do you need to switch the "high" side?
  • Do you need PWM?

Screenshot_2020-01-31 Gammon Forum Electronics Microprocessors Driving motors, lights, etc from an Arduino output pin
Have a good read of the link.

This link?

The schematic is a link.

It's a great link too. I'm the click from yesterday.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.