# What would happen if I used a potentiometer to produce a 5V DC signal for an Arduino from a 9V battery?

What makes the potentiometer not a good component to use for reducing the 9V to 5V DC for an Arduino?

I thought of using it but I been told it is not a good idea, so I am looking into the reasons why.

• See this for an approach to understanding general analysis techniques for questions like this. In your case, though, it's just a matter of understanding that your "constructed" Thevenin 5 V supply will also have a substantial Thevenin resistance that will drop widely varying voltages away from the Thevenin 5 V as your Arduino requires more and less current as it runs. Which will be a problem for you, no question.
– jonk
Jun 11 '20 at 18:27
• I posted a community wiki about bucking/dropping voltage to power circuits. You might find it helpful: electronics.stackexchange.com/q/501176/2028 Jun 11 '20 at 20:43
• Please clarify - are you looking for a 5V signal from which you intend to draw little if any current, or are you looking for a 5V power rail from which you intend to draw current to power your Arduino and/or other things? Jun 12 '20 at 0:12
• Although is not adviseable to power an Arduino from a 9V battery, the fact is that the barrel connector and the Vin pin in Arduino both accept power in the range 7V-12V, so, it isn't necessary to use external components to power an Arduino from 9V battery; Arduino already has a 5v regulator. Jun 12 '20 at 15:09
• I'm voting to close this question, because there are already excellent answers in Reducing voltage with resistors Jun 12 '20 at 19:58

When I was young and innocent I tried the same for a bunch of relays, and my potentiometer caught fire!

First off, as you allude to, it is in some cases possible to regulate load voltage with a potentiometer. You can use it as a divider (three terminals) or as a series resistor (two terminals). However, this involves you adjusting the potentiometer depending on the drawn current. For constant loads this is feasible, but not so for fluctuating loads from a processors, as others here pointed out.

Your circuitry, including it's input/outputs and peripherals, use different currents depending on their state/mode. And their reliable operation depends on a constant load-independent supply voltage. That said, if the current fluctuation and the ensuing voltage fluctuation do not affect the operation of a (perhaps fixed) load, then the potentiometer or voltage divider can be used.

But there are other factors too: heat and efficiency. The current through the potentiometer, and the ensuing I^R heat, generates heat in both configurations. And in the divider configuration you have a current running even if there is no load.

Since my pyrotechnic experience, I instead use a "LM7805" integrated regulator for simple cases (https://en.wikipedia.org/wiki/Voltage_regulator)

These regulators keep the 5V constant practically for all (fluctuating) current loads from your Arduino and any peripherals (sensors, LEDs etc..). They are very easy to use, and quite suitable for a simple table-top home lab, but they are not very efficient. In other applications they can get hot, and so now I only occasionally lightly burn a finger.

If power efficiency / battery life matters, look at switch mode power supplies, like the LM2674

https://en.wikipedia.org/wiki/Switched-mode_power_supply

The potentiometer is a resistor component. When you try to create a voltage reduction through a resistor the voltage drop is 100% dependent upon the amount of current flow through the resistor. A load like an Arduino is not a fixed current load so it is not possible to use a single resistor value to reduce the 9V to 5V suitable for proper operation of an Arduino.

You will need to investigate what a voltage regulator does and why it is applicable to the application.

Beware that if your 9V source is a typical 9V battery it is far from a suitable long term power source for an Arduino due to the relatively low capacity of such a battery.

You may use as potentiomenter to provide an analog input signal to an Arduino (preferably with an additional resistor in series to prevent pulling the input above 5 volts), but you should not use a pot to provide power to an Arduino, for the reasons given in other answers.

• Good point to distinguish between I/O and Vcc Jun 11 '20 at 19:38