Why does Arduino stop running every 20 seconds?

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

Moderators: adafruit_support_bill, adafruit

Why does Arduino stop running every 20 seconds?

Postby Daanii » Thu Jan 21, 2010 12:08 am

I'm a beginner running several Arduino sample programs on a laptop with Vista. They all work fine. But with all of them, the program will stop every 20 seconds or so. Then this happens:
-- the "L" light flashes once
-- the program stops
-- the "RX" light flashes once a second five times
-- the program restarts
-- the "RX" light flashes three more times
-- the sequence repeats

It looks like the Arduino is resetting itself when it receives data from the laptop. I'm using COM7. But I cannot figure out why the laptop would send a reset signal. If I shut the laptop, but leave the Arduino connected, it runs fine without any resets.

Any help appreciated.
Daanii
 
Posts: 15
Joined: Wed Jan 20, 2010 11:58 pm

Re: Why does Arduino stop running every 20 seconds?

Postby madworm_de » Thu Jan 21, 2010 12:26 am

Well, you must make sure nothing else talks to the serial port. And it's not the laptop's fault, but some piece of code is misbehaving.

Of course the best way to achieve this would be erasing windows altogether and banish it, burn the banned and send the ashes back to redmond - and ask for a refund for sustained pain!

Maybe you have bloat-ware installed, cell phone syncing software... possibilities are endless for evil things. Try disabling all of that.
User avatar
madworm_de
 
Posts: 99
Joined: Mon Jun 09, 2008 5:56 am

Re: Why does Arduino stop running every 20 seconds?

Postby charliex » Thu Jan 21, 2010 12:46 am

break it down, does it do it when the bios screen is up? or the f8 choose os screen? this will help determine if its something in windows. try safe mode. try a loopback cable, or null modem to another serial port, or a serial monitor that looks to see if there is anything on the serial.

open hyperterminal or putty to the serial port, if it opens and it still happens its unlikely its a piece of sofware
http://032.la - Null Space Labs.
charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 4:54 pm
Location: Las Vegas

Re: Why does Arduino stop running every 20 seconds?

Postby Daanii » Thu Jan 21, 2010 12:48 am

cell phone syncing software


You nailed it. I had a cell phone program that was causing the problem. I uninstalled it, and the Arduino works like a charm. Thanks!

[Wish I could do without Windows, but I'm locked in by now. Curse you, Trey!]
Daanii
 
Posts: 15
Joined: Wed Jan 20, 2010 11:58 pm

Re: Why does Arduino stop running every 20 seconds?

Postby adafruit » Fri Jan 22, 2010 10:35 am

wow, never would have guessed that! good detective work, madworm!
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Why does Arduino stop running every 20 seconds?

Postby Kdees » Fri Jan 22, 2010 4:38 pm

I had a similar issue with my netbook, blackberry bluetooth pairing, arduino and the windows blue screen of death. same issue.

attach arduino, open serial monitor... mouse would flake... netbook would blue screen, and the final clue:

blackberry would call my old pal Bill

quick trip device manager and disable blutooth... problem solved...

Made me flash back to the days of jumpers labeled "COM", "DMA" and "IRQ"

K
Kdees
 
Posts: 24
Joined: Wed Jan 13, 2010 7:05 pm
Location: St Pete Beach Fl

Re: Why does Arduino stop running every 20 seconds?

Postby tytower » Sun Jan 24, 2010 12:33 am

For any others with similar problems I have found that an array overflow problem in your programming frequently causes similar resetting problems
tytower
 
Posts: 61
Joined: Thu Sep 17, 2009 11:47 pm


Return to Arduino

Who is online

Users browsing this forum: No registered users and 9 guests

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


New Products [103]

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[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
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]