This project includes different components and technologies that I wanted to try out. In a nut shell, there are 2 main components:
- A 3D printed bracelet with a color sensor
- A T shirt with neopixels that light up according to the color picked up by the bracelet
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: List of Equipment
- 2 T shirts - One plain which will be underneath and one with some graphic design that will be interesting to light up.
- Flora Budget Pack that contains:
- FLORA main board
- Four Flora RGB NeoPixels V2
- 3xAAA Battery holder with JST connector and on/off switch
- Stainless Medium Conductive Thread - 3 ply - 18 meter/60 ft
- Needle set with 20 pieces
- Small Alligator Clip Test Lead (set of 12)
- USB cable - A/MicroB - 3ft
- 4x Alkaline AAA batteries
Step 2: Development Environment
Step 3: T Shirt
- I actually printed the graphics on the T shirt using Inkodye. More about that you can find here. Credit goes to the very talented calligrapher, Benoit Furet, for the graphics design.
- Sew the NeoPixels and Flora to the T shirt that is going to be underneath following the steps in the Chameleon Scarf tutorial.
- This is a great reference for understanding the flora board.
- The sewing hoop is used to ensure the threads don't cross each other and that the shirt remains taunt.
Don't sew on the color sensor as that will be part of the bracelet. Use alligator clips instead in the meantime.
Note that between each NeoPixel the power and ground rails are continuous while between each pixel's data pad to the next there are small segments of conductive thread.
I used Gutermann fabric adhesive instead of clear nail polish to seal the knots.
I sewed small circles of fabric on the back side to cover up the knots.
You copy it into the Arduino IDE and while the flora is connected to your computer you upload the code to the flora.
It fires off the color sensor every 3 seconds and changes the lights according to the color it picks up. You could easily add a button to trigger the color check.
Step 4: Wireless
I wanted the bracelet to be separate from the shirt and therefore decided on wireless communication between them.
I used the simplest xBee series 1. Their wireless range is up to 100 meters (!) so the bracelet can even be on someone else.
You need 2, one for the shirt and 1 for the bracelet.
They are preconfigured to work with each other but you can use XCTU to change the PanID that is the identifier. It needs to be the same for both and you can pair the DH and DL to the SH and SL on each respectively.
You need an adapter to connect the XBee to the flora. You can buy one Or if you're adventurous you can make one yourself by using the Adapter Kit.
You'll need a solderer and solder wire.
Use this tutorial to solder the kit. The first one took me 40 mins, the second less then 10. If you're new to soldering as I was, there are plenty tutorials on YouTube.
Tip: don't solder the straight header at the bottom. You can wire the holes directly to the flora instead.
The code here is incorrect. you no longer need the NewSoftSerial library, it is now part of the Arduino SoftwareSerial. Besides, I found it only works when you use Serial1 directly.
If you want to really understand XBees, check out this cookbook.
See the photos to see what I hooked up to what. I'm planning to add a layout diagram. Sometime.
Step 5: Bracelet
- There are many options to create the bracelet. I decided on 3d printing. You can find the Solidworks file and the STL file below. If you are in Israel, I really recommend Dfus 3D for printing. Great rates and excellent quality. Shapeways also looks like a great place to print from although I haven't tried.
You can check out some of my design inspirations here.
It fits very well. You need to be a bit creative with the internal paneling. I used different methods to attach and conceal the electronics. Especially the wiring which is the least attractive part of the project.
- I updated the code to communicate over wireless. See both the bracelet and updated shirt code below.
Note I used Serial1 and NOT softwareSerial. Although all of the examples I found were with SoftwareSerial I could not get the flora to read from the XBee adapter.
Also, Serial monitor will only open after the sketch starts running so I never managed to see the messages printed out during setup().
Step 6: Summary
I really enjoyed working on this project. The design, coding and soldering were all new to me.
The coding took a lot of trial and error. Coming from a coding background I would have preferred a more eclipse like IDE instead of the very basic Arduino one. I read there is an arduino plug-in for eclipse but I haven't tried it out.
For some reason conductive thread does not work with the XBee adapter. I kept replacing it with different options. Finally settled on basic electric wire strung through beads to avoid shorts.
If you have any questions or suggestions, please feel free to post a comment.
For a review of all of the micro-controllers out there, I recommend this instuctable: Which MICROCONTROLLER for your ELECTRONIC FASHION?.
This Flora/Bluefruit Prototyping Armband instructable was also useful for me.
For more ideas for projects, I suggest to check out this site.
Second Prize in the
Wearable Tech Contest