Coin Slot Detector

151,730

51

97

About: Amy Khoshbin is a Brooklyn-based artist. She creates hybrid works using performance, video, and interactive media to explore the production and transmission of narratives both personal and cultural. She has ...

by: amy khoshbin
her website: www.tinyscissors.com

when your coin slot is exposed, this wearable hip-pack vibrates that area to make you aware of it. you decide to cover up, or let it all hang out.

the coin slot detector is a simple way to tackle the complicated modern problem low-rise jeans can cause. with this hip pack, now your coin slot itself is given the sensory power to alert you as to when it's exposed. both you and your coin slot decide what's next. 

tech summary: using a Lilypad Arduino, vibrating motor, and a photoresistor (measures the amount of light in your coin slot), you will make a wearable apparatus. when the photoresistor/your coin slot is covered, the hip-pack is at rest, when it/your coin slot is exposed, this triggers the vibrating motor to start vibrating & let the user know.

Step 1: Ingredients

get your ingredients together!

for this project you'll need:
-11.5 x 14.5 in fabric
-conductive thread
-lilypad arduino
-vibrating motor
-1N4004 diode
-photoresistor (sometimes called photo cell)
-1.5 to 5 V step-up battery pack
-wire
-wire cutters
-thread
-snaps
-snap tool
-suspender clips
-plastic tubing

for protoyping (not pictured):
-breadboard (you can buy this at Radio Shack)
-Arduino Diecimila
-USB cable
-alligator clips (also buy these at Radio Shack)
-USB to Serial Converter
-female headers
-headers

Step 2: Prototype!

1. lay out the breadboard & your Diecimila Arduino.
2. connect wires to the breadboard- one wire into the blue rail for ground, and one into the red rail for power. attach the power wire to the 5V input on the Diecimila Arduino and the ground wire to the Gnd input on the Diecimila Arduino.
2. connect a 10Kohm resistor from the ground rail to the center of your breadboard on the same line. then connect a wire in the hole next to it to the analog pin 0 on your Arduino.
3. connect a wire from the power rail to the center of the breadboard.
4. solder the photoresistor's leads to longer wires to connect to the breadboard (about 4-5 inches).
5. connect the photoresistor to ground in the breadboard by putting one wire next to the wire going to analog pin 0. then connect the other wire to power by putting it in the hole next to the power wire you connected in step 3.
5. connect a wire from the breadboard to digital pin 9 on the Arduino.
6. then connect a 1N4004 diode in the hole next to it, and put it so that the ground side (the side with the grey stripe) is facing away from that wire.
7. solder your vibrating motor's leads to longer wires for prototyping.
8. connect one of the vibrating motor's wires to the hole next to the diode. connect the other vibrating motor lead to the ground rail.
9. attach Arduino to computer via USB cable to power it.
10. write the code in the following slide into the Arduino 0012 programming environment.

Step 3: Program in Arduino 0012

open up Arduino 0012 on your computer. copy and paste the following code into your program window...then press the Verify button to make sure it works. Finally, click the Upload to Board button, to upload it to the Arduino to run. Once the program is uploaded, click the Serial Monitor button to see the values changing as you cover and uncover the photoresistor. When the values go above 500, the vibrating motor will vibrate!

/*Coin Slot Detector
by Amy Khoshbin
2008*/

int photoPin = 0; // Analog input pin that the photo resistor is attached to
int photoValue = 0; // value read from the photoresistor
int vibPin = 9;
boolean isVibrating = false;

void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
pinMode(vibPin, OUTPUT);
}

void loop() {
photoValue = analogRead(photoPin); // read the pot value
Serial.println(photoValue); // print the pot value back to the debugger pane

vibrate();

delay(10); // wait 10 milliseconds before the next loop
}

void vibrate(){
//change the values greater than and less than to fit the sensitivity of the photoresistors you use

if(photoValue > 500 && isVibrating == false){
digitalWrite(vibPin, HIGH);
isVibrating = true;
}

if(photoValue < 500 && isVibrating == true) {
digitalWrite(vibPin, LOW);
isVibrating = false;
}

}

Step 4: If Working, Program the Lilypad Arduino

if your program runs, and you're getting the photoresistor to get values into the Arduino and vibrate the vibrating motor, then you're ready to move onto the Lilypad Arduino. To program this microcontroller, you need to use an USB to Serial converter.

Since the Lilypad doesn't have headers soldered to them for easy prototyping or programming, I recommend using alligator clips.

First get female headers, then cut 4 off of the strip, and solders wires to each lead. Connect the female headers to the Gnd/RX/TX/Power headers on the Lilypad.

Then cut another 4 female headers and solder them to the USB to Serial Converter in the Gnd/RX/TX/Power holes. Attach the wires from the headers on the Lilypad Arduino to the USB to Serial Converter headers.

Attach the USB to Serial Converter to the computer via a USB cable. In the Arduino programming environment, go to the Tools menu, go to Board, and set it to Lilypad Arduino & set your Serial Port to the top one on the list. Then press the Upload to Board button in the Arduino programming environment, then press the Reset button on the Lilypad Arduino, and watch the program upload.

Once uploaded, we can start making the Coin Slot Detector!

Step 5: Cut Fabric

cut your fabric to 11.25" x 14.25".

Step 6: Pin &amp; Sew Fabric Edges

picture 1:
-orient fabric where 11.25" is horizontal, and 14.25" side is vertical.
-pin top and bottom edges of fabric by rolling the edge once, then again, and pin them down.
-sew top & bottom edges first.
-then pin right and left edges of fabric.
-sew right & left edges of fabric.
-fold fabric horizontally.

