w4ilun / ESP8266-Intercom

Using an ESP8266 and a 2-channel relay to control a 4-wire intercom
MIT License
11 stars 1 forks source link

Using Wemos D1 #1

Open Nihvel opened 4 years ago

Nihvel commented 4 years ago

Hello, this is not a 'issue' but a compliment! I was never much interested at electronic circuits and when I thought about modifying my intercom I realized I'd have needed a ESP8266. I have only used Tasmota so far and didn't have much luck understanding how to program it to use it on the intercom. And then I found this GIT! With a simple circuit and the firmware you wrote you are saving me from a damn headache! Thanks mate for this project!

I went through your code and saw it makes no difference if flashed on the NodeMcu or Wemos D1 Mini, As long as GPIOs respect the schema, it will just work. I saw that you use D0 for the door relay. The D0 points to GPIO16 which I read is "HIGH at boot". This is the reason why in your circuit diagram, next to the solenoid, you wrote "Normally Opened" which equals to HIGH. Is this correct?

I have no idea if also my intercom is "normally open". It's a old German (I'm in the EU) intercom with 3 wires entering from the wall to the Intercom's board (A-B-P) and 5 wires going from this board to another internal board (where the buzzer and buttons are). Supposing that the button that opens the gate is "normally close", just like the buzzer, then using D2 (GPIO4) should fix it. If this is at all how it should be connected, of course.

I just wanted to thank you for this project, I'd be glad if I can offer you a beer

w4ilun commented 4 years ago

Thanks @Nihvel! Really glad to hear you found this project useful. Cheers :beers: