tel

8 (977) 792-59-27

geo

г. Москва, Ленинградское шоссе, д. 96

Товаров на сумму

Management Your Automatic Sliding Gate With Dwelling Assistant And ESPHome : 5 Steps (with Footage)

14.03.2023 от sammiegriffiths Выкл

Perhaps, it was probably the most unusual part for me because I’m normally more tweaking softwares stuff than hardwares. I’ve started with a breadboard and a very primary circuit, just to examine that I’m in a position to upload a program contained in the Wemos D1 mini and to blink a LED. Then, I’ve modified the firmware for the ESPhome and observe this excellent getting began article : https://esphome.io/guides/getting_began_hassio.html

After some iterations to find the proper circuit, I’ve documented it with Fritzing. Make sure you spend occasions on this step as there is no going again when every part is soldered (not precisely however not simple rollback). I have tried to simulate input sensor from automatic sliding gate opener bd sliding gate however this was a failure (I explain later the why).Personally, I discovered that Fritzing is an efficient instrument to doc what you wire on the breadboard.

Be aware : You’ll find a great place to begin right here in ESPhome FAQ if you cannot plug your ESPHome to House Assistant for the primary initialization. After the firmware is uploaded, you’ll be capable to add «over the air» (OTA).

Relay to activate open/shut trigger

In the automatic sliding gate technical specification, it’s specified that you’ve to close a circuit between «Begin» and «COM» to trigger an action open/close the gate (the full opening). An in depth circuit between «Start.P» and «COM» trigger an action open/shut the gate for pedestrian. I didn’t use the «Stop» however this is the same concept but to cease the gate when opening or closing.

On the electronic element alternative, I’ve decided to go for a relay as a substitute of a transistor. Transistors are good however they does not present a assure that the circuit is completely close. I think that they’ll let some very low present going within the circuit. Another benefit of relay is that if you test your circuit, you mainly hear when the contact is close with the sound «clic».

Get the open sensor state

Firstly, I was considering of using some magnetic sensors to detect the gate open or close states. But I have realized that there’s a plug which mention «restrict sensor» on the controller. Clearly not made for use (by geek like me), I discovered with a contact tester that I can read the state open or close once i open the gate. I’ve made a giant mistake pondering that the state was some kind of TTL logic voltage (three.3v). On this case, you may straight plug them to Wemos Enter. However actually, when the gate is opened, there’s a 6.3v output voltage. To make use of this sign, you could divide the voltage with this sort of circuit http://www.learningaboutelectronics.com/Articles/H… The answer is just about straightforward as a result of the voltage need to be divided by two. So, I’ve used two 10 Kohms resistors between the restrict sensor output and the Wemos enter (again, look in the hooked up pictures for a schema).

Cheap 5v energy supply

To power all these elements, I use an old cell phone energy provide. I opened it and adjusted plug to small plug cable with screw. I additionally determined to merge the 2 pcb (esp and power provide) with scorching glue (sure I do know, this can be a bit soiled but it really works :-). Not the cleanest thing ever but simpler to handle and avoid touching the 220v.