pull-up & pull-down during startup
Posted: Thu Aug 10, 2017 2:01 am
Dear all,
I am after more than a year back with ESP. In the meantime I advanced with Arduino and think I know mostly what I do.
However I wanted to realize something with ESP8266 (Wemos or NodeMCU) and currently stuck.
I do have a simple circuit with a dual relay connected to PINs D5 & D6 plus a switch which has positions off, up, down (basically either both are off, or one of them are on)
The intention is to drive a rollershutter.
The switches are connected to ground and the other pin to D3 and D4 and each with a resistor to VCC.
Basically it works. However during startup of the node, the swich needs to be in the off position otherwise it ends in a endless loop and never starts up.
So I figured, that on D3 and D4 if it is LOW, it does not boot.
However I cannot prevent that during boot the switch is always in the off position. Is there a way around this?
Potentially are other PINs than D3/D4 better suited?
A workaround could be having two resistors in different values connected to analog and compute. However in the end I wanted to have at least 4 relays with 4 directional switches connected.
Thanks a lot
Cheers,
SJ
I am after more than a year back with ESP. In the meantime I advanced with Arduino and think I know mostly what I do.
However I wanted to realize something with ESP8266 (Wemos or NodeMCU) and currently stuck.
I do have a simple circuit with a dual relay connected to PINs D5 & D6 plus a switch which has positions off, up, down (basically either both are off, or one of them are on)
The intention is to drive a rollershutter.
The switches are connected to ground and the other pin to D3 and D4 and each with a resistor to VCC.
Basically it works. However during startup of the node, the swich needs to be in the off position otherwise it ends in a endless loop and never starts up.
So I figured, that on D3 and D4 if it is LOW, it does not boot.
However I cannot prevent that during boot the switch is always in the off position. Is there a way around this?
Potentially are other PINs than D3/D4 better suited?
A workaround could be having two resistors in different values connected to analog and compute. However in the end I wanted to have at least 4 relays with 4 directional switches connected.
Thanks a lot
Cheers,
SJ