lemariva / uPyBlynk

Blynk and Micropython on WiPy 2.0/3.0 and ESP32 for home automation
https://lemariva.com/blog/2019/02/micropython-home-automation-using-blynk-connected-to-a-wipy-3-0-2-0
Apache License 2.0
4 stars 2 forks source link
blynk esp32 home-automation micropython wipy

uPyBlynk

This project is about controlling a WiPy 2.0/3.0 or an ESP32 running MicroPython with Blynk.

Instructions

Android

  1. Install the Android or iOS application
  2. Create a New Project and choose as device the WiPy
  3. Copy the auth token

WiPy 3.0 / 2.0

  1. Rename and upload the boot.py file to the WiPy to connect your WI-FI. Do not forget to change the <wlan-ssid> and <wlan-password> with your SSID and the WPA2 password of your router
  2. Change the auth token inside the main.py file
  3. Upload the BlynkLibWiPy.py and the main.py files to the WiPy
  4. Reboot the WiPy.

Check the WiPy 3.0 / 2.0 pinout here.

If you need some help to upload the files to the WiPy, follow this tutorial.

ESP32

  1. Install MicroPython following this tutorial.
  2. Rename and upload the boot.py file to the ESP32 to connect your WI-FI. Do not forget to change the <wlan-ssid> and <wlan-password> with your SSID and the WPA2 password of your router
  3. Change the auth token inside the main.py file, and switch the corresponding imports
  4. Upload the BlynkLibESP32.py and the main.py files to the ESP32
  5. Reboot the ESP32.

Check the ESP32 pinout here.

Additional Configuration

Changelog

Credits