CYTHEIA AIOpen the editor

Voltage Divider

Two resistors share a supply voltage in proportion to their values. Measure the middle with a multimeter.

Open this circuit and run it

Opens in your browser with the parts, wiring and code already in place. Press Run to watch it work, then change anything you like.

How it works

A 9 volt supply feeds two resistors in a row: R1 of 1 kilohm, then R2 of 2 kilohms, then back to ground. The same current has to flow through both, and the voltage divides between them in proportion to their values, so R2, being two thirds of the total, takes two thirds of the 9 volts: 6 volts. The multimeter is wired from the point between the resistors to ground, so it reads exactly that.

This is the idea behind most analog sensors and volume controls. A potentiometer is a voltage divider whose split you move by hand, and a light or temperature sensor in a divider turns a changing resistance into a changing voltage a microcontroller can read. A multimeter in volts mode is a very large resistance, so it hardly disturbs what it measures. There is no sketch here, because nothing in the circuit needs code.

Parts

Wiring

Arduino code

// Voltage Divider
// Press Run, then read the multimeter: it shows the voltage across R2.
// There is no sketch to write: this is a circuit, so there is nothing for code to do.
void setup() {
}

void loop() {
}

Try changing it

Open this circuit and run it

Next challenge

More projects in Analog Electronics