Skip to content

Logs temperature, humidity and moisture of plant soil using MicroPython.

Notifications You must be signed in to change notification settings

joshnuss/esp32-plant-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

ESP32 Plant Logger

Logs temperature, humidity and moisture of plant soil using MicroPython.

assembled circuit board

Components

Pinout

Component Pin Name Pin #
SD Card MISO 19
SD Card MOSI 23
SD Card SCK 18
SD Card CS 5
DHT20 SCL 14
DHT20 SDA 13
Moisture ADC 36
Built-in LED 2

Setup

Erase flash

esptool.py --chip esp32 erase_flash

Compile & install micropython firmware

Build micropython locally

# compile micropython
cd micropython/
make clean
make submodules
make BOARD=ESP32_GENERIC

# write firmware to device
esptool.py --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build-ESP32_GENERIC/bootloader/bootloader.bin 0x8000 build-ESP32_GENERIC/partition_table/partition-table.bin 0x10000 build-ESP32_GENERIC/micropython.bin

Copy code

Initial RTC clock:

mpremote rtc --set

Copy *.py files to device

mpremote fs cp src/*.py :

Usage

Add SD-card and reboot device. The LED will flicker every 30 seconds as data is collected.

License

MIT

About

Logs temperature, humidity and moisture of plant soil using MicroPython.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages