Arduino Randomly Resets

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Arduino Randomly Resets

Postby slash11 » Thu Oct 07, 2010 8:49 am

Hi !
I was running my Arduino 328P based datalogger on the go-kart last weekend for the first time and I found it randomly resets itself when the engine is running and the higher the RPM the more it resets.
I suspected vibration to be the problem first, but after I have put as much paddng as I could, it would still happen.
Is it possible that the Electro magnetic pulse from the engine ignition (2-stroke so quite high frequency) causes the Arduino to reset itself? the board is in the plastic box at the moment and there are several sensor cables connected, that run along the engine RPM lead, which goes to another logger. ( I don't log RPM on Arduino yet).
Would I need some RC filters for each Analogue input?

Many thanks.
slash11
 
Posts: 13
Joined: Thu Sep 02, 2010 9:17 am

Re: Arduino Randomly Resets

Postby adafruit_support_bill » Thu Oct 07, 2010 8:53 am

How is it powered? You could be getting ignition noise via that route as well as your sensor cables.
User avatar
adafruit_support_bill
 
Posts: 15885
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino Randomly Resets

Postby slash11 » Thu Oct 07, 2010 10:46 am

Oh sorry, forgot to mention, its powered from 7.2V 1600mA/h battery connected directly to Arduino board ( soldered to Vin and GRD pins) the lead is about 20cm long.
Hope it helps.
slash11
 
Posts: 13
Joined: Thu Sep 02, 2010 9:17 am

Re: Arduino Randomly Resets

Postby adafruit_support_bill » Thu Oct 07, 2010 11:28 am

If you have access to a scope, you could poke around and see what kind of noise you might be picking up. Other than that it's trial and error.

Every piece of wire is an antenna. You can try using shielded wire. And try to route your wires as far away and non-parallel to any ignition system wiring as possible. Car-audio shops will have an assortment of noise suppression filters you could try.
User avatar
adafruit_support_bill
 
Posts: 15885
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino Randomly Resets

Postby Alan Chatham » Thu Oct 07, 2010 12:13 pm

Try wrapping it in tinfoil? That's a cheap way to potentially reduce external EMI issues. Also, there may be issues caused by the engine inducing currents in the wires you've got going to your sensors. Test this by taking off the long wires to the sensors, then setting up a LED that's going to be visible on your Arduino inside the box (outside if you have to, but keep the wires short as possible) and have it run a long-cycle blink. You should be able to have a visual guide to if it's resetting or not without the wires. If it is a problem with the wires, there are ways to try and reduce problems with the currents, but I'm not really an expert on these things (Econ major here...). One way you can try is to add a small resistor in series to the sensors, limiting the current coming into the Arduino caused by EMI spikes. Another way is to attach small capacitors (like 100pF?) between the sensor input lines and ground. It'll be trial and error to figure out what values are big enough to absorb the EMI spikes, but small enough to not mess with the data you're collecting.

Hope it helps!
OpenChord.org - Open Source kits to let you play Guitar Hero with a real guitar, or build your own Wii/banned/USB controllers.
Alan Chatham
 
Posts: 143
Joined: Thu Feb 04, 2010 1:30 am

Re: Arduino Randomly Resets

Postby StandardRockets » Thu Oct 07, 2010 7:50 pm

disconnect the sensor to see if there is a difference, then do the paranoid tin-foil jobby.
StandardRockets
 
Posts: 11
Joined: Mon Feb 15, 2010 12:08 pm

Re: Arduino Randomly Resets

Postby slash11 » Fri Oct 08, 2010 7:53 am

Thanks to all who replied.
Good a few things to try. First I will disconnect all the sensors and only leave power and GPS and wrap it in the foil and ground it. I have also searched for a simple low pass filter diagram and its shown below. I will place on every analogue input to protect it from high frequency spikes. This circuit, I hope shouldn't affect genuine sensor input, as it is low freq. anyway (throttle, brake steering).
Will keep you posted.
Low-pass filter.JPG
Low-pass filter
Low-pass filter.JPG (4.92 KiB) Viewed 2441 times
slash11
 
Posts: 13
Joined: Thu Sep 02, 2010 9:17 am


Return to Arduino

Who is online

Users browsing this forum: DennyP and 12 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]