Jump to main content

How to Make a Dimmer Switch with a Pencil

1
2
3
4
5
603 reviews

Abstract

Dimmer switches let us control the brightness of a light, anywhere from completely off to full brightness. This can be nice when you want to set the brightness "just right," as opposed to a regular light switch that only lets you turn a light on or off. It turns out that you can make a dimmer switch out of an everyday object—a pencil! Try this project to find out how a dimmer switch can control the brightness of a light.

Summary

Areas of Science
Difficulty
 
Time Required
Very Short (≤ 1 day)
Prerequisites
None
Material Availability
A kit is available from our partner Home Science Tools. See the Materials section for details.
Cost
Low ($20 - $50)
Safety
Short circuits can get very hot and present a burn hazard. Never connect the positive and negative ends (red and black wires) of the battery pack directly to each other. Adult supervision is required for whittling the pencil.
Credits
Ben Finio, PhD, Science Buddies

Objective

Build a dimmer switch using a pencil and determine how it affects the brightness of a light in a simple circuit.

Introduction

Look around the room you are in. How many light switches do you see? Are any of them dimmer switches—either knobs or sliders that let you adjust the brightness of a light? Regardless of the type of switch, all lights are powered by electricity. All electrical devices have electrical current, or "flow," of electricity moving through them. The current usually flows through wires and other electrical parts, like the lightbulb in a lamp or the motor in a toy car. These parts combined are called an electrical circuit. Figure 1 shows a basic circuit with a battery and a lightbulb.

Diagram of a closed circuit with a lightbulb and battery
Figure 1. A closed circuit with a battery and a lightbulb. Electrical current is indicated by the yellow arrows.

In order for electricity to flow in a circuit, it must have a complete "loop," or path, through which to flow. In a battery-powered circuit, this loop must connect the positive end of the battery (marked with a "+" symbol) to the negative end of the battery (negative is indicated by a "-" symbol, but this is usually not printed on the battery). This is called a closed circuit, as shown in Figure 1. If any part of the loop is broken, this creates an open circuit and electricity does not flow at all, as shown in Figure 2.

Diagram of an open circuit with a lightbulb and battery
Figure 2. The path for electricity to flow is broken, so this is an open circuit. The lightbulb does not light up because no electricity can flow.

If the positive and negative ends of a battery are connected directly to each other—without anything like a lightbulb or motor in between them—this creates a short circuit, as shown in Figure 3. Short circuits are dangerous because they allow a lot of electrical current to flow, and can cause the battery to get very hot or even explode. You should never connect the two ends of a battery directly to each other.

Diagram of a short circuit with a wire connecting the positive and negative ends of a battery together
Figure 3. A short circuit with the positive and negative ends of a battery connected directly to each other. This can cause the battery to overheat.

What types of materials are circuits made out of? Circuits have to let electrical current flow through them easily. Materials that let electricity flow through them easily are called conductors. Most metals are conductors. However, materials that prevent electricity from flowing are also important for circuits. These materials are called insulators. Most rubbers and plastics are insulators. Insulators are important because they can help protect you from an electric shock when you touch a wire, or help protect a sensitive circuit from damage. For example, the power cord for a lamp consists of metal wires inside a rubber insulator, and an electronic toy might have a plastic case that protects the circuit inside from damage.

However, not all conductors are the same. An important property of conductors is their resistance, or how much they resist the flow of electrical current. Circuit parts with a specific resistance value are called resistors (resistance is measured in ohms [Ω], but you will not need to measure ohms for this project). The resistance of a circuit determines how much current flows through it. That means that if you can make a variable resistor, you can control how much current flows through a circuit, and control the brightness of a lightbulb (the bulb will be brighter when more current flows through it). In this project, you will make a dimmer switch out of a pencil (the graphite core of a wooden pencil is a conductor) and see how it affects the brightness of a lightbulb in a battery-powered circuit.

Technical Note

Variable-resistance dimmer switches—like the one you will make in this project—were originally designed for incandescent lightbulbs, which are being replaced by compact fluorescent (CFL) and light-emitting diode (LED) bulbs. As you may have noticed when purchasing CFL and LED bulbs, many of them are not compatible with older dimmer switches. Modern dimmer switches designed for CFLs and LEDs work differently than the one described in this project.

Terms and Concepts

Questions

Bibliography

Materials and Equipment Buy Kit

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.

View Kit

Disclaimer: Science Buddies participates in affiliate programs with Home Science Tools, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity, and keep our resources free for everyone. Our top priority is student learning. If you have any comments (positive or negative) related to purchases you've made for science projects from recommendations on our site, please let us know. Write to us at scibuddy@sciencebuddies.org.

Experimental Procedure

  1. Watch this video for an introduction to your Basic Circuits Kit.
  2. Set up your test circuit, as shown in Figure 4.
    1. Insert three AA batteries into the battery holder (your kit comes with one extra battery). Make sure the "+" symbols on the batteries line up with the "+" symbols inside the battery holder.
    2. Connect a red alligator clip to the exposed metal part of the red wire from the battery holder (in electronics, red wires are usually used for the "positive" connection).
    3. Connect a black alligator clip to the exposed metal part of the black wire from the battery holder (in electronics, black wires are usually used for the "negative" connection).
    4. Attach the other end of the black alligator clip to one of the screws on the lightbulb holder. If necessary, use a small Phillips head screwdriver to loosen the screw slightly so it is easier to clip to.
    5. Screw the lightbulb into the bulb holder.
    6. Attach one end of the green alligator clip to the other screw on the bulb holder.
    7. You will connect your pencil resistors to the free ends of the red and green alligator clips.
    8. Test your circuit by touching the exposed metal ends of the red and green alligator clips together. This creates a closed circuit and your lightbulb should light up. If it does not light up, then check the following:
      1. Make sure the lightbulb is screwed tightly into the base.
      2. Make sure none of your alligator clip connections are loose.
      3. Make sure none of your batteries are backwards.
    9. Important: throughout the project, only connect the lightbulb for long enough to assess its brightness, then disconnect it when not in use. Leaving the lightbulb connected for a long time can cause it to burn out prematurely.
An open circuit is made with a battery pack, three alligator clips and a lightbulb
Figure 4. The test circuit for this experiment. The twist ties are not required, but bundling up the alligator clip leads can help keep your circuit neat.
  1. Ask an adult to whittle away the wood on the side of a number 2 pencil with a pocket knife to expose the graphite core, as shown in Figure 5. This may take a couple of tries (with a fresh pencil each time) to get it right.
  2. Using a ruler and a fine-tip permanent marker, start at the tip of the pencil and make marks every 1 cm along the length of wood.
A wooden pencil is cut in half length wise with a knife
Figure 5. Whittling away one side of a wooden pencil to expose the graphite core.
  1. Connect the pencil dimmer switch to your circuit.
    1. Take the free ends of the red and green alligator clips.
    2. Clip one of them onto the tip of the pencil, as shown in Figure 6. Make sure the metal jaws of the alligator clip make contact with the graphite, and not just the wood.
    3. Use the other alligator clip as a "slider" by pressing it onto the graphite core at different points along the length of the pencil.
    4. Experiment with how you can use the slider to control the brightness of the lightbulb.
    5. If your lightbulb does not light up at all, press down more firmly on the graphite with the alligator clip, or try scratching the surface of the graphite with the clip (graphite can oxidize when exposed to air, which will prevent electricity from flowing).
Two alligator clips connect to opposite ends of a wooden pencil that has been cut in half length wise
Figure 6. Use alligator clips to connect to the graphite core of the pencil.
  1. Make a data table, like Table 1, in your lab notebook. You can record the brightness of the lightbulb using a 0–5 scale (where 0 is "off" and 5 is "very bright"). Or, if you purchased the lux meter, you can measure the brightness of the bulb in lux (read the operating instructions that came with the lux meter).
 Brightness
Core Length (cm)Trial 1 Trial 2Trial 3Average
0 cm     
1 cm     
2 cm     
3 cm     
4 cm     
5 cm     
Table 1. Example data table for recording brightness of the lightbulb.
  1. Start out with your slider at the 0 cm mark so the two alligator clips are actually touching each other. Record the brightness of the lightbulb in your data table.
  2. Move the slider down to the next centimeter mark and record the brightness of the bulb.
  3. Repeat this for each mark down the entire length of the pencil.
  4. Start over at the tip of the pencil and repeat two more trials of the experiment. Record all your results in your data table.
  5. Analyze your results.
    1. Calculate an average brightness for each distance. Do this by adding up the brightness for each trial and dividing by 3, the total number of trials. For example, say you recorded brightnesses of 4, 4, and 5. The average is (4+4+5)÷3=4.33. Ask an adult if you need help calculating an average.
    2. Make a graph of your results, with graphite core length on the horizontal (x) axis and bulb brightness on the vertical (y) axis.
    3. How does lightbulb brightness change as the length of the graphite core changes? Does this make sense based on what you know about resistance? Remember from the background that higher resistance makes it harder for current to flow, and the bulb will be brighter when more current flows through it.

Troubleshooting

For troubleshooting tips, please read our FAQ: How to Make a Dimmer Switch with a Pencil.

icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Global Connections

The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.

This project explores topics key to Industry, Innovation and Infrastructure: Build resilient infrastructure, promote sustainable industrialization and foster innovation.

Variations

  • This experiment is a good demonstration of Ohm's law, which relates the current, resistance, and voltage in a circuit. Do some background research on Ohm's law and incorporate it into your project.
  • Use a multimeter to measure the resistance of your dimmer switch at various lengths in ohms, and the amount of current (in amperes) flowing through the circuit for each length. See the Science Buddies reference How to Use a Multimeter to learn more about how to measure resistance and current.
  • Use a lux meter to measure the brightness of the lightbulb (in lux) instead of rating brightness on a 0–5 scale. For the best results, do the experiment in a dark room with no other light sources.
  • What if you wanted to make multiple individual pencil resistors with fixed resistance values? See the Pencil Resistors project to learn more. You can do this project using the parts from your Basic Circuits Kit.
  • Could you use this circuit to test objects other than pencils? It turns out you can use the circuit to determine whether objects are conductors or insulators. See the Which Materials are the Best Conductors? project to learn more. You can do this project using the parts from your Basic Circuits Kit.

Frequently Asked Questions (FAQ)

If you are having trouble with this project, please read the FAQ below. You may find the answer to your question.
Q: Why can't I get my bulb to light up at all?
A: Try these steps below:
  • Make sure you do not have an open circuit. Check to make sure none of your alligator clips are loose, and the lightbulb is screwed tightly into its base.
  • Make sure your batteries are properly inserted into the battery pack. The "+" signs on the batteries should line up with the "+" signs in the battery pack.
  • Finally, try connecting the red and green alligator clips to each other directly, with no pencil or other materials in between, and your bulb should light up. If you connect the alligator clips to a non-conducting material (like paper), the bulb will not light up.
Q: Why did my bulb suddenly stop working in the middle of my experiment?
A: If your bulb was working but suddenly stopped lighting up, it might have burned out. Please contact us at scibuddy@sciencebuddies.org for a replacement. With your new bulb, only leave it connected for long enough to assess its brightness, and disconnect your circuit when not in use.

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
Electricians are the people who bring electricity to our homes, schools, businesses, public spaces, and streets—lighting up our world, keeping the indoor temperature comfortable, and powering TVs, computers, and all sorts of machines that make life better. Electricians install and maintain the wiring and equipment that carries electricity, and they also fix electrical machines. Read more
Career Profile
Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more
Career Profile
Electrical engineering technicians help design, test, and manufacture electrical and electronic equipment. These people are part of the team of engineers and research scientists that keep our high-tech world going and moving forward. Read more

Contact Us

If you have purchased a kit for this project from Science Buddies, we are pleased to answer any question not addressed by the FAQ above.

In your email, please follow these instructions:
  1. What is your Science Buddies kit order number?
  2. Please describe how you need help as thoroughly as possible:

    Examples

    Good Question I'm trying to do Experimental Procedure step #5, "Scrape the insulation from the wire. . ." How do I know when I've scraped enough?
    Good Question I'm at Experimental Procedure step #7, "Move the magnet back and forth . . ." and the LED is not lighting up.
    Bad Question I don't understand the instructions. Help!
    Good Question I am purchasing my materials. Can I substitute a 1N34 diode for the 1N25 diode called for in the material list?
    Bad Question Can I use a different part?

Contact Us

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "How to Make a Dimmer Switch with a Pencil." Science Buddies, 21 Nov. 2023, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p056/electricity-electronics/dimmer-switch-basic-circuits. Accessed 19 Mar. 2024.

APA Style

Science Buddies Staff. (2023, November 21). How to Make a Dimmer Switch with a Pencil. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p056/electricity-electronics/dimmer-switch-basic-circuits


Last edit date: 2023-11-21
Top
We use cookies and those of third party providers to deliver the best possible web experience and to compile statistics.
By continuing and using the site, including the landing page, you agree to our Privacy Policy and Terms of Use.
OK, got it
Free science fair projects.