Hi, (sorry for my english :p)
Project short: I'm making a wireless sensor network, for communication I use the XBee Series 2 modules, these are connected to the arduino with an XBee shield. Also, I have an ethernet shield with build on SD card reader for data logging and later putting it on a server. this is the coördinator of my network, i'm using a arduino mega 1280. For the routers in my network I use the arduino FIO who have a direct connection for XBee modules.
Problem: When running the Coördinator with USB cable connected, it recieves data from a router and respons to it by looking for his adress. Then the router respons back to know it succeeded (this is just a test to be able to get serial and pan adresses from my network)
This all works but for some reason, after some time the arduino just randomly resets. There are no external signals that disturb the arduino.
Does anybody know a solution for this problem?
Fixes I tried: Arduino Playground - DisablingAutoResetOnSerialConnection , the 120ohm fix, and replace my arduino uno with a mega to get more ram, I thought it might be a stack overflow or something.
Later I brought this more outside so i can easly reach it, with wire. Because when programming, this auto-reset is handy.
Modifications:
What i had to change to connect the ethernet board to the mega: http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/
- MEGA pin 50 (MISO) to Arduino Ethernet Shield pin 12.
- MEGA pin 51 (MOSI) to Arduino Ethernet Shield pin 11.
- MEGA pin 52 (SCK) to Arduino Ethernet Shield pin 13.
- MEGA pin 53 (SS) to Arduino Ethernet Shield pin 10.
What i had to do to connect th arduino, ethernet shield and xbee shield:
What it looks like:
I hope there is a easy or detailed sollution to this problem, I'm new in this stuff. Thanks for the help already!
(I will put the code in my next post)