PROJECTS

The Chameleon Bag

Make an interactive messenger bag that reacts to your RFID-tagged objects.

Written by Kathryn McElroy

image

Time Required:

6–8 Hours

Cost:

$180–$200

Solder up the electronics, then brush up on your sewing to make this spectacular bag.

Jeffrey Braverman

THE CHAMELEON BAG IS AN INTERACTIVE MESSENGER BAG WITH A REACTIVE FRONT PANEL. I wanted the bag to display animations and patterns across its front flap as the user places different RFID-tagged objects into it, and I accomplished this by combining a Boarduino microcontroller and an RFID reader inside the bag, along with 49 RGB LEDs on its front flap.

KATHRYN MCELROY is a Design Lead and UX Designer for IBM Watson in Austin, TX. She is an award-winning designer and photographer and is passionate about near-future technology, smart objects, and open hardware. Kathryn is a talented maker in many mediums, including: sewing, electronics, baking, papercraft, and graphic design.

image

Designed into the coding are three specific uses, with potential for more. First, the bag keeps track of the RFID-tagged items placed inside and warns the user through light displays if an important item, such as keys or cellphone, is missing. Alternately, the lights can change color to match clothing or accessories embedded with RFID tags. And finally, it can be programmed to display cheery animations when a favorite totem with an RFID tag is placed in the bag, enabling the user to share her good mood with the people around her. Since the user has access to the microcontroller, she can code additional uses to change the colors and animations of the display.

1. Set up the electronics

1a. First, solder your Boarduino following the directions at Adafruit (makezine.com/adafruit-boarduino). Connect it to the computer using the FTDI cable; the colored wires with female headers go onto the back wall of pins (black goes to ground, for orientation).

Open the project code in the Arduino IDE software, select Tools → Board, and select Duemilanove with ATmega328. Upload the code to the board and launch the Serial Monitor by clicking the icon in the upper right-hand corner. It should tell you that no RFID reader is attached.

NOTE: If you’re having trouble programming the Boarduino, try moving the jumper over one pin.

1b. Next, set up the RFID reader using the Adafruit tutorial (makezine.com/adafruit-rfid-tutorial). Solder the two 3-pin strips, but don’t solder the 8-pin strip. Follow the directions to connect the RFID reader to the included 4050 level-shifter pin. Mount the 4050 onto the small breadboard, and temporarily connect it to the RFID reader and to the Boarduino with jumper wires, using Figure 1 for reference.

image
image

Kathryn McElroy

1c. Now you’ll test the RFID reader with some RFID tags. First, reload the code and open the Serial Monitor. It should now recognize that the reader is attached; if not, check your connections.

1d. Each RFID tag has a unique number, and you’ll see these numbers flash onto the Serial Monitor when you place a tag within 4" of the reader. Copy and paste these tag numbers into a text document for reference. In the project code, about halfway down, change the cardidentifier variables to your unique tag numbers to choose what animation or colors you’d like to see when the reader reads that number. Then reload the code to your Boarduino. Now you can label your RFID tags to keep track of which tag launches which display.

1e. You’re ready to set up the RGB LEDs. Refer to the Adafruit tutorial (makezine.com/adafruit-rgb-led) for the specific wires. You’ll need to power the LEDs with the 5V plug-in power supply while testing so they don’t try to pull 5V through the Boarduino. Connect the other wires temporarily to the Boarduino as outputs. With the Serial Monitor open, test the RGB LEDs by trying the tags you’ve assigned colors to. You may need to troubleshoot if something is not properly connected.

1f. Once you’ve gotten all the components to work together, you’re ready to make these connections permanent! Arrange all your components onto a 2"×4" protoboard. Use the 16-prong socket for the RFID reader’s 4050, and two 15-pin strips of female headers to make a strip for each side of the Boarduino. Solder the socket and female headers in place. Solder all the connections between the 4050 and the Boarduino.

1g. Cut extra long wires for the connection between the 4050 and the RFID reader, and solder the wires to the protoboard, waiting to attach the reader until we determine the length we need. Cut extra long wires for the RGB LEDs as well, about twice as long as the RFID wires.

1h. Now you can solder the power connections for the RGB LEDs and the RFID reader. We’ll be using 4 AA batteries for our power supply to the Boarduino. The RFID reader needs 3.3V, so connect one of the 5V pins to the 3.3V voltage regulator, then connect it to the 4050 and the reader. The LEDs need 5V connected to 2 different wires; since there is only one 5V pin left, connect that to the RGB LEDs, then connect the Vin (total voltage from the batteries) to a 5V regulator before connecting it to the other power wire.

Materials

» Boarduino microcontroller Adafruit Industries item #91, adafruit.com

» FTDI cable, USB, 3.3V

» RFID reader Adafruit #364

» Breadboard, small for testing

» RGB LED strips (2) Adafruit #738

» Power supply, 5V DC for testing

» RFID tags Adafruit #365

» Protoboard, 2"×4"

» Female headers, 0.1"

» DIP socket, 16-pin, 0.3"

» Voltage regulator, 3.3V, LD1117V33

» Voltage regulator, 5V, 3A, 3-pin

» Battery holder, 5V, 4xAA

» Jumper wires for testing

» Luan plywood, 1/8"×11"×14"

» Electrical tape

» Upholstery foam, 1"× 26"×20” non-yellowing

FOR THE BAG:

Alternately, you can repurpose an existing messenger bag.

» Canvas, gray, 2 yards

» Canvas, white, 1 yard

» Thread, gray and white

» Magnetic snaps (2)

» Metal loops, 2" (2)

» Metal slide, 2"

» Zipper

Tools

» X-Acto knife

» Computer with Arduino IDE free download from arduino.cc

» Laser cutter or drill

» Foam cutter

» Soldering iron and solder

» Sewing machine

image
image
image
image

2. Sew a bag or repurpose one

When you want a break from the electronics, start sewing the messenger bag — or repurpose an existing bag — following the instructions and templates at makezine.com/projects/chameleon-bag.

3. Assemble

3a. Using the downloadable template (at the URL above), laser-cut or drill holes in the thin plywood to fit the RGB LEDs and hold them in place in a grid pattern. (If you’re repurposing a bag, adjust the template to fit into your bag’s front flap.) Then push each LED into a hole, and use electrical tape on the backs to hold them in place.

image

3b. Cut your upholstery foam into two 13"×10" rectangles (or the size of your repurposed bag), one for the back panel and one for the front panel that will cover the LEDs. On the back foam panel, cut out cavities (not all the way through) to hold the electronics. On the front foam panel, use an X-Acto knife to cut Xs where the LEDs will push into the foam. The foam will diffuse the LEDs’ colors and make them flow together.

3c. Insert the electronics in the spaces you cut out in the back foam panel, then trim and solder the wires to the RFID reader. Cover the LED board with the front foam panel and insert it into the white front flap of the bag. Measure where the other half of the magnetic snaps should go on the bottom of the front flap and attach them. Measure and finalize the wire lengths from the Boarduino to the LEDs, take the electronics out of the bag, and solder the final wires in place.

image

3d. Put all the electronics back into their respective bag parts. Insert the front flap’s extra fabric down into the back of the bag.

image

Fold the raw edges of the back panel into itself and pin everything together. Sew the panel together, taking care not to damage the electronics or break your machine’s needle on the LED wires.

3e. Unzip the back zipper, insert the battery holder, plug it into the Boarduino, and test. Now your Chameleon Bag can tell what’s missing, express how you’re feeling, or just match your outfit.image

image

Get busy with the project code, downloadable templates, sewing instructions, and video at makezine.com/projects/chameleon-bag

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.134.107