Ohm's law
Ohm's law describes how voltage, current and resistance relate in a simple circuit: the voltage across a resistor equals the current through it times its resistance.
Voltage (V) is measured in volts, current (I) in amperes and resistance (R) in ohms. Power (P), in watts, is how fast energy is used or turned into heat.
An example
A 12-volt battery across a 6-ohm resistor drives 2 amps of current, and the resistor turns 24 watts into heat. Make sure the resistor's power rating is above that, with some margin.
Ohm's law applies directly to resistors and DC circuits. Many components, such as LEDs and motors, do not behave like a fixed resistance, and AC circuits with capacitors or inductors need impedance instead. Always follow safety practices around electricity.