|
| 1 | +[]() []() []() |
| 2 | + |
| 3 | +# To support the development you can: |
| 4 | +- Be a patron at [Patreon](https://www.patreon.com/enesbcs) |
| 5 | +- Buy a [coffee](https://ko-fi.com/I3I5UT4H) |
| 6 | +- Donate by [PayPal](https://www.paypal.me/rpieasy) |
| 7 | +- Adding Python code by [Pull Request](https://github.com/enesbcs/mpyeasy-async/pulls) |
| 8 | + |
| 9 | +# mPyEasy-Async |
| 10 | + |
| 11 | +microPythonEasy IoT firmware for [W5100S-EVB-Pico](https://www.wiznet.io/product-item/w5100s-evb-pico/), [Pico-W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html#raspberry-pi-pico-w), ESP32-WROOM and ESP32-WROVER (with SPIRAM) |
| 12 | + |
| 13 | +Based on MicroPython this project tries to mimic the magnificent [ESPEasy](https://www.letscontrolit.com/wiki/index.php/ESPEasy) project functions. Python code is heavily based on RPIEasy, partially rewritten from mPyEasy dropping threading and implementing AsyncIO with a very basic Web framework with minimal memory footprint. |
| 14 | +Main goal is to create a multisensor device, that can be install and setup quickly. |
| 15 | + |
| 16 | +:warning:THIS IS A BETA TEST VERSION!:warning: |
| 17 | + |
| 18 | +Expect major changes in later versions that may cause incompatibility with earlier versions! |
| 19 | + |
| 20 | +# ESP32 Installation |
| 21 | + |
| 22 | +1/ Recommended method to write the firmware binary to the flash directly. It will run on either WROOM or WROVER variants. |
| 23 | + |
| 24 | + Download image from: https://github.com/enesbcs/mpyeasy-async/releases/ |
| 25 | + |
| 26 | +- Erase flash at first time on ESP32: |
| 27 | + |
| 28 | + `esptool.py --port /dev/ttyUSB0 erase_flash` |
| 29 | +- Write firmware: |
| 30 | + |
| 31 | + `esptool.py --port /dev/ttyUSB0 write_flash -z 0x1000 firmware.bin` |
| 32 | + |
| 33 | +Or you can simply use [Thonny](https://thonny.org/) to install firmware! |
| 34 | + |
| 35 | +2/ MicroPython source code from the src directory can be copied to the flash onto a WROVER module with 4MB PSRAM! |
| 36 | +Without PSRAM it may run out of memory, i warned you! |
| 37 | + |
| 38 | +https://github.com/enesbcs/mpyeasy-async/tree/main/src |
| 39 | + |
| 40 | +# RP2 (Pico) Installation |
| 41 | + |
| 42 | +- Download image from: https://github.com/enesbcs/mpyeasy-async/releases/ |
| 43 | +- Press the Bootsel button on Pico when connecting to USB, it will open a new Drive. |
| 44 | +- Copy the .uf2 image to this drive (suitable for your device) |
| 45 | + |
| 46 | +# Setup (WiFi modells) |
| 47 | + |
| 48 | +- Connect to mpyEasy WIFI AP with configesp password. |
| 49 | +- Setup your own wifi data at http://192.168.4.1/config |
| 50 | +- Search it on your own network and configure at the obtained dhcp IP with a web browser. |
| 51 | + |
| 52 | +# Setup (LAN modells) |
| 53 | + |
| 54 | +- Connect to a router with LAN cable, it will request a DHCP address |
| 55 | +- Search it on your own network and configure at the obtained dhcp IP with a web browser. |
| 56 | + |
| 57 | +# Update |
| 58 | + |
| 59 | +OTA is not supported yet on ESP32, and never will be on RP2 |
| 60 | + |
| 61 | +# Compiling |
| 62 | + |
| 63 | +To create firmware image from python sources, follow instructions for compiling standard MicroPython and add mPyEasy source to micropython/ports/esp32/modules subdirectory before "make" command. |
| 64 | + |
| 65 | +https://github.com/micropython/micropython/tree/master/ports/esp32 |
| 66 | + |
| 67 | +https://blog.horan.hk/micropythonesp32.html |
0 commit comments