Go Down

Topic: Pins pulse during autoreset (Read 1 time) previous topic - next topic

cmroanirgo

Hi all,

I've noticed an issue when autoreset occurs where the pins 'pulse' which is causing me some problems. Note, when I start the arduino normally, this 'pulsing' doesn't seem to occur, but only when I connect a USB cable, click on the 'Tools' menu or when I close the 'Serial Monitor' in the IDE.

Is there a way to not have the pins pulse?
(This is in follow up to the thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1295273279/3#3)

The problem is that I'm using ArduinoAndy's PLC watchdog as a safety circuit. (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267907942/0). However, when this 'autoreset' problem occurs, the pins pulse, causing my watchdog to be enabled...which in my case would try and turn on various LPG burners and fans and water pumps. Obviously this is not ideal. ;)

So, to the question: Is there a way to NOT have this 'pulse' occur during auto-reset.

Note:
The problem doesn't occur if I manually reset.
The problem doesn't occur during normal power up.
The problem only seems to occur during this 'auto reset'.

Obviously going through and disabling auto reset _could_ be construed as a solution, but I'm a little worried that there's something more sinister going on here...

I have tried this on 2 Dieceimila's and both operate exactly the same.

Any help appreciated...
Craig.

Coding Badly


Please provide a complete circuit for one of the pins that "pulses".

retrolefty

Quote
The problem doesn't occur if I manually reset.
The problem doesn't occur during normal power up.
The problem only seems to occur during this 'auto reset'.

Obviously going through and disabling auto reset _could_ be construed as a solution, but I'm a little worried that there's something more sinister going on here...


Your suspensions are justified. An auto-reset should not behave any difference then manually pushing the reset button. Not sure what might be causing your symptoms. A typical response might be to post your wiring and code, but maybe someone else has a simpler clue or explanation?

Lefty

cmroanirgo

#3
Jan 20, 2011, 12:15 am Last Edit: Jan 20, 2011, 12:18 am by cmroanirgo Reason: 1
Update:

After triple checking what's going on, I removed the 'watchdog' pins from the board (so there's no chance of a signal arriving from the arduino) and the problem still happens.

It appears that the problem occurs as part of a power supply fluctuating (I'm connecting the watchdog board to Vin, temporarily).

Note: there is obviously an issue, but not due to the output pins themselves. I'll try some caps across the the supply (Vin to Gnd) to see if that alleviates the problem....

As I mentioned earlier, I am using ArduinoAndy's circuit: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267907942/7#7, Unfortunately, I didn't put any smoothing caps across the power supply as his circuit has.

cmroanirgo

#4
Jan 20, 2011, 12:32 am Last Edit: Jan 20, 2011, 12:39 am by cmroanirgo Reason: 1
Update 2:

Hi again, it appears to be definitely related to Vin fluctuating during auto reset. By putting a cap (I used 100uF, the largest I had) across Vin to Gnd the problem is gone.

Unfortunatey, I don't have a CRO/DSO to verify this.

Thankfully, in the 'real' environment I won't be using Vin from the board, but an externally powered supply.

Unfortunately, when I put my watchdog pins back in, the board resets as per my first post.

This could be due to my el-cheapo wall wart that I'm using temporarily, or something else. Here's my schematic:

Note that +12v is going to Vin...

Craig.

cmroanirgo

#5
Jan 20, 2011, 12:49 am Last Edit: Jan 20, 2011, 01:35 am by cmroanirgo Reason: 1

cmroanirgo

Update 3:

After adding a cap (10uF) across my watchdog reset (pin 8) to gnd, my system no longer has any problems with the auto reset/usb connection issue.

I must state that I'm a little concerned that the arduino pins can pulse at all unless explicitly told to.

retrolefty

#7
Jan 20, 2011, 03:26 am Last Edit: Jan 20, 2011, 03:32 am by retrolefty Reason: 1
Quote
edit: here's a link to the schematic: https://lh6.googleusercontent.com/eH8iAbfY7BeKzp00FaPoUjfQxBqye-vlE2nyBBLinZO8hu...



Link appears broken?


Quote
I must state that I'm a little concerned that the arduino pins can pulse at all unless explicitly told to.


Part of the reset process, regardless of it's cause, all I/O pins are changed to input mode and are in tri-state, i.e. floating. The bootloader will setup and initialize whatever pins it uses, 0,1 &13 for sure. Only after the bootloader times out and jumps to your sketches code will/can the I/O pins be initialized to your desired condition.

Don't know if that helps you, but it is the process as I understand it.

Lefty

cmroanirgo

sorry about that...
try this (different servers ;) )

Go Up