is an op amp possible?

I have a project I’m working on for Jr Design. I need to feed 2 fans a voltage of roughly 10-12V each at any given time but the max voltage my microcontroller can give out is 5V. Anyway I can add an op amp to my breadboard to help amplify the required voltage? If so, any guidance on how I’d go about this would be great.

by jmore94
October 07, 2022

Not really since even a rail-to-rail OpAmp must be fed by the maximum voltage it will have to deliver. And the maximum current output by the OpAmp is quite limited given your intended use.

The habitual way to control a large voltage with a MCU is through a transistor, such as a MOSFET, where the gate would be tied to an I/O pin of the MCU. The voltage threshold of the MOSFET should be less than the voltage which can be delivered by the MCU.

A voltage booster fed by the MCU is out of the possibilities, given the very limited current that can supply most GPIO pins (many cannot even light a LED).

by vanderghast
October 08, 2022

@vanderghast So would it be a better idea to build a separate circuit for the fans and stepper motors? Is it possible to get my MCU hooked up to that 2nd circuit so it can communicate with my stepper motors and fans?

by jmore94
October 11, 2022

I’m currently looking into the transistor option you gave me. @vanderghast

by jmore94
October 11, 2022

Add a flyback diode if the "load" is inductive. And be sure that the DC source is also protected (An USB port of a PC is possibly not).

by vanderghast
October 12, 2022

No Answers

No answers yet. Contribute your answer below!


Your Answer

You must log in or create an account (free!) to answer a question.

Log in Create an account


Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

Search Questions & Answers


Ask a Question

Anyone can ask a question.

Did you already search (see above) to see if a similar question has already been answered? If you can't find the answer, you may ask a question.


About This Site

CircuitLab's Q&A site is a FREE questions and answers forum for electronics and electrical engineering students, hobbyists, and professionals.

We encourage you to use our built-in schematic & simulation software to add more detail to your questions and answers.

Acceptable Questions:

  • Concept or theory questions
  • Practical engineering questions
  • “Homework” questions
  • Software/hardware intersection
  • Best practices
  • Design choices & component selection
  • Troubleshooting

Unacceptable Questions:

  • Non-English language content
  • Non-question discussion
  • Non-electronics questions
  • Vendor-specific topics
  • Pure software questions
  • CircuitLab software support

Please respect that there are both seasoned experts and total newbies here: please be nice, be constructive, and be specific!

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.