# Trinket Classic USB Foot Switch

## Overview

Warning: 

Here are some alternative guides for building modern pedals:

- [USB Foot Switch Controller in CircuitPython](https://learn.adafruit.com/USB-foot-switch-circuit-python)
- [Bluefruit "BlueFoot" Wireless Foot Switch](https://learn.adafruit.com/bluefruit-bluetooth-wireless-foot-pedal-switch)
- [Three Button Foot Switch](https://learn.adafruit.com/three-button-foot-switch)
- [MIDI Foot Pedal](https://learn.adafruit.com/midi-foot-pedal)&nbsp;
- [DIY Adaptive Game Controllers](https://learn.adafruit.com/diy-adaptive-game-controllers)

### Original Guide (Reference Only)
Adafruit carries a lovely [foot switch](https://www.adafruit.com/product/423 "foot switch")&nbsp;which has a single pole-double throw switch inside. &nbsp;The switch can activate a number of items including an alarm&nbsp;or [powerswitch tail](https://www.adafruit.com/product/268 "powerswitch tail")&nbsp;to control your world.

A much-requested project by Adafruit customers is using the foot switch to interface with a PC via universal serial bus (USB). &nbsp;To get a switch activation to talk to the USB bus takes a controller - some smarts. &nbsp;

Adafruit's ATtiny85 based Trinket is low cost and contains enough smarts to perform USB communication (via some smart library software).

Only three parts are required. &nbsp;The foot switch, a USB cable, and a Trinket 5V. &nbsp;The entire project costs less than $20. &nbsp;And it takes less than an hour's work.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/520/medium800/trinket_Foot_Switch_Connect.png?1421693838)

The wiring is shown above. &nbsp;The existing foot switch wires are cut short and two connected to Trinket pins #0 and GND (ground). &nbsp;When the foot switch is activated, the switch contact pair that creates a short connects Pin #0 with ground. When the Trinket detects the pin connected to ground, it outputs one or more characters as a PC keyboard.

The [Trinket Keyboard tutorial](../../../../trinket-usb-keyboard/overview "Trinket Keyboard tutorial")&nbsp;states a Trinket 5V should be used due to the microcontroller clock rate the library uses.

Danger: 

- [Next Page](https://learn.adafruit.com/usb-foot-switch/assembly.md)

## Related Guides

- [Chilled Drinkibot](https://learn.adafruit.com/chilled-drinkibot.md)
- [Cardboard Window Skull With Animated LED Eyes](https://learn.adafruit.com/cardboard-window-skull-animated-led-eyes.md)
- [Glowing Interactive Crystal Staff ](https://learn.adafruit.com/glowing-interactive-crystal-staff.md)
- [PyPortal Adafruit Quote Book](https://learn.adafruit.com/pyportal-adafruit-quote-board.md)
- [Clue Coffee Scale](https://learn.adafruit.com/clue-coffee-scale.md)
- [Circuit Playground + CircuitPython Quickstart Guide](https://learn.adafruit.com/circuit-playground-express-circuitpython-5-minute-guide.md)
- [Using the Android CircuitPython Editor](https://learn.adafruit.com/using-the-android-circuitpython-editor.md)
- [Adafruit Audio FX Sound Board](https://learn.adafruit.com/adafruit-audio-fx-sound-board.md)
- [NeoPixel Bracelet](https://learn.adafruit.com/neopixel-bracelet.md)
- [Halloween Monsters with CRICKIT and Circuit Playground Express](https://learn.adafruit.com/halloween-monsters-with-crickit.md)
- [Circuit Playground Express Laser Tag](https://learn.adafruit.com/circuit-playground-express-laser-tag.md)
- [Your Very First Circuit Sculpture](https://learn.adafruit.com/first-simple-circuit-sculpture.md)
- [How to use the Puppet Module in the Bluefruit Playground App](https://learn.adafruit.com/how-to-use-the-puppet-module-in-the-bluefruit-playground-app.md)
- [ABC Soundboards with NeoTrellis](https://learn.adafruit.com/abc-soundboards-with-neotrellis.md)
- [Integrating Home Assistant with Adafruit IO](https://learn.adafruit.com/integrating-adafruit-io-with-home-assistant.md)
