/esp-door-opener

Open your door with esp8266

Primary LanguageArduino

esp-door-opener - EN / PL version below

#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.

alt tag

  • 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:

    1. Go to Port forwarding

    2. 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

    3. Save config and try it in your browser.

    4. 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)

    5. Your door should open now :)

esp-door-opener - PL

#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.

alt tag

  • 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:

    1. Idź do Port forwarding

    2. W zależnosci od twojego routera ta tabelka będzie wyglądała odrobine inaczej. Tak to powinno wyglądać: https://scr.hu/RLY5J6

    3. Zapisz config i wypróbuj.

    4. 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)

    5. Drzwi powinny być otwarte :)