LilyPad Arduino

LilyPad Arduino Lilypad arduino y textiles intel1 from FRANCESCA MEREU

Lilypad es una placa microcontroladora diseñada para utilizarse con prendas y e-textiles.En Medialab hay 2 placas LilyPad Arduino ATmega 168 con 4 pines de conexión RX, TX, VCC y GND. Para conectarlas al ordenador y poder programarlas necesitamos un mini adaptador USB que también encontrarás en el lab. Puedes seguir los pasos en este link: http://web.media.mit.edu/~leah/LilyPad/01_computer_attach.html.

Aquí hemos copiado y pegado la parte que nos será útil para conectar los LilyPad:

Conectar el LilyPad con un adaptador USB

Read this first. There is a better way to do this connection than the tutorial below describes. Ignore the tutorial below and do this instead: solder a right angle male header to the Arduino mini USB adapter and then use female-female jumper cables to connect +,-,tx, and rx on the two boards. On the version 3 Arduino mini USB adapter you want to connect tx to tx and rx to rx. (On the version 2 Arduino mini USB adapter you want to connect tx to rx and rx to tx).

 

    1. Get your supplies  
  • USB to Serial board
  •     the Arduino Serial USB board is available from SparkFun ($21)
    • USB cable ($4)
    •     available from SparkFun
      • Soldering iron and solder
      • Alligator clip test leads ($7)
      •     available from RadioShack
        • Hot glue gun ($3)
        •     available from hotstik.com or your local craft/art store

 
  • TOTAL COST ~$35
    (assuming you've already got soldering equipment)


2. Remove the foam from the Arduino mini USB adapter.

This is an extremely important step!! The foam is conductive and will short out and fry your adapter if you don't remove it.

Imagen eliminada.

3. Cut your alligator clips in half.

Get out one red, black, green, and yellow clip from your set and cut each one in half. Imagen eliminada.

4. Strip the alligator clip wires

Take one of the halves of each color of alligator clip and strip 1/4 to 1/2 inch of insultation off their wire ends. Then twist each end a little so that the stranded wire holds together nicely.
Imagen eliminada.


Imagen eliminada.

5. Put your stripped wires into the USB board.

I use a green wire for TX, yellow for RX, red for + (5v, VCC), and black for - (Gnd). Put the wires into the 4 holes at the front of your mini USB as shown below. If you're using an Arduino mini USB board, the colors -- from left to right looking at the front of the board -- should be green, yellow, red, black.

Important note: not all USB to serial devices are labeled the same way as the Arduino version 3.0 mini USB adapter in the pictures here. Other boards may swap the TX and RX labels. In fact, in the Arduino version 2.0 mini USB adapter the labels are swapped! I know, this is all frustrating!! But, don't worry! Attaching TX and RX up backwards to your LilyPad won't harm it. If, when it comes time to program the LilyPad, you're not getting any response from the board, try swapping the TX/RX alligator clip attachments on your LilyPad before you try other things. More on this when we get there. For now, just keep building and if you're using the Arduino version 3.0 mini USB adapter, you're golden with these instructions.

Imagen eliminada.

Imagen eliminada.

6. Solder on your wires

Turn the board over, bend your wires over so that they'll stay in place, and solder each contact.

Imagen eliminada.

Here's what the back of my mini USB connector looked like when I was done: Imagen eliminada.
7. Put hot glue over the solder joints on your USB adapter

Coat the area around where your wires attach to the USB board with a good amount of hot glue. The object here is to prevent the exposed portion of wire at the edge of the board from bending. This will break the wire. So, you want your glue to come down a 1/4 of an inch or so over the insulated part of the wire. Imagen eliminada.

Imagen eliminada.

8. Attach your LilyPad

Now, clip the unattached end of the the red alligator clip to the +5V tab (this also might be labeled just +) on your LilyPad, the black test lead to -, the yellow lead to 0/rx and the green lead to 1/tx.

Imagen eliminada.

Imagen eliminada.

You may have noticed that the aligator clips have a tendency to slide around on the LilyPad. To fix this problem, your next step is to make a no-slip coaster for your Lily

 

 

Recuerda que hay que pulsar el botón del reset antes de cargar el código desde el IDE de Arduino! Prueba hasta que el programa te de el OK! Puedes ver un video aquí:  http://www.youtube.com/watch?v=Yj639_ez6TM

 

Imagen eliminada.

 

Tipo de post
Blog
Autor
SaraAlvarellos