runs a pump until it goes dry. Also sends info to influxdb
You're running an ESP32. We use this WROVER one
You have a powerful enough relay/contactor to flip on your "pump". We use these:
Other Electronics
- https://github.com/mcauser/micropython-tm1637
- https://github.com/infinite-tree/micropython-encoder-knob
Download micropython (spiram-idf4) here
sudo apt get install esptool
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0x1000 ./micro-python/esp32spiram-idf4-20191220-v1.12.bin
pip3 install adafruit-ampy --upgrade
ampy --port /dev/ttyUSB0 put config.py /config.py
ampy --port /dev/ttyUSB0 put tm1637 /tm1637.py
ampy --port /dev/ttyUSB0 put encoder.py /encoder.py
ampy --port /dev/ttyUSB0 put main.py /main.py