ESP32 MicroPython application to read and log data from a Tilt™ Hydrometer.
- A board with an ESP32 chip
- USB cable - USB A / micro USB B
- Computer running Windows, Linux, or macOS
- Python 3.x
- Ampy - check the Install ampy section of the MicroPython Basics: Load Files & Run Code tutorial for more details
Attention: At this moment, this is a work in progress project and there is no working code to read data from a Tilt hydrometer yet. This setup will make your ESP32 able to connect to your WiFi network and be ready for the upcoming project updates.
Please joing the announce list to receive updates about the project.
- Follow the steps in Getting started with MicroPython on the ESP32.
- This application has been designed and tested using the Firmware for Generic ESP32 module with the most recent GENERIC stable v1.15 firmware built with ESP-IDF v4.x.
- Make sure your firmware is working by connecting to the REPL (Read Evaluate Print Loop) over the serial board
- Modify the
config.json
file to reflect your WiFi network information. - Connect your ESP32 board.
- Upload project files:
ampy --port /dev/ttyUSB0 put boot.py
ampy --port /dev/ttyUSB0 put main.py
ampy --port /dev/ttyUSB0 put config.json
- Reboot your board.
The default hostname is tiltesp32
(you can change it in config.json
), and you will be able to find the device using any tool you prefer to scan your WiFi network.
Also, you can connect the board to your computer USB port, and using the a serial monitor software, read the initialization output to get the IP address. See the screenshot below how it displayed: