# Bluefruit "BlueFoot" Wireless Foot Switch

## Overview and Materials

![](https://cdn-learn.adafruit.com/assets/assets/000/014/052/medium800/adafruit_products_2014_02_08_IMG_2994-1024.jpg?1391861663)

This is a quick and easy project that will be speed your work on future projects. By combining an Adafruit BlueFruit EZ-Key with a foot switch, we end up with a wireless, hands-free scroll button. No need to put down that hot iron to see the next step in the tutorial. Just give the pedal a tap with your foot to scroll down the page.  
  
Works with any operating system (Mac, Windows, Linux), tablet or phone (including iOS & Android)!  
  
Would you rather have it jump to the next page instead of scroll? No problem. The BlueFoot can be configured to send any keycode you want. Program as many as 12 keycodes into the EZ-Key and use a jumper to quickly switch between them.

![](https://cdn-learn.adafruit.com/assets/assets/000/014/053/medium800/adafruit_products_2014_02_03_IMG_2913-1024.jpg?1391861853)

# Materials:

- [Adafruit BlueFruit EZ-Key](http://www.adafruit.com/products/1535 "Link: http://www.adafruit.com/products/1535")  
- [Foot Switch](http://www.adafruit.com/products/423)  
- [3xAAA Battery Holder with Switch](http://www.adafruit.com/products/727 "Link: http://www.adafruit.com/products/727")  
- [Female/Female jumper wires](http://www.adafruit.com/products/266 "Link: http://www.adafruit.com/products/266")  
- [Right Angle Headers](http://www.adafruit.com/products/1540)
- Double Sided Foam Tape  
- Thin rigid plastic sheet - cut to 1 3/4" x 2 3/4". _(The prototype is built with 2mm styrene sheet (Plastruct #91106), but any thin rigid material will work.)_  
- [Rubber bumper feet](http://www.adafruit.com/products/550 "Link: http://www.adafruit.com/products/550") (Optional) 

# Bluefruit "BlueFoot" Wireless Foot Switch

## Wiring and Assembly

# Foot switch Disassembly:
The footswitch comes with a nice long flexible 3-conductor cable. But who wants a long wire on a wireless switch? So we'll start by cracking open the foot switch and removing the cable. You can put it in your spare parts bin to save for some other project.Remove the two screws from the bottom of the foot switch. Remove the bottom plate - being careful to keep the bottom of the switch facing up.

![adafruit_products_2014_02_05_IMG_2914-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/056/medium640/adafruit_products_2014_02_05_IMG_2914-1024.jpg?1391862586)

Locate and remove the small locking-pin near the front edge of the switch. It should fall out easily when you turn it over.

![adafruit_products_2014_02_05_IMG_2915-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/057/medium640/adafruit_products_2014_02_05_IMG_2915-1024.jpg?1391862727)

![adafruit_products_2014_02_05_IMG_2916-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/058/medium640/adafruit_products_2014_02_05_IMG_2916-1024.jpg?1391862765)

Push on the end of the hinge-pin with the tip of the screwdriver. While squeezing the foot switch, pull the hinge pin completely out.  
  
**_Be sure to hold the two halves of the switch together as you remove the pin so that the spring does not pop out!_**

![adafruit_products_2014_02_05_IMG_2918-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/059/medium640/adafruit_products_2014_02_05_IMG_2918-1024.jpg?1391862945)

![adafruit_products_2014_02_05_IMG_2919-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/060/medium640/adafruit_products_2014_02_05_IMG_2919-1024.jpg?1391863069)

![adafruit_products_2014_02_05_IMG_2920-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/061/medium640/adafruit_products_2014_02_05_IMG_2920-1024.jpg?1391863104)

Carefully open the switch and remove the spring.

![adafruit_products_2014_02_05_IMG_2921-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/062/medium640/adafruit_products_2014_02_05_IMG_2921-1024.jpg?1391863203)

Remove the cable-clamp and clip the wires to remove the cable.

![adafruit_products_2014_02_05_IMG_2922-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/063/medium640/adafruit_products_2014_02_05_IMG_2922-1024.jpg?1391863287)

![adafruit_products_2014_02_05_IMG_2923-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/064/medium640/adafruit_products_2014_02_05_IMG_2923-1024.jpg?1391863337)

![adafruit_products_2014_02_05_IMG_2924-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/065/medium640/adafruit_products_2014_02_05_IMG_2924-1024.jpg?1391863368)

Remove the switch and use a soldering iron to de-solder the old wires.

![adafruit_products_2014_02_05_IMG_2925-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/066/medium640/adafruit_products_2014_02_05_IMG_2925-1024.jpg?1391863437)

![adafruit_products_2014_02_05_IMG_2926-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/068/medium640/adafruit_products_2014_02_05_IMG_2926-1024.jpg?1391863509)

# Wiring it up:
The switch and the battery get connected by a few short jumpers. We'll add a key-code selection header so that you can easily reconfigure the switch my moving the jumper. We'll use a jumper with a female connector on one end so that we can select the keycode. We need another jumper for the ground connection.  
  
Separate two jumper wires from the ribbon. Clip the connectors from the male end and strip the ends of the wires.  
  
Solder one wire to the terminal marked "NO" and the other wire to the terminal marked "C".

![adafruit_products_2014_02_05_IMG_2927-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/069/medium640/adafruit_products_2014_02_05_IMG_2927-1024.jpg?1391864144)

![adafruit_products_2014_02_05_IMG_2934-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/070/medium640/adafruit_products_2014_02_05_IMG_2934-1024.jpg?1391864419)

Feed the ends of the jumpers through the cable hole and re-install the switch.

![adafruit_products_2014_02_05_IMG_2935-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/073/medium640/adafruit_products_2014_02_05_IMG_2935-1024.jpg?1391864729)

![adafruit_products_2014_02_05_IMG_2937-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/075/medium640/adafruit_products_2014_02_05_IMG_2937-1024.jpg?1391864804)

Cut a 12-pin section from the right-angle header strip and solder it to the holes marked 0-11.  
  
**_Make sure to position the pins so that they angle toward the center of the EZ-Key!_**

![adafruit_products_2014_02_05_IMG_2939-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/077/medium640/adafruit_products_2014_02_05_IMG_2939-1024.jpg?1391864927)

![adafruit_products_2014_02_05_IMG_2940-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/078/medium640/adafruit_products_2014_02_05_IMG_2940-1024.jpg?1391864967)

Position the EZ-Key on top of the battery holder as shown. Measure and cut the wires so they are just long enough to reach the Vin and Gnd holes on the board.

![adafruit_products_2014_02_05_IMG_2941-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/079/medium640/adafruit_products_2014_02_05_IMG_2941-1024.jpg?1391865110)

Strip the wires and solder them to the Vin and Gnd holes.

![adafruit_products_2014_02_05_IMG_2942-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/080/medium640/adafruit_products_2014_02_05_IMG_2942-1024.jpg?1391865273)

![adafruit_products_2014_02_05_IMG_2947-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/081/medium640/adafruit_products_2014_02_05_IMG_2947-1024.jpg?1391865305)

Solder one of the wires from the switch to one of the other Gnd holes, and clip the soldered wires close to the board.

![adafruit_products_2014_02_05_IMG_2948-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/082/medium640/adafruit_products_2014_02_05_IMG_2948-1024.jpg?1391865363)

![adafruit_products_2014_02_05_IMG_2949-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/083/medium640/adafruit_products_2014_02_05_IMG_2949-1024.jpg?1391865438)

Position the spring between the two halves of the foot switch.

![adafruit_products_2014_02_05_IMG_2960-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/090/medium640/adafruit_products_2014_02_05_IMG_2960-1024.jpg?1391874044)

![adafruit_products_2014_02_05_IMG_2961-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/091/medium640/adafruit_products_2014_02_05_IMG_2961-1024.jpg?1391874157)

Press down on the top half of the switch to align the holes and insert the hinge pin. Make sure that the notch in the hinge pin is positioned to line up with the small locking pin you removed earlier.

![adafruit_products_2014_02_05_IMG_2966-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/092/medium640/adafruit_products_2014_02_05_IMG_2966-1024.jpg?1391874223)

![adafruit_products_2014_02_05_IMG_2967-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/093/medium640/adafruit_products_2014_02_05_IMG_2967-1024.jpg?1391874245)

![adafruit_products_2014_02_05_IMG_2968-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/094/medium640/adafruit_products_2014_02_05_IMG_2968-1024.jpg?1391874271)

Re-install the locking pin and replace the bottom cover.

![adafruit_products_2014_02_05_IMG_2969-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/095/medium640/adafruit_products_2014_02_05_IMG_2969-1024.jpg?1391874423)

![adafruit_products_2014_02_05_IMG_2971-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/096/medium640/adafruit_products_2014_02_05_IMG_2971-1024.jpg?1391874463)

![adafruit_products_2014_02_05_IMG_2974-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/097/medium640/adafruit_products_2014_02_05_IMG_2974-1024.jpg?1391874496)

# Final Assembly:
Now we'll put the foot switch back together and package the whole thing up into a nice compact unit.   
Cut a piece of double-sided foam tape about as wide as the plastic plate (1 3/4") and stick to one end of the plate.

![adafruit_products_2014_02_05_IMG_2951-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/084/medium640/adafruit_products_2014_02_05_IMG_2951-1024.jpg?1391865761)

Remove the backing and attach the battery box.

![adafruit_products_2014_02_05_IMG_2952-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/086/medium640/adafruit_products_2014_02_05_IMG_2952-1024.jpg?1391865990)

![adafruit_products_2014_02_05_IMG_2955-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/087/medium640/adafruit_products_2014_02_05_IMG_2955-1024.jpg?1391866084)

Cut another piece of tape and attach to the other end of the plastic plate.

![adafruit_products_2014_02_05_IMG_2958-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/088/medium640/adafruit_products_2014_02_05_IMG_2958-1024.jpg?1391866170)

![adafruit_products_2014_02_05_IMG_2959-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/089/medium640/adafruit_products_2014_02_05_IMG_2959-1024.jpg?1391866213)

Position the plastic plate over the bottom of the switch and press firmly.

![adafruit_products_2014_02_05_IMG_2975-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/098/medium640/adafruit_products_2014_02_05_IMG_2975-1024.jpg?1391874697)

![adafruit_products_2014_02_05_IMG_2977-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/099/medium640/adafruit_products_2014_02_05_IMG_2977-1024.jpg?1391874724)

![adafruit_products_2014_02_05_IMG_2978-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/100/medium640/adafruit_products_2014_02_05_IMG_2978-1024.jpg?1391874763)

Cut another piece of tape to fit on the bottom side of the EZ-Key. Mount the EZ-Key to the top of the battery box. Keep to the left so you don't cover the ON/OFF switch.

![adafruit_products_2014_02_05_IMG_2979-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/101/medium640/adafruit_products_2014_02_05_IMG_2979-1024.jpg?1391874832)

![adafruit_products_2014_02_05_IMG_2980-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/102/medium640/adafruit_products_2014_02_05_IMG_2980-1024.jpg?1391874873)

![adafruit_products_2014_02_05_IMG_2981-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/103/medium640/adafruit_products_2014_02_05_IMG_2981-1024.jpg?1391874910)

![adafruit_products_2014_02_05_IMG_2982-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/104/medium640/adafruit_products_2014_02_05_IMG_2982-1024.jpg?1391874935)

Connect the jumper to pin #1 of the right-angle header. And you are ready to go!  
  
(Optional step) - If you will be using this on a slippery surface, you may want to add some rubber bumper feet to the bottom of the plastic plate.

![adafruit_products_2014_02_06_IMG_2984-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/106/medium640/adafruit_products_2014_02_06_IMG_2984-1024.jpg?1391875156)

![adafruit_products_2014_02_06_IMG_2985-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/014/107/medium640/adafruit_products_2014_02_06_IMG_2985-1024.jpg?1391875201)

![](https://cdn-learn.adafruit.com/assets/assets/000/014/108/medium800/adafruit_products_2014_02_08_IMG_2990-1024.jpg?1391875307)

# Bluefruit "BlueFoot" Wireless Foot Switch

## Use it!

![](https://cdn-learn.adafruit.com/assets/assets/000/014/054/medium800/adafruit_products_2014_02_08_IMG_2988-1024.jpg?1391862214)

# Pairing with your computer:
Before you can use your BlueFoot, you will need to pair the EZ-Key to your computer. Follow the instructions in the [BlueFruit EZ-Key Guide](http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/pairing-to-bluefruit "Link: http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/pairing-to-bluefruit") for pairing. [BlueFruit EZ-Key Guide](http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/pairing-to-bluefruit)
![](https://cdn-learn.adafruit.com/assets/assets/000/014/109/medium800thumb/adafruit_products_Blink.jpg?1448311495)

# Basic scrolling:
Make sure that the jumper is positioned on pin #1 of the EZ-Key. This will configure the EZ-Key to transmit the Down Arrow key code every time you step on the switch. Browse to [your favorite DIY electronics website](http://www.adafruit.com/) and start building with both hands. See how easy it is to scroll through the tutorials while you solder away.![](https://cdn-learn.adafruit.com/assets/assets/000/014/110/medium800/adafruit_products_2014_02_08_IMG_2996_Cropped.jpg?1391880463)

You can move the jumper to different pins to select different key-codes. The EZ-Key comes from the Adafruit Factory with the following key codes pre-programmed:

- #0 - Up Arrow
- #1 - Down Arrow
- #2 - Left Arrow
- #3 - Right Arrow
- #4 - Return
- #5 - Space
- #6 - the number '1'
- #7 - the number '2'
- #8 - lowercase 'w'
- #9 - lowercase 'a'
- #10 - lowercase 's'
- #11 - lowercase 'd'

# Customize it!
Would you rather go page-by-page instead of scrolling? You can customize the EZ-Key key-codes to any keyboard key you like. You can program up to 12 keycodes - for pins #0 through #11 - and switch between them using the jumper. Refer to the [EZ-Key Guide](http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/remapping-the-buttons-wireless "Link: http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/remapping-the-buttons-wireless") for instructions on re-mapping the key-codes. [EZ-KEy Wireless Remapping](http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/remapping-the-buttons-wireless)
[EZ-KEy Serial Remapping](http://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/sending-keys-via-serial)

## Featured Products

### Bluefruit EZ-Key - 12 Input Bluetooth HID Keyboard Controller

[Bluefruit EZ-Key - 12 Input Bluetooth HID Keyboard Controller](https://www.adafruit.com/product/1535)
Create your own wireless Bluetooth keyboard controller in an hour with the Bluefruit EZ-Key: it's the fastest, easiest and bestest Bluetooth controller. We spent years learning how to develop our own custom Bluetooth firmware, and coupled with our own BT module hardware, we've created...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1535)
[Related Guides to the Product](https://learn.adafruit.com/products/1535/guides)
### Foot switch

[Foot switch](https://www.adafruit.com/product/423)
Your friends probably tell you that you are "good with your hands," but now you can also be good with your feet! This foot switch is made of rubbery plastic, is plenty strong to put up with any amount of stomping, and contains a snap switch. You can use the switch as either a...

In Stock
[Buy Now](https://www.adafruit.com/product/423)
[Related Guides to the Product](https://learn.adafruit.com/products/423/guides)
### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)
### Premium Female/Male 'Extension' Jumper Wires - 40 x 3" (75mm)

[Premium Female/Male 'Extension' Jumper Wires - 40 x 3" (75mm)](https://www.adafruit.com/product/825)
Handy for making wire harnesses or jumpering between headers on PCB's. These premium jumper wires are approximately 3" (75mm) long and come in a 'strip' of 40 (4 pieces of each of ten rainbow colors). They have 0.1" male header contacts on one end and 0.1" female...

In Stock
[Buy Now](https://www.adafruit.com/product/825)
[Related Guides to the Product](https://learn.adafruit.com/products/825/guides)
### Break-away 0.1" 36-pin strip right-angle male header (10 pack)

[Break-away 0.1" 36-pin strip right-angle male header (10 pack)](https://www.adafruit.com/product/1540)
Breakaway header is like the duct tape of electronics. Its great for connecting things together, soldering to perf-boards, fits into any breadboard, etc. We go through these guys real fast, and thought that given how handy they are, we'd offer them in a pack of ten!  
  
Each pack...

In Stock
[Buy Now](https://www.adafruit.com/product/1540)
[Related Guides to the Product](https://learn.adafruit.com/products/1540/guides)
### Little Rubber Bumper Feet - Pack of 4

[Little Rubber Bumper Feet - Pack of 4](https://www.adafruit.com/product/550)
Keep your electronics from going barefoot, give them little rubber feet! These small sticky bumpers are our favorite accessory for any electronic kit or device. They are sticky, but not impossible to remove. They're small enough to fit onto any board, and have just enough height to give...

In Stock
[Buy Now](https://www.adafruit.com/product/550)
[Related Guides to the Product](https://learn.adafruit.com/products/550/guides)

## Related Guides

- [Adafruit E-Ink Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-e-ink-bonnet-for-raspberry-pi.md)
- [Adafruit HUZZAH ESP8266 breakout](https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout.md)
- [MCP4725 12-Bit DAC Tutorial](https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial.md)
- [Adafruit MMA8451 Accelerometer Breakout](https://learn.adafruit.com/adafruit-mma8451-accelerometer-breakout.md)
- [Adafruit ENS160 MOX Gas Sensor](https://learn.adafruit.com/adafruit-ens160-mox-gas-sensor.md)
- [Adafruit SensorLab - Gyroscope Calibration](https://learn.adafruit.com/adafruit-sensorlab-gyroscope-calibration.md)
- [Introducing Adafruit PyGamer](https://learn.adafruit.com/adafruit-pygamer.md)
- [Adafruit Wiz5500 Ethernet Co-Processor Breakout Board](https://learn.adafruit.com/adafruit-wiz5500-ethernet-co-processor-breakout-board.md)
- [Adafruit Proto Tripler PiCowbell](https://learn.adafruit.com/adafruit-proto-tripler-picowbell.md)
- [Adafruit RP2040 Prop-Maker Feather](https://learn.adafruit.com/adafruit-rp2040-prop-maker-feather.md)
- [Adafruit Metro RP2350](https://learn.adafruit.com/adafruit-metro-rp2350.md)
- [Adafruit eInk Display Breakouts and FeatherWings](https://learn.adafruit.com/adafruit-eink-display-breakouts.md)
- [Adafruit 10-DOF IMU Breakout](https://learn.adafruit.com/adafruit-10-dof-imu-breakout-lsm303-l3gd20-bmp180.md)
- [Adafruit I2C FRAM Breakout](https://learn.adafruit.com/adafruit-i2c-fram-breakout.md)
- [74HC595 Shift Register](https://learn.adafruit.com/74hc595.md)
