Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relais not switching when pushing "test" #400

Open
henfri opened this issue Aug 30, 2020 · 2 comments
Open

Relais not switching when pushing "test" #400

henfri opened this issue Aug 30, 2020 · 2 comments

Comments

@henfri
Copy link

henfri commented Aug 30, 2020

Hello,

I have tested my relais board with this code:

#define RELAY_PIN 5
void setup() {
 pinMode(RELAY_PIN, OUTPUT);
}
void loop() {
 digitalWrite(RELAY_PIN, HIGH);
 delay(1000);
 digitalWrite(RELAY_PIN, LOW);
 delay(1000);
}

unfortunately, with the "Test" Button in the Hardware Section, I cannot get the relais to switch.
What could be the reason?
I have not yet connected a Wiegand Reader - could that be the cause?

I am mildly confused about the different ways to name the pins...
This Pin 5 according to this schematic
Could be GPIO5 (=D1) or D5 (=GPIO14).
I have tested both settings in the webinterface (GPIO5 and GPIO14) without success :-(

Regards,
Hendrik

@ingeninge
Copy link
Contributor

ingeninge commented Sep 13, 2020

I found the test failing, when you change the Pin in the settings and press Test without saving and restarting. Could depend on ESP-RFID version, but please give it a try. Also my Relay is 5V Arduino-type and I was not able to trigger it stable with 3,3V VCC from the NodeMCU Board on some Pins (GPIO5 fx.). Try D7 (GPIO13) this works for me. but leave it open on reboot!

@henfri
Copy link
Author

henfri commented Sep 13, 2020

Hello,

you are right. A reboot was neccessary.
I think, it would be advisable to trigger that when the settings are saved.

Regards,
Hendrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants