

LightSensorESP32
A Raspberry Pi project to monitor my plants
- Size
- 52.1 × 50.8 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 13
- Nets
- 31
- Pads
- 58
- Tracks, vias
- 78, 0
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 29 Apr 2021
- Updated
- 26 Jan 2022
Overview
LightSensorESP32 is an open-source printed circuit board by kevinarne, from the kevinarne/plant_monitor repository on GitHub. It is a 2-layer board of 52.1 × 50.8 mm with 13 parts on 31 nets, routed with 78 tracks and 0 vias.
It is built around the DHT11. Its parts include 5 resistors, 3 capacitors, 2 ICs, 1 diode and 1 switch. It belongs with the ESP32 boards of this library.
Main components
1README
README.mdPurpose
As I seek to both improve the lives of my plants and learn more about Python development, I've decided to start instrumenting my plants with some sensors like light and weight sensors.
Current State
There are three kinds of sensors currently supported: CdS light sensor hooked up to an Arduino (directly connected to Pi via serial), CdS light sensor hooked up to an ESP32 (wireless), and load cell hooked up to an ESP32 (wireless). Each of these connects to a Raspberry Pi-hosted MySQL database on my local network.
The wireless sensors add data to the database via an HTTP request handled by a PHP script on the local server. The wired sensor is polled via serial regularly by a python script scheduled with crontab.
Current Event Types
- 10-bit CdS light sensor (wired Arduino Nano)
- 12-bit CdS light sensor (wireless ESP32)
- Manual weighing
- Load cell weighing (wireless ESP32)
- Wiring (for shaping trees)
- Removed wire
- Root pruning
- Plant status (out of 5 stars)
Potential Next Steps
- Visualize the collected light sensor data
- Create more ESP32-powered sensors
- Migrate from serial light sensor to ESP32 light sensor
- Add a user id column to the plant_events, sensors, and plants tables
- Convert to Flask
- Add web page to store wireless connections to ESP32 sketches
- Store tare value in EEPROM on ESP32
Flask Conversion Next Steps
- Create routes.py
- Migrate database to an sqlite database
- Create user database
- Create web interface for adding weight
- Create plant status page
Current Tables
- plant_events - Tracks values recorded by various sensors, their associated plants, and things like watering, repotting, pruning, weighing, and even light. Currently it only tracks light.
- plants - Dictionary relating ids used in plant_events and actual plants.
- event_codes - Dictionary correlating events with unique ids.
- sensors - Details of the sensors.
Set Up
Python 3 Libraries:
- datetime
- itertools
- python-decouple
- pyserial
- pymysql
- matplotlib
- numpy
- smtplib
See /setup/README.md for more details on setting up this project, including database setup.
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | R_Small_US | Resistor_SMD:R_0603_1608Metric | R2, R3, R4, R5 |
| 3 | CAP | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3 |
| 1 | Battery_Cell | TestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mm | BT1 |
| 1 | DHT11 | Sensor:Aosong_DHT11_5.5x12.0_P2.54mm | U1 |
| 1 | ESP32-BO | lightSensorESP32:ESP32-BO | U2 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | R_PHOTO | lightSensorESP32:CdS_Adafruit | R1 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm_H4.3mm | SW1 |
Similar boards
- 2 layers96.6 × 82.8 mm

- 2 layers100 × 50 mm

Conveyor belt pcb
lansidev/conveyor-belt
Miniature 3D printed conveyor belt for simulation and fun working with sensors, all controllable with Raspberry Pi
22 parts9MIT - 2 layers93 × 20 mm

- 2 layers

OpenMQTTGatewayPCB
ebrithiljonas/OMG_PCB
All in One PCB for the OpenMQTTGateway Project
36 parts7GPL-3.0 - 2 layers62 × 19.3 mm

SniffingTrinket
GeorgK/SniffingTrinket
A room climate monitor using the Adafruit Trinket Pro
23 parts6GPL-3.0 - 2 layers

Arduino relay
bhaskar9980/Guardian
Guardian is an advanced, fully automated hydroponics system designed to optimize plant growth and maximize yield.
58 parts5MIT - 2 layers100 × 43.5 mm

Firefly
Twistx77/Firefly
Open WIFI-enabled RGB lamp with temperature, humidity, suspended air particles and eCO2 sensors.
33 parts5GPL-3.0 - 2 layers30.5 × 77.5 mm

Proyecto sensor temperatura
unla-investigacion-desarrollo/ecosistema-iot
Antes de desarrollar el sistema final, realizamos una etapa de exploración donde investigamos y experimentamos con las siguientes tecnologías:
8 parts5
Questions
How big is the LightSensorESP32 PCB?
It measures 52.1 × 50.8 mm and has 2 copper layers, 1.6 mm thick.
What parts does the LightSensorESP32 use?
13 parts, built around the DHT11. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the LightSensorESP32 KiCad files?
From the kevinarne/plant_monitor repository on GitHub, at the commit this page was made from: the board is kicad/lightSensorESP32/lightSensorESP32.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the LightSensorESP32 design in my own project?
Its repository states no licence, so its author keeps all rights: ask kevinarne before reusing the design.