Hello everyone, I am a student who is very new to Arduino and working on a project with Arduino Lilypad. I would like to do a parallel communication between 2 Lilypad and computer at current stage (mobile device at final stage). I have read number of article and tutorial but they are mainly focusing on the serial communication instead of parallel communication. I would like to ask how can I distinguish two arduino lilypad from the computer aspect and the steps.
I hope the following diagram helps you guys understand what i mean. Many thanks.
From your diagram it looks like you want two Arduinos to connect to a PC at the same time. That is not what computer folks understand by "parallel communications"
There is no reason why both of them cannot be using normal serial communication.
I have no experience of a Lilypad but I don't think they include WiFi or Bluetooth which would require you to add extra hardware - such as a HC05 Bluetooth module or an ESP8266 Wifi module. That may not be very convenient. And the ESP8266 needs a considerable current at 3.3v - more than the 3..3v pin on an Uno can provide.
If you could arrange for either only needing 1 lilypad or using one of the pair to collect data from the other so that there is only one communicating with the PC it would be simpler.
What data do you want to send, and how many bytes per second do you need to send?
Robin2:
From your diagram it looks like you want two Arduinos to connect to a PC at the same time. That is not what computer folks understand by "parallel communications"
There is no reason why both of them cannot be using normal serial communication.
I have no experience of a Lilypad but I don't think they include WiFi or Bluetooth which would require you to add extra hardware - such as a HC05 Bluetooth module or an ESP8266 Wifi module. That may not be very convenient. And the ESP8266 needs a considerable current at 3.3v - more than the 3..3v pin on an Uno can provide.
If you could arrange for either only needing 1 lilypad or using one of the pair to collect data from the other so that there is only one communicating with the PC it would be simpler.
What data do you want to send, and how many bytes per second do you need to send?
...R
I am afraid that one of the lilypad will have a very heavy loading and therefore I would like to swift the loading to the mobile device. I need in total of 10 analog input and adding a few light bulbs while I have no idea on how to check number of bytes per second as I am new to arduino. Do you think my concern valid? Thank you
bencsl:
I am afraid that one of the lilypad will have a very heavy loading and therefore I would like to swift the loading to the mobile device. I need in total of 10 analog input and adding a few light bulbs while I have no idea on how to check number of bytes per second as I am new to arduino. Do you think my concern valid? Thank you
You need to provide a comprehensive description of what you want to achieve including a list of things that will be connected to each Lilypad.
Why are you using a Lilypad rather than (say) an Uno?
Have you thought about what I said about needing extra hardware for wireless communication?
My project is to make an embedded keyboard into the gloves with each unique gesture will key-in its respective character. I choose lilypad because of it's thin and light weight. I have planned to buy an extra hardwire for wireless or bluetooth connection but at the current stage, I am still using USB to transfer the data. The attached diagram is how I connect my lilypad with flexible sensor. But still I have no idea on how to connect two lilypad together.
I can't tell what the sensor is you are connecting.
Only the Atmega2560 has more than 8 analog input. You can use any other uC and add a 1-2-4-8-channel ADC with 8-10-12 bits for more analog inputs.
I think if that was my project I would do one of two things.
A. I would just put the sensors in the gloves and run wires to a Mega (perhaps stored in a shirt pocket) and then use Bluetooth to send the data to the PC. This would, I think, be the simplest option.
B. I would have a Lilypad for each glove communicating with wires with a Mega (which has multiple hardware serial ports) and use the Mega to send the data to the PC.
I reckon you will run into mechanical problems if you were to try to add Bluetooth or WiFi modules to the Lilypads on the gloves. Also I don't think a wireless system could be powered from a coin sized battery.
If you are really set on using wireless devices on the gloves themselves I suggest using nRF24L01+ modules communication with a 3rd nR24 connected to an Uno which is connected to the PC. Or, you may be able to get an nRF24 that plugs into a USB socket thus removing the need for the Uno - but requiring some additional PC programming.