3

Powering at 5 volts, atmega328 output ~4.7 volts. I need to output between 12 and 24 volts @ 2 amp. I'm currently using relay but they are costly. Is there a way to do it with transistors or any thing cheaper?

Thanks

2
  • Yes, but it depends on WHAT you are powering. – Majenko Jul 19 '16 at 17:16
  • Something like a mosfet. – Gerben Jul 19 '16 at 18:12
2

As @Gerben said in the comments, I would also recommend an N-channel MOSFET. OnSemi has a great application note on how to determine what type of MOSFET you would need based on your given load requirements and how to use it as a switch. You can find that app note here.

The basic idea is to provide an enable signal from your atmega328 to the gate of the MOSFET to drive it into saturation or to turn it off. You would connect your 12/24V supply to the drain of the MOSFET and connect your load to the source of the MOSFET. The basic circuit can be seen in the application note.

Hope that helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.