Hello All!
I've had an idea for a product line for a long while and I was just recently introduced to an Arduino and I've really enjoyed working on it. I'm new to coding and all, but I was just wondering if anyone had any ideas if it would be possible for Arduinos to connect seamlessly and wirelessly. The idea is when two of my devices are in range of each other (whatever the range happens to be if this works) LED's will turn on. All that needs to be present is a connection, so I could use something along the lines of serialport = true (more or less) to just show that there is an active connection between two of my devices. I researched bluetooth 4.0 and what I've found is that you must have both a master and slave, but in my product, the idea is if you pass by anyone on the street that has my device, the LED will light up. Also pairing would be an issue since you cannot actually select the other bluetooth device. Is there any ideas that any of you had to be able to connect multiple Arduino together? Preferably one without a pairing process, or a pairing process that could be done in the code automatically so that the user doesn't have to pair manually.
If you only want to connect with devices that you have some control over (either at the programming or usage points) "binding" could be very simple. I am just proposing to use a common channel and SOP code and a different ID number for each device. Messages intended for a device will be heard by all devices but only acted on by the one with the correct ID.
If you only want to connect with devices that you have some control over (either at the programming or usage points) "binding" could be very simple. I am just proposing to use a common channel and SOP code and a different ID number for each device. Messages intended for a device will be heard by all devices but only acted on by the one with the correct ID.
...R
Thank you Robin, that does look helpful, but what I'm unable to understand is how I would make a network were any of my devices would be able to join. Say I set the transceiver to send out a bit called A, and I set the receiver to look for A. Wouldn't the receiver in the first device pair with itself? Because the goal is for each device to be subtly sending a signal and looking for the same one since they are all technically the same device with the exact same code.
cnesler:
Thank you Robin, that does look helpful, but what I'm unable to understand is how I would make a network were any of my devices would be able to join. Say I set the transceiver to send out a bit called A, and I set the receiver to look for A. Wouldn't the receiver in the first device pair with itself? Because the goal is for each device to be subtly sending a signal and looking for the same one since they are all technically the same device with the exact same code.
There is no "pairing" innately built into these devices. Some data is sent out. Anybody other transceiver in the network will receive that data. It's up to you (or the library) you use to implement any addressing scheme.
There is no "pairing" innately built into these devices. Some data is sent out. Anybody other transceiver in the network will receive that data. It's up to you (or the library) you use to implement any addressing scheme.
If I did that, would it make sense to have them send data for half a second and receive data for the other half second? So as long as the timing works out and they are in range of each other, they should be able to maintain a connection?
but in my product, the idea is if you pass by anyone on the street that has my device, the LED will light up.
Give those people an arduino with one of the 433mhz transmitters that sends a simple string, and you have an arduino with a 433mhz receiver to listen for the transmitted code.
Give those people an arduino with one of the 433mhz transmitters that sends a simple string, and you have an arduino with a 433mhz receiver to listen for the transmitted code.
So only half the people have transmitters and half have receivers? That's not exactly what I was hoping to do.
cnesler:
If I did that, would it make sense to have them send data for half a second and receive data for the other half second? So as long as the timing works out and they are in range of each other, they should be able to maintain a connection?
It would make more sense to send data out at a regular interval, say every 0.5 seconds. In between sending it, listen for responses.
It would make more sense to send data out at a regular interval, say every 0.5 seconds. In between sending it, listen for responses.
If I managed to do that, would it be possible to tell it to not switch off until a set amount of time not receiving a signal so that the timing of having multiple devices around wouldn't have to be perfect for them to light up?
cnesler:
If I managed to do that, would it be possible to tell it to not switch off until a set amount of time not receiving a signal so that the timing of having multiple devices around wouldn't have to be perfect for them to light up?