Build BOTS!

Make a Pencil Pressure Sensor! 

Adapted from the book BOTS! from Nomad Press by author Kathy Ceceri


A Pencil Pressure Sensor makes the LED light dim or bright, depending on how hard you press on it! It works because pencil “lead” is really made up of crushed-up graphite (a mineral that can carry electricity) held together with clay. When you scribble a layer of pencil on a piece of paper and press on it, it increases the amount of electricity the pencil can carry because the particles of graphite are closer together.

The pencil pressure sensor concept was introduced by a research team in a paper called Low-Cost Graphite on Paper Pressure Sensor for a Robot Gripper with a Trivial Fabrication Process. Take a look at the paper if you’re interested!

The sensor was attached to the arm of a Baxter robot. Baxter robots like the one shown here were used in research at RPI in 2014. The model has since been retired.


How to Make a Circuit with Conductive Tape

Pressure Sensor Robot instructions

Note: Where the instructions on the card say “copper,” use the fabric conductive tape in the kit.

  1. Fold the bottom of the card up along the dotted line. Unfold.

  2. Cut the bottom flap in half along the solid line. Leave for now.

  3. Measure and cut a piece of conductive fabric tape to fit over the line under the robot’s eyes. Attach to the card where shown. See tips below for how to use conductive tape. Then put a second piece of tape down the right side of the card, overlapping the first piece where shown and going down over the marking for the battery.

  4. Take the coin battery out of the packaging. WARNING: Loose coin batteries are a swallowing hazard for small children and pets! Be sure to scotch tape the battery on when the project is finished!

    • Take the two red LED lights. Test that the battery and LEDs are good by sliding the battery between the wires. The positive (longer) wire of each LED should be touching the positive (+) side of the battery.

    • Make a sticky-side-out loop of conductive fabric tape by bending a 2-inch-long piece of tape around so the ends overlap. Stick the ends together with the glue on the outside of the loop. The finished loop should be a little smaller than the battery.

    • Press the loop ON TOP OF the second line of conductive tape on the card, where shown. Press the battery — positive (+) side up — ON TOP OF the loop.

  5. Measure and cut a third piece of conductive tape to match the line along the bottom of the card. Stick one end of the tape OVER the battery. Make sure it doesn’t touch any of the conductive tape under the battery.

  6. Cut two more pieces of conductive tape and apply them over the last two lines. BE SURE TO LEAVE A GAP between the last piece and this piece where shown.

  7. Take the first LED light. Bend the LONGER wire out to the side. Hold the LED over the first eye on the card with the longer wire pointing towards the top of the card (towards the big + sign). Bend the shorter wire out to the opposite side. Place the LED on the card with the bulb over the eye. Each wire should be touching ONLY the wire on its side. Use short pieces of conductive tape to hold the wires in place (sandwich the wires between the pieces of conductive tape). Repeat with the second LED eye.

  8. Take a regular pencil. Color in the box with the pencil in this order:

    • Scribble inside the box in the direction of the scribble shown.

    • Scribble another layer in the opposite direction.

    • Scribble a third layer side to side inside the box.

    • Scribble a fourth layer top to bottom inside the box.

    Repeat the steps if the pencil doesn’t fill the box or if it isn’t very dark yet.

Time to Test Your Pressure Sensor!

  • It may help to dim the lights.

  • Fold the flap with the pencil up so it bridges the gap between the pieces of conductive tape. Press down until you see the LEDs start to light up. The harder you press, the brighter the LEDs should glow!

  • If nothing lights up, check the Troubleshooting Tips below.


Conductive Tape Tips

To apply conductive fabric tape to the cardstock template:

  1. Leave the paper backing on the fabric tape.

  2. Rub the pad of your finger on the edge of the fabric tape until it comes off the paper backing.

  3. Fold the end of the backing paper down.

  4. Press the sticky end of the tape to one end of the line on the template.

  5. Pull the backing away slowly as you go along the line.

Overlap pieces that are shown connected.

Check that lines of tape and wires don’t touch or cross if they are shown as separate on the template.

Make sure to leave a gap:

  • between the positive and negative sides of the circuit

  • where LEDs go

  • where a switch goes.


Troubleshooting Tips

If your sensor doesn't work, check that:

  • all conductive material makes a good connection

  • the polarity of the LED matches the battery

  • the positive and negative sides of your circuit are not touching, which can make it short circuit

  • the pencil "switch" is closed

  • color in pencil "bridge" nice and dark, using the long strokes from side to side

  • penciled area lines up with the battery

To check whether the problem is with the penciled area, try connecting the two sides of the circuit with an extra piece of foil.


Test a micro:bit Robot’s sensors!

The micro:bit mini-computer has built-in sensors that include:

  • an accelerometer that measures movement

  • a light sensor that measures brightness

  • a microphone that detects loud sound

  • a thermometer that measures temperature

Questions:

  • How many sensors can you find?

  • What do they do when they are working?

  • What other inputs (like buttons and touch pads) work on this robot?

MakeCode program for the PushBot Sensor Tester:

https://makecode.microbit.org/_Wkt4L1Md0PeU

Old version: https://makecode.microbit.org/_VukadWDYoTD5


Sensor Challenge — Design Your Own Robot Sensor

TiltTest.jpg

Try using a coin battery and one or more LEDs to design different kinds of robot sensors. This example from my book BOTS is a tilt sensor. Find the instructions below:


 
Bots cover 700.jpg

Want More Great STEAM Projects?