You could put a pull-up resistor on the OE pin, and then drive it low using the arduino when you actually want to display something. That will turn the outputs off when the board powers up, and lets you control when they turn on via software.
Thanks,
But as I wrote I already have a pull up resistor to pin13 of the 74hc595 (Output enable).
With this I can turn the output on and off, but in unexpected occasions, like when arduino stops / resets for an upload, the 74hc595 keeps the output open.
When the Arduino goes into reset (Reset pin is activated or reset button pressed) the outputs should go into input/High-Z mode. So if the OE pin of the 74HC595 is pulled-up, it will also disable (High-Z) those outputs.
If you also want to catch a 'hung' Arduino you will have to use the watchdog timer to force a reset if the program is not running normally anymore.
Thanks,
Most of the time, during reset, the outputs indeed go off - but sometimes, and when uploading to the arduino, it doesn't - have I done something wrong?
As Grumpy Mike wrote in the link above, a 3.3k pull up to +5v - is that correct?
Or is my problem perhaps related to the fact that Im powering the 74hc595 with a separate power supply?
Hmm I really can't find out how to do apply the Output Enable while using an external power supply - when resetting the Arduino, the outputs stay on. (I checked that I can switch the Output Enabler in the program, so I suppose its working.
Is 3.3k incorrect?
Or does the whole pull up not work when using an external power supply?
Thank you,
Hi all,
I'm new in arduino.
I have the opposite question here. Is it posibble to keep the outputs of 74hc595 when the arduino reset/restart?
How can I do that? is it by software or should add an additional circuit (hardware) ?
Put a pulldown resistor on the Latchpin. That will keep it from floating and moving any new data into the output register during the arduino's reset period.