Pages: [1]   Go Down
Author Topic: Brief digital high on start up  (Read 616 times)
0 Members and 1 Guest are viewing this topic.
Southern England
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Arduino rocks (wish I'd found it years ago!)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
Using Decimilenove and noticed that on every start up or Serial Monitor select, the digitals briefly flash high - even does it in Blink, regardless of whether the digital is selected or not (i.e. plug an LED into pin 7 instead of 13), and that flashes as well. Tried forcing outputs low, but still get it. I haven't tried measuring duration or magnitude.

I want run some mains equipment via relay eventually, so I don't want any chattering every time I look on Serial Monitor.

It might only be a ghost transient and may disappear when pin is connected to real equipment - as all real life operations are slow (seconds, not milliseconds), could the output be "slugged" with a small capacitor?

Any ideas appreciated.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino on the rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Starting the Serial Monitor resets the Arduino. This can be disabled, but loading a new firmware is less automatic (see http://www.arduino.cc/en/Main/ArduinoBoardDuemilanove). The high pulse on reset is probably the result of your initialization routine. On reset all ports are in 'input mode'.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27115
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You might want to install pulldown resistors on your relay control pins to keep control signals low if that's what you need on startup.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Christchurch, New Zealand
Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you see the outputs flash high when you just press the onboard reset button?
Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Tried forcing outputs low, but still get it.

With hardware or software? 

During RESET all I/O pins default to INPUT which is high impedance.  It is not uncommon for a floating pin to briefly appear high.  Does the same behavior happen when you use an external pull-down (or pull-up) resistor?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was seeing brief outputs on pins when loading code onto an uno.
I was told the problem is a board design issue and was pointed towards this thread which you might want to look at;
http://arduino.cc/forum/index.php/topic,64256.0.html
Logged

Christchurch, New Zealand
Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

aha, i was one of the contributors to that thread   :-)   if you'd replied that a simple reset didn't produce the same results then i'd have pointed you to it...
Logged

Southern England
Offline Offline
Newbie
*
Karma: 1
Posts: 22
Arduino rocks (wish I'd found it years ago!)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all,
Thanks for all the replies and help.
It does seem to be OK on board reset (10 out of 10 resets fine).
It is behaving impeccably at the moment so I will need to see what I have done in the meantime (guilty of throwing solutions at it). I will definitely look at the other threads and will implement external pull-ups - I suspect floating pins might have something to do with it.
"Forcing low" was simply digitalWrite (LOW) to start with.
Sorry Rozee - only spotted Radman's post after I pushed the post button.
Looking for perfection in an imperfect world.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27115
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"will implement external pull-ups"
That will definitely make them High - did you mean pulldowns to keep them low?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: