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
None
This project requires a micro:bit and a computer with an internet connection and a USB port. See materials list for details.
No issues
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.

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
- Assistive device
- Sip-and-puff switch
- Pressure sensor
- Conductive
- Closed circuit
- Insulator
- Open circuit
- Microcontroller
- Micro:bit
Questions
- What are some examples of assistive technologies that people can use without their hands?
- What are some examples of things you can control with a puff switch?
- What outputs can you program on a micro:bit board?
- What do you want to make your puff switch do?
Bibliography
- Turner, B. (2020, October 19). Assistive Technology Focus: Sip and Puff Devices. Accessible Web. Retrieved August 20, 2024
- Wikipedia (n.d.). Sip-and-puff. Retrieved August 20, 2024
- Micro:bit Educational Foundation (n.d.). Getting Started. Retrieved August 20th, 2024
- Science Buddies Staff (n.d.). Engineering Design Process. Science Buddies. Retrieved August 20th, 2024
Materials and Equipment
- micro:bit Go Bundle. This kit contains everything you will need to get started working with micro:bit:
- micro:bit board
- micro-USB cable
- 2xAAA battery holder
- AAA batteries (2)
- Computer with internet access and USB port
- Alligator clip leads
- Craft supplies to build your puff switch. This is an engineering design project, so the exact materials you will need may vary depending on your design, but here are some suggestions:
- Straw
- Cardboard
- Aluminum foil
- Tape
- Hot glue
- Binder clips or paper clips
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

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.
- 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.
- Decide what programming language you will use for your micro:bit:
- 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.
- 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.
- Connect a single alligator clip to micro:bit pin 0 as shown in Figure 2.

- 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.
- The
set pull pin P0 to downblock ensures that pin 0 reads "low," or zero, when nothing is touching it. - The
digital read pin P0block 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. - The
if/elseblock decides what to do depending on whether pin 0 reads 1 or 0.- If pin 0 reads 1, show a smiley face icon.
- Else, if pin 0 reads 0, clear the screen.
- The

- 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.

- Think about what other output(s) you might want to program to respond to your switch and experiment with them.
- You can play music and sounds using the blocks in the Music menu.
- 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.
- 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:
- Connect two alligator clips to the micro:bit - one to pin 0 and one to the 3V pin.
- 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.
- 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.

- 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.
- A large piece of cardboard is used as the base.
- A vertical support is attached to the base with hot glue, and a piece of aluminum foil is taped to this support.
- Thin cardboard supports form an archway to hang the moveable piece of aluminum foil.
- 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).
- 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.
- 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.).
- The straw is held in place using cardboard supports. A flexible straw lets you more easily bend the mouthpiece toward the user.



- 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.

- 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.

- 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:
- Make sure all alligator clip connections are secure.
- Watch out for any rips or tears in the aluminum foil, especially the thin strip at the top of the moveable piece.
- 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.
- Think about ways you can improve your puff switch's performance or make it easier to use. See the Variations section for more ideas.
Ask an Expert
Global Goals
The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.
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:











