Pages: [1]   Go Down
Author Topic: Vibrotactile Jacket LilyPad Help Needed  (Read 3201 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I am trying to use 4 Arduino LilyPads (http://www.arduino.cc/en/Main/ArduinoBoardLilyPad) along with 16-20 of these vibration motors (https://www.sparkfun.com/products/11008) to create a vibrotactile jacket.

I am trying to use the LilyPads as slave modules controlled by an Arduino Mega.
I intend to control the motors using Pulse Width Modulation (PWM).

I have a few questions, as I was previously using the Arduino Uno and now have to shift suddenly to the LilyPad.

1) Is the LilyPad capable of communication through I2C? (since it is not specified on the page?http://www.arduino.cc/en/Main/ArduinoBoardLilyPad)
2) Is it possible to connect using the USB cable I was using for the Uno/Mega?
3) Since the LilyPad lacks headers, is all the wiring supposed to be soldered? Or is there some alternative? (Soldering Irons hate me  )
4) Since each motor is rated at 75mA previously I used a MOSFET to power them on the breadboard, how do I translate the breadboard circuit into something I can mount onto a jacket?
 
Lastly, I would be very grateful for any general advice or precautions I should be mindful of!

Thanks in advance!
Logged

Requiescat in Pace

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8954
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

> 1) Is the LilyPad capable of communication through I2C?

Since the Lilypad uses an ATmega328P it should be able to act as an I2C slave.

> 2) Is it possible to connect using the USB cable I was using for the Uno/Mega?

Not sure what you mean.  I don't think the Lilypad includes the USB-to-Serial hardware so you typically use a USB-to-TTL-Serial cable ("FTDI Cable") to upload sketches.  The Mega has a USB connector and built-in USB-to-Serial hardware.

> 3) Since the LilyPad lacks headers, is all the wiring supposed to be soldered?

I usually see the Lilypad connected with several stitches of conductive thread through the connection holes.

> 4) Since each motor is rated at 75mA previously I used a MOSFET to power them on the breadboard, how do I translate the breadboard circuit into something I can mount onto a jacket?

You definitely need some kind of driver to switch 75 mA.  The board schematic shows a 33-ohm resistor so maybe it will work on less current.

If you need the higher current, perhaps the ULN2803 darlington array would work.  I don't know if anyone makes a lillypad-like board that will hold an 18-pin DIP but you could always design one yourself.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I2C is on a4 and a5 connector of the Arduino's and these are exposed. (in picture at top just under the connector)

You might try simple I2C slave SW on the lilypads and an I2C scanner to see if they can be found.

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot for the help guys, one last question, would the FLORA be a better option than the LilyPad for this?  (http://www.adafruit.com/products/659)
Logged

Requiescat in Pace

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you must make a list of what functionality you need and check if they provide, it's that simple.
Given that the FLora is a later product, it might have learned from 'the working of' the lilypad.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: