summaryrefslogtreecommitdiff
path: root/projects/ou/punchingbag.mdwn
blob: 2c41baec618467c0b0417f3257cc776581f90408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[[!meta title="Interactive Punching Bag"]]

I worked as part of a group on building an interactive punching bag over a
summer holiday.

The bag is wrapped in an interactive layer: an 8 X 19 grid of surface- mounted
impact sensors (membrane switches), interleaved with a 9 X 20 grid of
tri-color, common-cathode LEDs driven by 8-digit LED drivers, and 2
surface-mounted accelerometers, at the rear of the bag, one at the mid-point,
one at the base.

The LEDs are embedded in a foam layer, which also protects the wiring and
solder joints. The sensor grid is controlled by one Arduino Mega 2560, which
also receives input from the accelerometers, and the LED grid is controlled by
another. The Arduinos are connected by USB to a wall-mounted PC with a touch-
screen display. Speakers mounted on the bag are connected by audio cable to the
PC.

<video width="100%" controls>
    <source src="punchingbag.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

The [source code](http://git.cbaines.net/?p=punchingbag.git;a=summary) is available.

## Development Photos

[[!album
    sort="path"
]]