Dear all,
I'm at a loss in my little project to program an Arduino Uno board wirelessly... Could you please help me? =(
I've been going trough tons of tutorials and forum topics but none have solved my puzzle... For reference, I've used this tutorial as a framework:
http://www.ladyada.net/make/xbee/arduino.html
Setup sender:
- Xbee Pro S1 (802.15)
- XBee USB Adapter Board (parallax)
Receiver:
- Arduino Uno
- Wireless SD shield (switch set to 'micro')
- Xbee Pro S1 (802.15)
I've made all the right connections as describe in the tutorial (about the connection between RTS and IO3 at the sender and the reset amplifier at the reciever). The communication works flawlessly, I can control the Arduino Uno wirelessly with the PhysicalPixel script using the setup. The reset works also flawlessly: when I put the IO3 of the sender on high, the Uno resets itself.
When I try to upload a script using the sender and the receiver powered by batteries, a lot of LEDS start to flikker at both sides, the Uno resets itself as soon as the scripts starts uploading. But after a while, AVR_dude returns errors:
Binary sketch size: 2,202 bytes (of a 32,256 byte maximum)
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x42
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
It's not always the same error:
Binary sketch size: 2,202 bytes (of a 32,256 byte maximum)
avrdude: stk500_cmd(): protocol error
I also have at my disposal:
- 2x S2 Xbee chips
- 2x Arduino Uno
- 2x Arduino Mega
- Ladyada's Xbee adapter v1.1 but without FTDI cable
- several other shields and components not related to this topic
I'm going to order the wireless programming kit from DFROBOT (http://www.dfrobot.com/index.php?route=product/product&product_id=409#.Uq4bDvTuJyx) just in case.
I need to finish this project by 29/12/2013 and it absolutely has to have the remote programming function as I'm not that confident of myself that I can program the system all in 1 time without mistakes. The system will be installed at a place impossible to reach and at high cost to reconfigure.