A Flashlight's Tale

This chapter introduces fundamental concepts in electrical and computer engineering through the familiar example of a flashlight. By exploring charge, forces, fields, and electrical potential, you'll gain insights into how basic circuits work, setting a foundation for more advanced topics in the course.

Learning Objectives:
- Understand the concept of electrical charge and its role in circuits
- Use the gravitational analogy to explain electric force, field, and voltage
- Explain how batteries, switches, and light sources function in a circuit
- Describe the relationship between electric fields and current flow

Have you ever flipped a switch and wondered how a flashlight instantly produces light? This simple device demonstrates key principles that engineers use to design everything from smartphones to electric vehicles. When you turn on a flashlight, the battery supplies energy that moves through the circuit to produce light. But how exactly does this happen?

The answer lies in the movement of electrical charge through the wires. This invisible flow of charge is fundamental to all electrical devices. Let's explore what charge is and how it creates the light in your flashlight.

Cross-sectional diagram of a flashlight showing internal components including a sealing ring, reflector, lamp filament, lamp contact, plastic case, slide switch, two C-size 1.5V batteries in series, and a metal spring.

Figure 1: Flashlight. Source

Understanding electrical charge is essential for examining the components of a flashlight, representing them in a schematic diagram, and analyzing the circuit in terms of voltage, current, and power. Let's take a closer look at what electric charge is and its underlying effects.

First, we will explore stationary charge, and then we will examine what occurs when charges move. A moving electric charge generates an electrical current.

The Physics Behind the Flashlight

Before we can explain what happens when you turn on a flashlight, we need to understand the invisible forces that make it work. The good news is that you already have the right intuition. You just need to see it in a new context.

Forces: From Gravity to Electricity

You already know about gravity. Drop an object and it falls. The Earth pulls it downward with a force that depends on how massive the two objects are and how far apart they are. Newton's Law of Gravitation describes this:

$$\vec{\textbf{F}}_g = -G\frac{mM}{r^2}\hat{\textbf{r}}$$

where $m$ and $M$ are the two masses, $r$ is the distance between them, and $G = 6.674 \times 10^{-11}$ N$\cdot$m$^2$/kg$^2$ is the gravitational constant. The negative sign means the force is always attractive: masses pull toward each other.

The electrical force works the same way, with one important difference. Instead of mass, the source of the force is electric charge, measured in Coulombs (C). Electrical charge is fundamental to the functioning of electrical circuits. In the International System of Units (SI), charge is measured in units called Coulombs, abbreviated as "C." The constant $+1.6 \times 10^{-19} \, \text{C}$ is known as the elementary charge, representing the smallest possible value of electric charge. The charge of any object must be greater than or equal to the elementary charge and is always an integer multiple of it. An electron has a charge of $-1.6 \times 10^{-19} \, \text{C}$, while a proton has a charge of $+1.6 \times 10^{-19} \, \text{C}$.

The smallest unit of charge in nature is the charge carried by a single electron: $-1.6 \times 10^{-19}$ C. Coulomb's Law describes the electrical force between two charges:

$$\vec{\textbf{F}}_e = k_e\frac{qQ}{r^2}\hat{\textbf{r}}$$

where $q$ and $Q$ are the two charges, $r$ is the distance between them, and $k_e = 8.99 \times 10^{9}$ N$\cdot$m$^2$/C$^2$ is Coulomb's constant. The mathematics is nearly identical to gravity. The key difference is that while gravity is always attractive, electrical forces can either attract or repel. Like charges repel each other. Opposite charges attract.

Diagram illustrating electrical forces between charges in three scenarios: (a) opposite charges attract with arrows pointing inward; (b) two positive charges repel with arrows pointing outward; (c) two negative charges repel with arrows pointing outward.

Figure 2: Electrical forces between charges: (a) opposite charges attract; (b) two positive charges repel; (c) two negative charges repel.

This force between charges is what ultimately drives every electrical device you will ever study, including the flashlight.

Fields: Force Without Direct Contact

Both gravity and electricity act over a distance. You do not need to touch an object for gravity to pull it down, and you do not need charges to be touching for the electrical force to act between them. Physicists use the concept of a field to describe this: a region of space where a force would be experienced by an object placed there.

Think about standing on a hillside. The hill has a steepness at every point, and that steepness tells you exactly how hard gravity would push you if you were standing there. That is a gravitational field. It exists whether or not you are on it.

$$\vec{\textbf{g}} = -G\frac{M}{r^2}\hat{\textbf{r}}$$

The gravitational field at any point tells you the force per unit mass that any object placed there would experience.

The electric field works the same way. A charge $Q$ creates an electric field around it. Place another charge anywhere in that field and it will experience a force:

$$\vec{\textbf{E}} = k_e\frac{Q}{r^2}\hat{\textbf{r}}$$

The electric field at any point tells you the force per unit charge that any charge placed there would experience. Field lines point away from positive charges and toward negative charges, as shown in the figure below.

Two diagrams of electric field lines: on the left, a positive charge with field lines radiating outward in all directions, labeled E equals positive k-sub-e times Q over r-squared r-hat; on the right, a negative charge with field lines pointing inward from all directions, labeled E equals negative k-sub-e times Q over r-squared r-hat. Both diagrams show the field weakening with distance from the source charge.

Figure 3: Electric field lines radiate outward from a positive charge (left) and inward toward a negative charge (right). The field weakens with distance from the source charge.

In a flashlight, the battery creates an electric field inside the wires. That field is what pushes electrons through the circuit.

Potential: Electrical Height

Return to the hillside. If you carry a rock up the hill, you do work against gravity. That work gets stored as potential energy. The higher you go, the more potential energy the rock has. Release it and the stored energy converts to motion.

Illustration of gravitational potential showing a cartoon person standing on a hill holding a large rock above their head. A vertical arrow labeled distance indicates the height, and a downward red arrow labeled force shows the gravitational force acting on the rock. A label reads field strength at this point. The image illustrates that carrying a mass uphill stores potential energy, and the potential difference between two heights determines how much energy is released when the mass moves between them.

Figure 4: Gravitational potential: carrying a mass uphill stores potential energy. The potential difference between two heights determines how much energy is released when the mass moves between them.

Electric potential works exactly the same way. If you move a charge against an electric field, you store potential energy. The electric potential $\phi$ at a distance $r$ from a charge $Q$ is:

$$\phi_e = k_e\frac{Q}{r}$$

The unit of electric potential is the Volt (V), equal to one Joule per Coulomb. What matters in a circuit is not the potential at a single point but the difference in potential between two points. This potential difference is what we call voltage:

$$\Delta V = \phi(r_2) - \phi(r_1)$$

Voltage is the electrical equivalent of height on a hill. A battery creates a voltage difference between its two terminals, just as a hill creates a height difference between its top and bottom. Charges at the negative terminal have higher electrical potential energy, just as a rock at the top of a hill has higher gravitational potential energy. Connect the two terminals through a circuit and the charges flow, releasing energy along the way. That released energy is what lights the bulb.

The table below summarizes the parallel between gravitational and electrical concepts that will carry through the rest of this course.

Potential: Electrical Height
Concept Gravity Electricity
Source Mass Charge
Force Gravitational Electrical (Coulomb)
Field $\vec{g}$, N/kg $\vec{E}$, N/C
Potential Height, m Voltage, V
Flow when released Falling mass Electric current

Table 1: Gravitational and electrical concepts compared. The same physical logic connects both columns.

With this foundation in place, we can now look at what happens when charge actually moves, which brings us to electric current and, from there, directly to the flashlight.

When Charges Go for a Stroll: Exploring Electric Current

So far, we have looked at charges that are stationary. The hill analogy still applies: a charge sitting at a high potential is like a rock sitting at the top of a hill. Nothing happens until it is free to move. When charges do move, that movement is what we call electric current.

Consider an electron free to move in response to an electric force, as shown in the figure below.

Diagram of a negatively charged electron shown as a pink circle with a minus sign, with a brown arrow pointing to the right representing the electrostatic force F acting on the electron, causing it to move to the right.

Figure 5: An electron in space moving to the right due to an electrostatic force $\vec{\textbf{F}}$, shown in brown.

Such a force can be created by several charge configurations of stationary charges, as shown in the figure below. The movement of the charge causes a current $I$ to flow. The unit of current is Coulombs per second, which is known as the Ampere. If the charges creating the electric field are stationary, the current will not change with time. This current is called direct current. If the charges move, a time-varying current is produced, which is called alternating current. For now, we will focus on direct current.

