#Parts:
- ESP8266 (any version)
- Transistor PNP2222/A
- Resistor 220 Ohm
- A couple of wires(I recommend 30AWG)
#SETUP
- Connect your esp with power supply and make sure everything is connected as on the schema in this repo or as on the picture below.
-
Upload the sketch.
-
Setup redirection route on your router. If you have static IP you are sorted, in case you dont you probably have raspberry pi / beaglebone connected to your network - setup a ddns service on it.
-
In your router setup:
-
Go to Port forwarding
-
Depending on your router software this table will look a bit different but it's all the same. Set it up in this way: https://scr.hu/RLY5J6
-
Save config and try it in your browser.
-
Go to: yourip:4001 or hostname.com:4001 (in case you are using ddns on rpi you will have to edit port forwarding a little bit so it will handle request and pass it to ESP via your LAN)
-
Your door should open now :)
-
#Częsci:
- ESP8266 (każda wersja)
- Tranzystor PNP2222/A
- Rezystor 220 Ohm
- kilka kabli (Ja polecam 30AWG)
#SETUP
- Podłącz ESP do zasilania i upewnij się że wszystko jest tak jak na schemacie poniżej.
-
Załaduj sketch na ESP.
-
Ustaw ustawienia forwardingu portów na twoim routerze. Jesli twoje IP jest stałe to prawie skończyłeś :) Jesli nie masz stałego ip to pewnie masz RPi albo BeagleBone w swojej sieci, postaw na nim DDNS i sprawa jest załatwiona. Teraz zamiast ip masz hostname.
-
U ustawieniach routera:
-
Idź do Port forwarding
-
W zależnosci od twojego routera ta tabelka będzie wyglądała odrobine inaczej. Tak to powinno wyglądać: https://scr.hu/RLY5J6
-
Zapisz config i wypróbuj.
-
Idz do: twojeip:4001 or hostname.com:4001 ( jesli używasz ddns będziesz musał/a skonfigurować jeszcze jeden port forwarding. Tak by DDNS:4001 kierował na esp:80 w twojej LAN)
-
Drzwi powinny być otwarte :)
-