Pages: [1]   Go Down
Author Topic: Mega2560 programming using Xbee  (Read 723 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Tried to find this through searching but no avail. I have a Mega and the Explorer Regulated Xbee board running a series 1 xbee. The other is a series 1 on a usb board. Both config fine and can talk wirelessly. the problem is I can't get the Mega to program via the Xbee. I connect it to Serial0 at 115200 baud. Other side is on com6, 115200 baud, usual settings. They can talk just fine but when I hit the program button on the laptop, the xmit and rec lights go green but nothing else happens. They appear to time out and retry repeatedly but never program. I've read some things about needing to trigger a reset but I haven't been able to do so with any pin on the explorer. Is there a way to make this work?
Logged

Sydney, AUS
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found a decent guide here:  http://www.ladyada.net/make/xbee/arduino.html

Might be worth a look?  Hopefully it solves your problem.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks I have read this one. I was a little confused though when it mentioned the d 3 pin. on the xbee explorer regulated I have a dio 3 and a separate reset and I'm not sure which to use.
Logged

Portland, OR
Offline Offline
Sr. Member
****
Karma: 7
Posts: 260
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe, dio3.
(the reset pin is only for resetting the local xbee.)
Logged

Sydney, AUS
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It would be the DIO3 pin, but you have to bridge it to the RTS pin.  You can set the settings in the com port options in windows so that the RTS pin will close when you start transmitting, making the board reset, ready for programming.

Follow that guide slowly and carefully, I've had a proper read through it now and it looks pretty comprehensive to me smiley  All the electronics to get it going are there for sure.

It would be pin 16 and 17 on this example board http://www.robotshop.com/content/images/droids-bluetooth-layout.jpg.  This board has the same pin layout even though it's a bluetooth board)..
Logged

Pages: [1]   Go Up
Jump to: