3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Proximity-Sensing Pocket Squares

Proximity-Sensing Pocket Squares
My friends and I like to coordinate for our mutual friends' weddings.  Our friends L & E got married recently and we wanted to do something special to mark the occasion.  We settled on something elegant and simple -- pocket squares that could visualize the number of people within a certain proximity.  For each pocket square I sewed 4 LEDs to a LilyPad Arduino and programmed it to display the number of other pocket-square-wearers present, using the XBee's RSSI data for coarse grain distance approximation.



In this Instructable, I will show you how to make your own set of proximity-sensing pocket squares. 

I used the following materials per person:
  • 1 pocket square (doesn't have to be silk--in fact, a more sturdy material works a little bit better to help retain the shape)
  • 4 lights (I used white lilypad LEDs)
  • 1 LilyPad Simple Board)
  • 1 LiPo Battery
  • 1 XBee (Series 1)
  • 1 XBee Breakout board (I designed my own XBee Breakout for the LilyPad)




 
Remove these adsRemove these ads by Signing Up
 

Step 1Construction

Construction
To make the pocket square patch, cut out a small piece of fabric (I cut 4.5"x3.5"  to give myself some extra room).  Next, sew the plus side of each of the 4 LilyPad LEDs to an individual petal (PIN) on the LilyPad.  I used pins 5, 6, 9, and 10.  Lastly, using conductive thread, sew all the minus sides of the LilyPad LEDs together and connect to pin 11 (we will declare pin 11 ground using the Arduino software). 

Good work!  Now you're done with the construction!

I designed my own XBee Breakout Boards that easily plug into the male header on the LilyPad.  You could use the Lilypad XBee Breakout and sew the boards back to back. 
« Previous StepDownload PDFView All StepsNext Step »
28 comments
May 25, 2012. 5:52 AMnapok says:
I tried to build a similar project on the basis of jewellery but when I tried to put your code into the Arduino IDE there were lots of errors.
Can you help me?
#include <XBee.h>
#include <NewSoftSerial.h>
#include "FilteringScheme.h"
It doesn't find either of the above.
I know there is now the Softwareserial instead of the newsoftserial, but that didn't help.
Do I have to paste the other files (except the .pde) also in somewhere?
Apr 23, 2011. 10:05 AMModMischief says:
This is awesome.

My first thought: high-tech hanky code!
May 3, 2011. 1:09 PMespdp2 says:
I've seen it before. Didn't have a CLUE that it meant anything. Thanks for the edu-ma-cation! :-)
Apr 24, 2011. 9:24 AMChakazuluu says:
Hmm..possibly this can be used to attach to my keys & set of a buzzer when I get to far from them. I am always searching for my keys.
May 3, 2011. 1:01 PMespdp2 says:
Triple-Like. This is genius! Maybe if I could use a Nano, cuz I hate big keyrings.
Apr 24, 2011. 3:48 PMRayney says:
These would be great for a Con or some other crowded event! Depending on the range it would be helpful to find your friends.
Apr 25, 2011. 10:59 AMRayney says:
Wow, I wouldn't need something with that kind of range unless I was going somewhere like DragonCon that ranges over several hotels in Atlanta.
Apr 25, 2011. 8:33 AMRayney says:
Oooo, that would be great. It would be very helpful for someone like me, I am in a wheelchair and can't see over the crowds. Now I just wish I was savvy enough to actually make some lol
Apr 25, 2011. 8:26 AMSulaiman89 says:
Wow that was a lot more complicated than it looks, impressive! What's the total price for each set and the individual prices for each part? Thanks
Apr 25, 2011. 11:02 AMRayney says:
So it would be cheaper if you sew your own pocket squares. Actually, you don't even have to sew them, my dad made some using an iron on binder stuff (like StitchWitch) and some fabric that was on sale. In that case you could make many of them for less than $1 a piece. (Just the squares, not all the other stuff)
Apr 25, 2011. 6:47 AMbrazell says:
That rocks!!!
Apr 25, 2011. 1:47 AMNaturalCrafter says:
I really need to do a tech project. I love these ideas..Thanks.
Apr 22, 2011. 10:08 AMwakojako says:
This is really loveley but what would be cooler is if you used binary to display how many people were there. mind I think only a select few would understand.
Apr 22, 2011. 10:49 AMomnibot says:
Well, you know what they say;
-There's only 10 kinds of people, those who understand binary and those who don't.
Apr 24, 2011. 11:50 PMMaXoR says:
Lol, you made an old programmer smile today.
Apr 24, 2011. 5:58 PMDesignerUserName says:
This comment made my day.
Apr 24, 2011. 10:26 AMjimmiek says:
You sound like Rat from "The Core"
Apr 24, 2011. 8:56 AMporcupinemamma says:
hey hey whoo hoo I actually understood that joke. (epic for me guys)
Sep 13, 2011. 3:42 PMDIY-Guy says:
Could it be said that there are even 11 kinds of people? Those who don't know binary, those who do, and those who forget how to convert it in their heads?
Apr 24, 2011. 10:52 PMimakethings says:
good ...may be useful for security purposes!
Apr 24, 2011. 5:14 PMmarinekid says:
whats the proximity on these bad boys? 5 metres? can you increase that?
Apr 24, 2011. 8:55 AMporcupinemamma says:
Totally out of my intellectual league. You must be so much fun as a guest at parties. Way to go!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
38
Followers
11
Author:quasiben(Electric Stitches)