I have a question, is it possible to wireless program an arduino? Im working on some Laser tag guns and it would be nice if I could get the game details in the Arduino Wireless.
Also its handy to just press start on the computer, and an pulse would be send to the arduino.
Let me know if you have ideas!
Greetings from holland,
Luca
P.S.
I was thinking to keep the price under the 10 dollars. (If that is possible)
Some boards have Bluetooth built in, or added via a module, and can be programmed over BT via IDE.
You can also use some XBee modules that just look like a normal serial link to both ends.
Using these methods mean that you have to connect to each unit individually and upload a new sketch, which may not be what you're after.
If you want to 'send' a game setup to all units then the best way might be to have your base game code on each unit and, when not running a game, have them listen for new instructions over a radio link of some kind. Your instruction would be to start the game or accept a new game definition.
If you are looking for cheap then nRF24L01+ modules fit the bill. Each unit can only communicate with a limited number of other directly, but you can set up a 'tree' topology network, which will allow you to reach more.
Take a look at the following link for ideas. This is for sensor network, but you'd be just doing the reverse and wanting to transmit instructions to multiple units, rather than receive from multiple units.
Each packet has to have a destination so you may need to do some kind of loop to send to each unit individually, but you could still do so relatively quickly.
When it comes to a start signal, set up the 'base' unit with a sync clock and transmit a sync signal to all units, together with a start time. e/g if it takes 5 seconds to loop through communication with all units then set a 10 second timer going at the base and transmit the current time to each unit, together with instruction to start the game when the timer hits 10000ms. This will ensure that even the last unit still has the instruction 5s before they all start the game.
EDIT: Oops, link added after being pointed out kindly by CrossRoads.
None of the "wireless methods" allow the upload of a sketch, as you need to reset the Arduino before you can upload! Normaly opening the comm's port to the Arduino causes a reset and therefore invokes the bootloader which can then be used to upload a sketch.
There are h/w mods you can make which will allow you to remotely reset the Arduino. But even then the bootloader looks for the sketch on Serial and therefore your wireless device must talk to the Arduino on Serial and not Serial1 or anything else.
You can do this with the Arduino wireless/sd shield and an XBee module if you add the extra hardware to create the reset. Google for the how to.
Thanks for the responses!
I could'nt find anything on google about programming the arduino using the nRF24L01.
Is there someone on this forum who can tell me this/Give me a link?