1

I'm starting to explore using an Arduino to control a couple of switches programatically. I have read somewhere about relays firing during reboot due to floating inputs/outputs during the reboot phase.

What is the best way to ensure that a relay will not fire on a reboot?

Is there a simple wiring diagram to explain it? I am using an Arduino Uno and a Relay Module.

Any assistance would be greatly appreciated.

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Sep 4, 2017 at 5:02

3 Answers 3

3

Two things:

  1. If that relay uses a FET input with no pulldown then you should add your own. If it uses an opto-isolator there is no floating problem to deal with.
  2. Don't use pin 13 for a relay - that is connected to the LED which blinks during reset and will "flash" your relay.
answered Sep 4, 2017 at 9:32
3

You can add a pull down/up resistor between the wire and ground/vcc so that when the arduino pin is set to high impedance during reboot the wire is pulled low/high as desired.

answered Sep 4, 2017 at 8:18
1

What is the best way to ensure that a relay will not fire on a reboot?

put pull-up/down, as appropriate, on those pins.

answered Sep 4, 2017 at 11:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.