Skip to content

dimecho/ESPTiny-Plant

Repository files navigation

ESPTiny Plant (WiFi Edition)

Automatic plant watering.

This is the next evolution from the original ATtiny13 Plant.

  • WiFi (Web Interface) 🌱 View Demo
  • Battery Deep Sleep (20μA)
  • Modular PCB (ESP8266/ESP32, TP4056)

Photo

Diagram

Download

Firmware

Connect

SSID: Plant
Password: (blank)
Interface: http://192.168.8.8

ESP32 Diagram

ESP32

ESP8266 Diagram

ESP8266

Build

Sketch (Firmware)

  1. Install Arduino IDE
  2. Arduino/File -> Preferences -> Additional Boards Manager URLs: https://espressif.github.io/arduino-esp32/package_esp32_index.json, https://arduino.esp8266.com/stable/package_esp8266com_index.json
  3. Tools -> Boards -> Board Manager -> esp8266/esp32 -> Install
  4. Tools -> Boards -> NodeMCU -> Flash Size -> 4M (2M SPIFFS)
  5. Sketch -> Export compiled Binary

Additional Libraries

File System (Web Interface)

  1. Run "littlefs-build-mac" (Mac) or "littlefs-build-win.ps1" (Windows) to build. LittleFS Binary: build/flash-littlefs.bin

Note: Files must be GZIP'ed. HTTP server sends compressed code to the Browser for decompression.

response->addHeader("Content-Encoding", "gzip");

Flashing Options:

  1. Wireless - Web Browser http://192.168.8.8/update
  2. USB-Serial/TTL - Arduino LittleFS Plugin
  3. USB-Serial/TTL - Script "littlefs-flash-mac" (Mac) or "littlefs-flash-win.ps1" (Windows)

Flash

License

CCSA