picture 2:
-once right edges are sewn, fold fabric horizontally.
-sew the top 4 inches of the right edges together.

picture 3:
-then roll the top edge of the fabric, pin it down.
-sew the top edge.

picture 4:
the fabric piece is secured on the top half, but can be opened on the bottom half.


(in the images below, the pins are pinned vertically, but as i learned after taking this photo, pin them horizontally, so you can sew over them without them getting in your way!)

Step 7: Snap the Edges

using the snap tool, snap the top edges, .25" from the left & right-hand folds. also snap the bottom edge, .25" from the left & right-hand folds.

Step 8: Sew Battery Pack

sew battery pack 1" from left edge on fabric. secure it with thread in two holes on plastic.

Step 9: Sew Lilypad Arduino

sew Lilypad Arduino in place 1.25" away from battery pack wire. sew Lilypad in for security with non-conductive thread first.

Step 10: Cut Plastic Tubing

you can buy this plastic tubing at a hardware store or plastic shop.
measure .5" from edge and cut plastic with a bandsaw or hand saw. sand with sandpaper to get rid of rough edges.

Step 11: Put Vibrating Motor in Tube

see image below.

Step 12: Motorhead-ers

attach conductive thread to each lead of motor by wrapping them. leave about 5 inches of thread hanging on each lead. secure with fabric/hot glue.

Step 13: Sew Motor Into Place

sew motor in place on fabric first to secure- .25" from battery wire & Lilypad Arduino.
sew left lead of motor to ground of Lilypad with the conductive thread attached to the motor's lead.

Step 14: Bend Diode Legs to Create Hooks

bend diode legs to create hooks to sew to.
place diode .20" from battery pack, motor, and Lilypad Arduino.

Step 15: Sew Diode Into Place

-sew power lead of diode to Lilypad Arduino pin 9 with conductive thread.
-sew ground lead of diode to left lead of motor with conductive thread.

Step 16: Connect Headers to Power/ground

-wrap conductive thread around each right-angle male header. one for power, the other for ground.
-secure with fabric/hot glue

Step 17: Sew Headers to Power/ground

-sew lead that connects to the battery pack's ground to the Lilypad Arduino's ground. same for power. -make sure not to cross paths!!

Step 18: Sew the Resistor

-bend leads of resistor to make hooks to sew to.
-sew left lead of resistor with conductive thread to analog pin 0 of the Lilypad.
-sew right lead of resistor to ground of Lilypad.
-make sure not to cross paths!!

Step 19: Sew Clips in Place

-fold fabric in half vertically.
-then sew suspender clips into place on back of folded fabric 1/8" from left & right edges of fabric at top of fold.

Step 20: Solder Photoresistor to Wire

-solder each lead of photoresistor to wire 4 inches long.
-solder this wire to wire wrap that is 5 inches long.
-twist wire together.

Step 21: Sew Photoresistor to Fabric

-sew photoresistor to back of fabric: 1.5" from clips at each edge. 1.25" from top of fabric.
-leave all 5" of wire to be able to bend and fold.

Step 22: Photoresistor Leads Sewn

-sew leads apart, so as not to short.
-insert wire wrap into the fabric to connect with the rest of the circuit.
-sew right lead of photoresistor to analog pin 0 on the Lilypad Arduino.
-sew left lead of photoresistor to power on the Lilypad Arduino.

Step 23: Sew Wire Wrap Into Place

-on the inside on the back flap of fabric, the wire wrap from the photoresistor's leads will be loose. you need to sew these into place with non-conductive thread. they will be leading from the photoresistor's leads to the power of the Lilypad Arduino and analog pin 0 on the Lilypad.

Step 24: Wearing the Pack on Yr Pants!

YOU ARE DONE!!!

when coin slot is exposed, photo resistor is exposed and triggers vibrating motor to vibrate!

Share

    Recommendations

    • First Time Author

      First Time Author
    • PCB Contest

      PCB Contest
    • Toys Contest

      Toys Contest

    97 Discussions

    0
    None
    mlbinperth

    7 months ago on Step 24

    Great Project

    Owing to the size and exposure of my "Coin Slot" I would need a bigger battery pack!

    0
    None
    Ecila28

    3 years ago

    hi your project is great and awesome and totally cool

    can i use it for my school project?

    0
    None
    ecki242

    5 years ago on Introduction

    First: Thumbs up, cool project. :)
    To add the german version: "Maurer Dekolleté", literally translated as "bricklayers décolletage"....

    0
    None
    nervouswreck

    10 years ago on Introduction

    Hi Amy, Over here in england we call it A Bricklayers Arse, Or when you spot one We ask politly "Can i park my bicycle"

    14 replies
    0
    None
    smogitbmlbytes

    Reply 10 years ago on Introduction

    Not sure what part of England you come from, but in my part we call it builders bum, so much more polite...

    0
    None

    It's called Plumber's Crack here in Australia too...
    Just goes to show the world is being Americanised - in a good way, of course ;D

    0
    None
    NhuunSpannerz

    Reply 7 years ago on Introduction

    We call it a plumber's crack (or just plumber) here in Iceland too ;D

    0
    None
    nervouswreckNhuun

    Reply 7 years ago on Introduction

    Hi Again guys & gal's, Just got in from work and watching a cooking competition, Theres a guy with 2 bicycle parking placesshowing above his jeans, The commentator said "I thought you said your a cook not a plumber"