Finger Switches

The switches I built are wire coils attached to the fingers of a glove. They consist of a wire coil connected to +5V and attached to the index finger of the glove. The step switch is a wire coil attached to the inside of the thumb, and the reset switch is a wire coil attached to the outside of the thumb. The switches are coils to increase the contact area and make them easier to “depress”.

IMG_4262

The switches are connected to digital pins 5 and 6, via a pull down resistor to force the pins to always register low when the switch contacts are not engaged.

Details on implementation are in the code comments, but one trick I used when doing the counting task (where the LEDs represent bits in a binary number) was to use bit shifting to isolate individual bit values and then set the appropriate LED states. The 3 LED numbers were also put in an array to simplify the code used to access them.

Arduino Sketch: MTI_digital_IO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: