Pages: [1]   Go Down
Author Topic: lilypad output connections  (Read 2265 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i love the fact that Lilypad can run on 3.7V LiPo battery instead of 5V.  the only drawback is making physical connections to the pins using aligator clips.  i've toyed with the idea of using straight and right angle headers to make easier connections, but dont want to do it without looking into other ideas that i might like better.  

has anybody tried or does anybody have an opinion on another type of connection to make to the lilypad's pins?

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey fornzix.  since the LilyPad is made for wearables, it's not ideal for breadboarding & more traditional electronic tinkering.  If what you're looking for is a general purpose Arduino that can run on 3.7 volts, it's not hard to make your own ;-)  

Check out Ladyada's fantastic tutorials & her breaduino kit.  To make the breaduino run on (almost) the same voltage range as the LilyPad, just leave out the voltage regulator components & connect power directly to VCC on the microcontroller.  You'll want to carefully look at the ATmega168 data sheet & Ladyada's schematics to get this right.  Note that if you do this, you'll only be able to power your breaduino w/ a max of 6 volts--anything more will kill it.
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 731
skcor oniudrA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice, I just had 2 arrive - I'll solder on some bb connectors fornzix and make it fit a bread board, if it's destroyed it doesn't matter cause I wasn't planning on wearing it.

If it works, I'll post pix. I'd rather use these than make the kits which cost just as much and take up time. It's a shame there isn't a square lillypad, with legs.

If it is sewn into clothing, what are people using as connectors? surely they're not walking around dangling a bunch of alligator clips.
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 731
skcor oniudrA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I used a small breadboard, works perfectly, no problems with USB mini adaptor - wired tx to tx, rx to rx

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you use conductive thread & sew it into things!  smiley

http://www.flickr.com/photos/leahbuechley/1479216779/in/set-72157601404004841/
thread: http://www.sparkfun.com/commerce/product_info.php?products_id=8549
« Last Edit: January 31, 2008, 10:51:25 am by leahb » Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 731
skcor oniudrA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote

Awesome, and you can string them together using I2C (two wire interface) and the Wire.h library (no hacks or mods required)



Pull ups are 1.8k.

The software I tested from the Arduino 10 examples, used:-

Slave: "slave_receiver.pde"
Master: "master_writer.pde"

Output from the slave to the serial monitor, will look like this:-

Code:
x is 0
x is 1
x is 2
...
x is 255
x is 0
...
etc etc

 
In the picture, the "Slave" is the lilypad connected to the USB adaptor.

So, aside from being cute and inexpensive, the lilypads are a nice solution for adding an extra hardware serial port if there is ever the need.  

A serial device can be connected to the hardware serial pins on the "Master" lilypad, and hardware "serial.available" can be used to retrieve data from the buffer, and then send it on to the "Slave" via TWI.

When the "Master" sends data to the "Slave", a receiveEvent is executed, breaking out of a loop. Data can then be read using Wire.available, and then resume a loop. With software serial, a loop can't resume until data is received, so if the device being read doesn't send any, a program hangs until it does.

If I understand the literature correctly, a considerable number of Lilypads can be connected this way. I'm not sure if that has any application in the wearable arts market, but I can think of a few useful things to do with it  smiley

PS: the polarity of the bottom bread board is different to the top, follow the wires and ignore the coloring of the breadboard

« Last Edit: February 01, 2008, 01:41:18 am by John_Ryan » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

nifty!
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 150
veroboaring is the new XGame - Extreme Veroboarder
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im try with the same !!

I want to use an AtMega8 like a Rs232 UART to I2C.
My hardware is, an ARM7 CPU (I2C Master) and two AtMega 8 (I2C Slave) all connected via I2C. :o

Both Atmega with diferent Id, and a function mix in this I2C lib to Get and Retreive data from the Rs-232 to I2C and viceversa.
 
here is my ugly code:
 
#include <Wire.h>
 
void setup()
{
  Wire.begin(1);  
  Serial.begin(9600);  
  Serial.println("Inicio");  
 
  Wire.onRequest(requestEvent);
  Wire.onReceive(receiveEvent);  
 
}
 
void loop()
{
  delay(20);
}
 
// function that executes whenever data is received from master
// this function is registered as an event, see setup()
void receiveEvent(int howMany){
  
  char c = Wire.receive();  
  Serial.print(c);
  
  while(1 < Wire.available()) // loop through all but the last
  {
    char c = Wire.receive();  
    Serial.print(c);          
}}
 
 
 
void requestEvent()
{
  Wire.send("1234567890");  
}
 
Now on requestEvent the data is sent to the I2C (AtMega --> ARM), but the other part get data and print it only one time, but keeping send data onrequestevent (AtMega <-- ARM).
 
So what event i must kill when i need print the data incomming to the AtMega from the ARM port?
 
It's a HandShake problem!!!
 
Ideas?
 
Best Regards
Frank
« Last Edit: July 13, 2008, 01:32:58 pm by FrankRadio » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 150
veroboaring is the new XGame - Extreme Veroboarder
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's more and more strange!!!

I can't print data to serial, but the ACK from the Arduino goes to the ARM device  :o
The ARM tell me the data was successfuly received in the slave device!.

But i can't print this data on the serial, only one time why?

Best Regards
Frank

Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is pretty cool; something else I noticed (that I never thought about before) was how big the LilyPad is (I had it in my mind that it was slightly smaller). In fact, it seems like there is a ton of "empty" space on that board; if you could reduce the size of it by a 1/3, that would make for some slicker packaging for some ideas I have had in the wearable computing arena (unless there is a bunch of stuff on the other side of the board).

I have also thought about the idea of an Arduino-based I2C bus parallel processing "super-computer"; it is certainly feasible and doable (your app, and others I have seen, shows that). Basically, the idea would be a large PCB (something that could be mounted in a standard 1U case?) with nothing but a bunch of ATMega328s (smt, of course), with I2C connecting all of them (with a board sized for a 1U case, you could probably easily hit the number of slaves limit with SMT). There is, of course, this:

http://www.illuminatolabs.com/IlluminatoHome.htm

Which is a helluva cool device, though pricey. Just like that device, though, it would be a product searching for a need. What could you use such a system for? Hardware neural net? Ray tracing? Would I2C be a fast enough interconnect, or would something else be better? Could the I/O ports be repurposed for that (perhaps use them to access and share some 8-bit memory)?
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Pages: [1]   Go Up
Jump to: