Sub topic 1
Voltage, Current, and Power: A Quick Refresher
Prerequisites
This chapter assumes you understand basic voltage, current, and resistance, including Ohm's law, \(V = I \times R\). You should also be able to build a simple breadboard circuit and upload an Arduino sketch.
Battery-powered projects become easier to design when you separate three related quantities:
- Voltage, measured in volts (V), is the electrical pressure that pushes charge.
- Current, measured in amperes (A), is the rate at which charge flows.
- Power, measured in watts (W), is the rate at which electrical energy is delivered or used.
For a load such as an Arduino board, sensor, or motor, the basic power equation is:
\[ P = V \times I \]
A 5 V sensor drawing 20 mA uses:
\[ 5 \times 0.020 = 0.10\text{ W} \]
Always convert milliamperes to amperes before using the equation. One milliampere is \(0.001\) amperes.
Voltage, current, and resistance
Ohm's law connects voltage, current, and resistance:
\[ V = I \times R \]
You can rearrange it to find the other values:
\[ I = \frac{V}{R} \qquad R = \frac{V}{I} \]
A device's voltage requirement is usually specified by its design. Its current draw depends on what it is doing. An LED may draw a steady current, while a radio module may draw short, high-current bursts during transmission.
A power source does not force all of its available current into a circuit. The circuit draws the current it needs. However, the source and wiring must safely provide that current without excessive voltage loss.
| Quantity | Unit | Useful question |
|---|---|---|
| Voltage | V | What electrical pressure does the device need? |
| Current | A or mA | How much charge does it draw? |
| Power | W | How quickly does it use energy? |
| Energy | Wh or mWh | How much work can the source provide over time? |
Series and parallel power paths
In a series path, the same current flows through each component, while the voltage is divided among them. A regulator placed in series with a load receives the battery voltage and supplies a lower voltage to the load.
In a parallel connection, each branch has the same voltage, while the total current is the sum of the branch currents. This is why several sensors connected to one regulated rail add their current requirements.
Add the expected currents to estimate the regulator and battery requirements. If an Arduino uses 45 mA, a sensor uses 12 mA, and a radio uses 80 mA while active, the active total is 137 mA. Add margin for startup current, measurement error, and future changes.
def power_watts(voltage_v, current_ma):
return voltage_v * current_ma / 1000.0
print(power_watts(5.0, 137)) # 0.685 WA battery's voltage and current capability are different properties. A battery can have the correct voltage but still be unsuitable if its internal resistance causes the voltage to collapse when the load demands a current burst.
Exercise
Exercise
A 3.3 V sensor draws 25 mA. What power does it use, and what total current flows if it is connected with an Arduino that draws 40 mA?
Show answer
The sensor uses 3.3 × 0.025 = 0.0825 W, or 82.5 mW. The total current is 25 mA + 40 mA = 65 mA.