You will need the following:
- Conductive Thread
- Lithium-Ion Battery
- 2x LilyPad XBee Breakout Board
- 2x XBee
- 6 pin header
- 2x 15K Resistor
- Flex Sensor
- Pressure Sensor
Step 1: Setup XBee Modules
Step 2: Measure Bend Sensor
Step 3: Voltage Divider
Analog Input Value = (+ side of lilypad) * (Flex Sensor)/( Z1 +Flex Sensor)
or in our Min and Max Values from Flex Sensor were: 13.1K 43.8K . Therefore, we should expect
Min and Max Voltages of 2.3V and 3.7V. (These values will be converted into a value between 0 and 1023 by the LilyPad)
The same method is used also used for the Pressure Sensor. For more information please read the adafruit tutorial.
Step 4: Sensors and Resistors
We also need to solder a 15K resistor (for each sensor) from the + side of the LilyPad to an analog input pin. For this project we used Analog Input pins 0 and 2, so we need a 15K resistor from +-> a0 and another 15K resistor from + -> a2
Step 5: Time for Sewing!
- LilyPad to LiPower
- XBee Breakout to LiPower
- LilyPad to XBee Breakout
- Flex Sensor to LilyPad
- Pressure Sensor to LilyPad
Step 6: Program and Test Wireless
Let's test the wireless communication. Plug in the XBee and XBee Breakout Board with 6 pin header into an ftdi-usb chip then into your computer. Load your favorite Serial Terminal Program. I use a flavor of Linux so cutecom is my choice. ( For Windows check out HyperTerminal, I think Zterm works with OSX.)
I have provided the PDE file used by Arduino to demonstrate sending values from the flex and pressure sensors.
Step 7: Time for Play!
This project was a team effort:
Composer: Eric Lindsay
Costume Designer: Amy Burrell and Jay Garst
Choreographer: Utam Moses
Software and Hardware Designers: Benjamin Zaitlen and Alex Jacobs
The piece was supported by Indiana University (Prof. Kylie Peppler) and performed at the Buskirk-Chumley Theatre.
This material is based upon work supported by the National Science Foundation under Grant No. 0855886. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.