Go Down

Topic: Arduino reset when serial buffer overflows? (Read 1 time) previous topic - next topic

sidkmoorthy

I'm using one of the Sainsmart shields to interface between the Arduino and xbee, do you think that's where the issue might be? It's just I'm trying to figure out exactly what the difference is between having antenna lock and not having antenna lock as far as the power goes...

Thanks for your insight, by the way!

draythomp

The difference between the two is that the XBee will automatically retry the transmission.  This means a longer transmission time if it can't get the message out.  This will use a little more power, but it doesn't sound like enough to kill things.  I'm not familiar with the shield, could it have something floating around the reset pin?  Maybe pull it high as an experiment or something.

I had an arduino close to a permanent magnet motor (a big one) and the reset pin had a wire running to a switch on the side of the enclosure.  The arduino would reset sometimes because the wire picked up enough noise from the motor to actually reset the board.  Totally random event and it was easy to fix by filtering the stupid wire.  Took a while to figure out though since my presence in the noise field would cause it to stop having a problem.  Every time I sat and watched the thing to see what was going on, it quit failing.
Trying to keep my house under control http://www.desert-home.com/

sidkmoorthy

Hmm...well there were a bunch of solenoid valves sitting around at a certain distance. Then again, if that were causing this, it should've happened regardless of whether the antennas were in view or not.

draythomp

Good point.  You may be stuck without an answer until something kicks it into failing again and you have the time to chase the problem.
Trying to keep my house under control http://www.desert-home.com/

sidkmoorthy

Hi Everyone,

Just thought I should give you an update on this matter. We ran some tests yesterday. We used the Sainsmart shield and disconnected the receive antenna and the Arduino started to reset in a matter of seconds. Then we used the Sparkfun xbee shield and disconnected the receive antenna and it ran smoothly without resetting. So it looks like it's either poor design or some sort of a "feature" of the Sainsmart shield.

I guess we're going with the Sparkfun shield.

Thanks for your help!

Siddharth

Go Up