Skip to the content
2 layers52.1 × 50.8 mmLightSensorESP32, the printed circuit board in 3D

LightSensorESP32

kevinarne/plant_monitor2

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

1

README

README.md

Purpose

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
QtyValueFootprintReferences
4R_Small_USResistor_SMD:R_0603_1608MetricR2, R3, R4, R5
3CAPCapacitor_SMD:C_0603_1608MetricC1, C2, C3
1Battery_CellTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmBT1
1DHT11Sensor:Aosong_DHT11_5.5x12.0_P2.54mmU1
1ESP32-BOlightSensorESP32:ESP32-BOU2
1LEDLED_SMD:LED_0603_1608MetricD1
1R_PHOTOlightSensorESP32:CdS_AdafruitR1
1SW_PushButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW1

Similar boards

  • 2 layers96.6 × 82.8 mmStarbie, the printed circuit board in 3D

    Starbie

    SharKingStudios/Starbie

    Half-Life Week 1 Example Project

    11 parts28MIT
  • 2 layers100 × 50 mmConveyor belt pcb, the printed circuit board in 3D

    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 mmWiFi VFD, the printed circuit board in 3D

    WiFi VFD

    ciisaichan/WiFi-VFD

    开源的ESP8266驱动VFD屏电路,支持BiliBili粉丝数、时间、温度、湿度

    23 parts8MIT
  • 2 layersOpenMQTTGatewayPCB, the printed circuit board in 3D

    OpenMQTTGatewayPCB

    ebrithiljonas/OMG_PCB

    All in One PCB for the OpenMQTTGateway Project

    36 parts7GPL-3.0
  • 2 layers62 × 19.3 mmSniffingTrinket, the printed circuit board in 3D

    SniffingTrinket

    GeorgK/SniffingTrinket

    A room climate monitor using the Adafruit Trinket Pro

    23 parts6GPL-3.0
  • 2 layersArduino relay, the printed circuit board in 3D

    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 mmFirefly, the printed circuit board in 3D

    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 mmProyecto sensor temperatura, the printed circuit board in 3D

    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.