Three diagrams showing possible forces on an electron in space, separated by vertical gray dividing lines. In diagram (a), negative charges shown as blue circles with minus signs are positioned to the left, repelling the central electron with a brown arrow pointing left. In diagram (b), positive charges shown as red circles with plus signs are positioned to the right, attracting the central electron with a brown arrow pointing right. In diagram (c), a combination of positive and negative charges are arranged so that the net attractive and repulsive forces result in a brown arrow pointing to the right.

Figure 6: Possible forces on an electron in space. (a) Negative charges repel the electron. (b) Positive charges on the right attract the electron. (c) A combination of positive and negative charges arranged so that the total effect of the attractive and repulsive forces results in a force directed to the right.

The Flashlight: Electrical Principles in Action

Podcast icon Podcast: Flashlight

A flashlight is one of the simplest electrical circuits you will ever encounter, and that is exactly what makes it the right place to start. It has a source of energy, a path for current to flow, a way to control that flow, and a device that converts electrical energy into something useful. It has a battery, a switch, wires, and a light source. Every circuit you will analyze in this course, no matter how complex, contains similar elements. Understanding what is actually happening inside a flashlight gives you the physical intuition that everything else in this book builds on.

The Circuit Diagram: A First Look

Engineers use schematic diagrams to represent electrical circuits. Rather than drawing realistic pictures of components, schematics use standardized symbols connected by lines, giving engineers a compact and unambiguous way to communicate circuit designs. The figure below shows the schematic for a basic flashlight circuit. We will learn to read and draw these diagrams in detail in the next chapter. For now, notice that the circuit forms a complete loop, and that each component has a distinct symbol.

Schematic circuit diagram of an incandescent flashlight forming a complete rectangular loop. On the left vertical branch is a battery symbol. On the top horizontal branch is an open switch symbol. On the right vertical branch is a lamp symbol with two small arrows indicating light emission. The bottom horizontal branch is a plain wire completing the circuit. When the switch is closed, current flows from the battery through the light bulb.

Figure 7: Schematic diagram of an incandescent flashlight. The circuit forms a complete loop when the switch is closed, allowing current to flow from the battery through the light bulb.

In this diagram, the battery provides the voltage (electrical pressure) that drives current through the circuit. The switch controls whether the circuit is complete, and the light bulb converts electrical energy into light and heat. Let's examine each component in detail.

The Battery: Chemical Energy to Electrical Energy

A battery works like an "electron pump," using chemical reactions to create a potential difference (voltage) between its terminals. The chemical energy stored in the battery is converted into electrical energy that can power the circuit.

Cross-sectional diagram of a typical alkaline battery with labeled internal components from top to bottom: positive connection, current pickup, zinc anode, ion conducting separator, manganese oxide cathode, outer casing, pressure expansion seal, protective cap, and negative terminal.

Figure 8: Cross-section of a typical alkaline battery showing internal components.

Inside the battery, oxidation-reduction (redox) reactions occur. At the negative terminal (anode), oxidation releases electrons. At the positive terminal (cathode), reduction accepts electrons. This creates an electric field inside the battery that pushes electrons from the negative terminal through the external circuit and back to the positive terminal.

Common battery types include:
- Alkaline batteries: Typically 1.5V, used in most flashlights
- Lithium-ion batteries: About 3.7V, rechargeable, used in smartphones and portable electronics
- NiMH (Nickel-Metal Hydride): Around 1.2V, rechargeable, common in high-drain devices

The voltage of a battery depends on the specific chemical reactions inside it, while its size determines how much energy it can store. Larger batteries contain more reactive materials and can power devices for longer periods.

The Switch: Controlling the Flow

A switch is simply a device that can complete or break a circuit. When you flip the switch on a flashlight, you are connecting or disconnecting the path for electrons to flow. In the off position, the circuit is open and no current flows. In the on position, the circuit is closed, completing the path and allowing current to flow from the battery to the light source. Switches come in many forms, including the push button on your computer, the toggle on your wall, and the sliding switch on a flashlight, but they all serve the same basic purpose: to control when current flows.

The Wires: Pathways for Electrons

