Jump to main content

Click a Button Without Your Hands: Design a Puff Switch

1
2
3
4
5
30 reviews

Abstract

Have you ever wondered how you could push a button without using your hands? How would you type on a computer or play a video game? You could use a puff switch - an electronic switch activated by blowing into a straw. This type of assistive device can help users with limited mobility or physical disabilities do everything from using a computer to steering a wheelchair. In this project, you will design, build, and test a puff switch that is connected to a tiny programmable board that you can use to control lights or sound. 

Summary

Areas of Science
Difficulty
Method
Time Required
Short (2-5 days)
Prerequisites

None

Material Availability

This project requires a micro:bit and a computer with an internet connection and a USB port. See materials list for details.

Cost
Low ($20 - $50)
Safety

No issues

Credits
Science Buddies is committed to creating content authored by scientists and educators. Learn more about our process and how we use AI.

Objective

Design and build a puff switch to control a simple electronic output.

Introduction

You might take using your hands and fingers for granted when typing on a computer, using a phone, or playing a video game. Have you ever wondered how you would control or interact with these devices if you could not use your hands at all? There are a variety of assistive devices designed to help people control things without using their hands. People might need these assistive devices for different reasons. For example, someone with a medical condition like cerebral palsy, or paralysis from a car accident, might be unable to use their hands to steer a wheelchair or type on a computer. Assistive devices can help them do these things using only muscles located on their head - like tracking their eyes to move a computer mouse or tilting their head to click a button. 

A sip-and-puff switch is a specific type of assistive switch that you can activate by blowing into or sipping on a straw. It uses an electronic pressure sensor to detect increases in air pressure (from blowing) or decreases in air pressure (from sipping). This pressure signal can then be used for many different things, like steering a wheelchair or even controlling a phone. Watch the following video to see a sip-and-puff switch in action. If you search on YouTube you can find many more examples of people using sip-and-puff switches to control different things.

In this project, you will build a simpler version of a sip-and-puff switch (technically, only a "puff" switch) that does not use a pressure sensor. Instead, it will use two pieces of metal (aluminum foil). Since metal is electrically conductive, when the two pieces touch, they form a closed circuit. When the two pieces are separated by air, which is an electrical insulator, there is an open circuit. As shown in Figure 1, one piece of metal is fixed to a vertical support. The other piece is on a hinge so it can rotate. When you blow air into a straw, it pushes the hinged piece into the fixed piece, forming a closed circuit. When you stop blowing, gravity pulls the hinged piece back down, forming an open circuit. 

Figure 1. Side view of puff switch operation. Note: electrical connections to external wires are not shown in this diagram.

You will connect your puff switch to a microcontroller board called a micro:bit (note that it is spelled "micro:bit," not "microbit" or "micro bit"). The micro:bit can detect whether an external switch is open or closed. The micro:bit has a built-in buzzer and grid of LEDs that you can use to play sounds, display icons, or show text. This lets you program the micro:bit to respond to inputs from your puff switch. What will you make your puff switch do?

Terms and Concepts

Questions

Bibliography

Materials and Equipment

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 [email protected].

Experimental Procedure

This project follows the Engineering Design Process. Confirm with your teacher if this is acceptable for your project, and review the steps before you begin.

Write Your Code

Before you build your puff switch, you can write a very simple program to test basic "switch" functionality on the micro:bit.

  1. If this is your first time using a micro:bit, follow the Getting Started instructions on the micro:bit website to learn how to use your micro:bit and connect it to your computer. 
  2. Decide what programming language you will use for your micro:bit:
    1. If you are new to coding, we recommend using Microsoft MakeCode to program your micro:bit. MakeCode is a graphical programming language where you make computer programs using colored blocks of code instead of a text editor. The example code in this procedure uses MakeCode. We recommend following a few of the MakeCode tutorials before you proceed.
    2. You can also program your micro:bit in Python, JavaScript, and Scratch. You may prefer this approach if you already have programming experience in one of these languages. See the Let's Code page for more details.
  3. Connect a single alligator clip to micro:bit pin 0 as shown in Figure 2.
Figure 2. Micro:bit with one end of an alligator clip connected to pin 0.
  1. Write a simple program like the one shown in Figure 3. This program will make a smiley face when you touch the other end of the alligator clip to the micro:bit's 3V pin. When the alligator clip is not touching, the LED grid will be blank. 
    1. The set pull pin P0 to down block ensures that pin 0 reads "low," or zero, when nothing is touching it. 
    2. The digital read pin P0 block reads the state of pin 0. It will return "high," or one, when you connect it to the micro:bit's 3V pin. Otherwise it will return zero.
    3. The if/else block decides what to do depending on whether pin 0 reads 1 or 0.
      1. If pin 0 reads 1, show a smiley face icon.
      2. Else, if pin 0 reads 0, clear the screen.
Figure 3. Code for simple switch testing.
  1. Test your program by touching the free end of the alligator clip to the micro:bit's 3V pin. Your micro:bit should show a smiley face (Figure 4). When you release the alligator clip, it should go back to a blank screen.
Figure 4. Micro:bit with the other end of the alligator clip connected to the 3V pin.
  1. Think about what other output(s) you might want to program to respond to your switch and experiment with them.
    1. You can play music and sounds using the blocks in the Music menu.
    2. You can show text or other icons using the blocks in the Basic menu. 

Design and Build Your Puff Switch

Now that you have code for a basic switch working, you can build the mechanical structure for your puff switch.

  1. Electrically, your puff switch is no different than the simple circuit you made with a single alligator clip in the previous section. You can demonstrate this as follows:
    1. Connect two alligator clips to the micro:bit - one to pin 0 and one to the 3V pin.
    2. Touch the free ends of the alligator clips together. Your micro:bit should display a smiley face just like it did in the previous section.
    3. Cut two small squares of aluminum foil. Clip the free end of each alligator clip to one square, then touch the squares together (Figure 5). Since the alligator clip wires and aluminum foil are all conductive, they form a closed circuit between pin 0 and the 3V pin.
Figure 5. Closed circuit formed with alligator clips and aluminum foil.
  1. Now, your engineering challenge is to build a puff switch so you can make the two pieces of aluminum foil touch by blowing into a straw. It may take some experimentation to build a switch that works "just right." When you blow through the straw, the two pieces of aluminum foil should touch, forming a closed circuit. When you stop blowing, the two pieces should come apart, forming an open circuit. Figures 6, 7, and 8 show an example device from several different angles, but you do not have to build one that matches the figures - you might think of a better design! Remember that you can also refer back to Figure 1 in the introduction for a diagram showing how your switch should operate.
    1. A large piece of cardboard is used as the base.
    2. A vertical support is attached to the base with hot glue, and a piece of aluminum foil is taped to this support.
    3. Thin cardboard supports form an archway to hang the moveable piece of aluminum foil.
      1. The piece of aluminum foil is not a square - it has a long extension on one side to allow a connection to the alligator clip (not pictured). 
      2. This piece of aluminum foil is taped to a piece of cardboard with a piece of clear office tape, and a small gap in between the aluminum foil and cardboard. The flexible tape acts like a hinge.
      3. The piece of cardboard is attached to the supports using binder clips instead of hot glue. This lets you easily swap out the part if you want to test different designs (different size pieces of aluminum foil, gap widths for the tape, etc.).
    4. The straw is held in place using cardboard supports. A flexible straw lets you more easily bend the mouthpiece toward the user. 
Figure 6. Rear view of puff switch device.
Figure 7. Side view of puff switch device.
Figure 8. Front view of puff switch device.
  1. Connect the alligator clips to your aluminum foil. The alligator clips are heavy and can get in the way - make sure they will not interfere with operation of the device. Figure 9 shows the alligator clip connections. Note how the red alligator clip is connected to the extension coming off the top of the moveable piece, not the part that rotates.
Figure 9. Alligator clip connections to puff switch.
  1. Blow through your straw and make sure the two pieces of aluminum foil touch. Figure 10 shows a close-up. If you cannot easily see your micro:bit while blowing through the straw, it will help if you program it to make a sound so you can confirm that your switch works.
Figure 10. A close-up view of the puff switch while blowing air through the straw. Note how the two pieces of aluminum foil are touching.
  1. If your switch does not work (it does not trigger the output on the micro:bit), you will need to identify the problem. Remember that you need a closed circuit on the entire path between pin 0 and the 3V pin for your switch to work properly. A break anywhere on that path will cause an open circuit and your switch will not work. Here are some things to watch out for:
    1. Make sure all alligator clip connections are secure.
    2. Watch out for any rips or tears in the aluminum foil, especially the thin strip at the top of the moveable piece.
    3. Make sure that the two pieces of aluminum foil are coming into firm contact with each other. The more contact, the better. You might need to change your design, for example by making the pieces bigger or closer together.
  2. Think about ways you can improve your puff switch's performance or make it easier to use. See the Variations section for more ideas. 

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 Goals

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 Reduced Inequalities: Reduce inequality within and among countries.

Variations

  • Can you make a true sip-and-puff switch that allows the user to both sip and puff? To do this, try adding another piece of aluminum foil behind the rotating piece, so they come into contact when you sip on the straw instead of blowing on it. Make sure your middle (moveable) piece of aluminum foil is connected to the micro:bit's 3V pin. Connect one fixed piece to pin 0 and the other fixed piece to pin 1. You can now write code with two different if/else statements to detect the two different switches closing. 
  • Can you write code that detects two or more puffs within a certain period of time? What about measuring the duration of the puff? Can you use the number or duration of puffs to trigger different outputs? 
  • Can you mount your puff switch to the arm or headrest of a wheelchair? If you do not have access to a wheelchair, you can use a desk or table chair for your prototype. What about making the puff switch wearable so it does not need to be attached to anything?
  • Can you interface your puff switch with a different programmable board, like an Arduino or Raspberry Pi?
  • Can you build a different type of adaptive switch, like a foot pedal or a large button that you can press with your entire first?

Careers

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

Career Profile
Think of all the things you do as you go about your day, like putting on your shoes, buttoning your shirt, turning on a faucet, typing on a keyboard, going grocery shopping, picking up laundry, making a sandwich, or using a spoon. Now imagine trying to maintain your independence if an injury or illness made it difficult for you to use your hands, move your arms, or even walk. Occupational therapists are the healthcare providers who help people regain independence by developing or restoring… Read more
Career Profile
Are you interested in developing cool video game software for computers? Would you like to learn how to make software run faster and more reliably on different kinds of computers and operating systems? Do you like to apply your computer science skills to solve problems? If so, then you might be interested in the career of a computer software engineer. Read more
Career Profile
Shakespeare described humans as a "piece of work," and others have called the body "the most beautiful machine," but like any machine, sometimes body parts need repairs or servicing when the body cannot take care of the problems itself. That's where biomedical engineers come in. They use engineering to solve problems in medicine, such as creating replacement body parts, drug-delivery systems, medical instruments, and test equipment. Their work helps restore health and function, and improves the… Read more
Career Profile
Mechanical engineers are part of your everyday life, designing the spoon you used to eat your breakfast, your breakfast's packaging, the flip-top cap on your toothpaste tube, the zipper on your jacket, the car, bike, or bus you took to school, the chair you sat in, the door handle you grasped and the hinges it opened on, and the ballpoint pen you used to take your test. Virtually every object that you see around you has passed through the hands of a mechanical engineer. Consequently, their… Read more

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

Finio, Ben. "Click a Button Without Your Hands: Design a Puff Switch." Science Buddies, 2 Oct. 2024, https://www.sciencebuddies.org/science-fair-projects/project-ideas/HumBio_p069/human-biology-health/adaptive-puff-switch. Accessed 10 June 2026.

APA Style

Finio, B. (2024, October 2). Click a Button Without Your Hands: Design a Puff Switch. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/HumBio_p069/human-biology-health/adaptive-puff-switch


Last edit date: 2024-10-02
Top
Free science fair projects.