melvinkokxw / Plant-e

The Awesomeee community plant project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plant-e

Installation

It is recommended to use VSCode as an IDE, along with micropy-cli as it provides:

  • Linting
  • Dependency management
  • Version Control System (VCS) compatibility

To set up the project on a local machine for development:

# Clone project
git clone https://github.com/LoJunKai/Plant-e.git
cd Plant-e

# Create virtual environment
python3 -m venv env
source env/bin/activate

# Install packages
python3 -m pip install micropy-cli pylint

# Set up Micropy environment locally
micropy

Flashing Firmware

This project uses custom MicroPython firmware with camera and BLE support. The firmware was compiled using esp-idf 4.x (hash 4c81978a3e2220674a432a588292a4c860eef27b).

The firmware is included in the firmware folder. To flash it to the board:

# Install esptool
python3 -m pip install esptool

# Only needed if flashing for the first time
esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash

# Flash the firmware
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 micropython_3a9d948_esp32_idf4.x_ble_camera.bin

Usage

Create config.py in the root directory with the following content:

wifi_config = {
    "ssid":"<wifi ssid>",
    "password":"<wifi password>"
}

Reference Materials

How to connect FTDI to ESP32: Image taken from https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/

About

The Awesomeee community plant project

License:Apache License 2.0


Languages

Language:Python 100.0%