Wires are conductors (usually copper) that provide a path for electrons to flow. A good wire has low resistance, allowing current to flow with minimal energy loss. The copper inside the wire contains many free electrons that can move easily when pushed by an electric field.

An interesting fact about wires is that while electrical signals travel at close to the speed of light (allowing the light to turn on almost instantly when you flip the switch), the individual electrons move surprisingly slowly, typically just a few millimeters per second. This phenomenon, called drift velocity, occurs because electrons frequently collide with atoms in the metal. However, the electric field that pushes these electrons propagates much faster, almost like a wave moving through the electrons.

The Light Source: Energy Conversion

The final component of our flashlight is the light source, which converts electrical energy into light. There are two common types of light sources in flashlights:

Incandescent Bulbs: These work through a process called incandescence. Current flows through a thin tungsten filament with high resistance, heating it to about 2500°C until it glows white-hot. The resistance of the filament is given by:

$$R = \frac{\rho L}{A}$$

Where $\rho$ is the resistivity of the material, $L$ is the length, and $A$ is the cross-sectional area. This equation shows why thin, long filaments have higher resistance: they force electrons into a narrow, extended path where they experience more collisions.

The relationship between voltage, current, and resistance in these bulbs follows Ohm's Law:

$$V = I R$$

Where $V$ is the voltage across the bulb, $I$ is the current flowing through it, and $R$ is the resistance. Incandescent bulbs are inefficient: about 90% of the energy is converted to heat rather than light.

Light-Emitting Diodes (LEDs): Modern flashlights often use LEDs, which operate through a process called electroluminescence. LEDs are semiconductor devices that directly convert electrical energy into light when electrons move through them. When the right voltage is applied, electrons combine with "holes" (places where electrons are missing) in the semiconductor material, releasing energy in the form of photons (light particles).

LEDs are much more efficient than incandescent bulbs, converting about 80–90% of energy into light rather than heat. They also last much longer, up to 50,000 hours compared to around 1,000 hours for incandescent bulbs. However, LEDs have special requirements: they only allow current to flow in one direction (they are a type of diode), and they need a resistor in the circuit to limit the current:

Schematic circuit diagram of an LED flashlight forming a complete rectangular loop. On the left vertical branch is a battery symbol. On the top horizontal branch is an open switch symbol. On the right vertical branch, a resistor symbol is connected in series with an LED symbol below it. The bottom horizontal branch is a plain wire completing the circuit. The resistor limits current to protect the LED.

Figure 9: Circuit diagram of an LED flashlight, showing the necessary current-limiting resistor in series with the LED.

White light LEDs typically use a blue LED coated with a yellow phosphor. The blue light excites the phosphor, which emits yellow light. The combination of blue and yellow light appears white to our eyes. By adjusting the phosphor composition, manufacturers can create different "color temperatures" from warm (yellowish) to cool (bluish) white light.

Putting It All Together: How a Flashlight Works

When you turn on a flashlight, the following sequence occurs:

  1. The switch closes, completing the circuit between the battery, wires, and light source.
  2. The battery's chemical potential energy creates an electric field in the wires.
  3. This field exerts a force on free electrons in the copper wires.
  4. Electrons begin to flow through the circuit, creating an electric current.
  5. When these electrons reach the light source:
  6. In an incandescent bulb, they heat the filament until it glows.
  7. In an LED, they combine with holes in the semiconductor material, releasing energy as photons.

This process continues until either the battery's chemical energy is depleted or the switch is opened, breaking the circuit.

This simple device demonstrates the fundamental principles of electrical engineering that we have covered in this chapter: charge, current, voltage, resistance, and energy conversion. These same principles apply to more complex devices, from smartphones to electric vehicles. The only differences are in the specific components and circuit arrangements.

Conclusion

A flashlight contains every fundamental concept this course builds on. Charge, force, field, voltage, current, resistance, and energy conversion are all present in a device you can hold in your hand. We used the gravitational analogy to make these concepts tangible: voltage is electrical height, current is charge in motion, and the battery is the mechanism that maintains the height difference that keeps everything flowing. We also saw how moving charges create current, and how that current can be used to heat a filament or drive electrons through a semiconductor to produce light. The same logic that explains the flashlight applies to every electrical system you will study from here forward.