Firmware for ESP8266 to control a lightswitch via Microservo SG90
- Open NodeMCU_1.ino with the Arduino IDE
- Insert WiFi credentials
- Insert MQTT credentials
- Install Librarys (see in the Sketch)
- Connect SG90 Microservo to your Arduino Pins
Ground - VV - D3
- Upload and flash the firmware to NodeMCU board
- Configure your MQTT Controller Hub (Mosquitto in my case)
- Have fun