Raspberry Pi Zero W Smart Irrigation System with OLED Display and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a Raspberry Pi Zero W, various sensors, a motor driver, a geared motor, and an OLED display. The circuit is designed to interface with multiple sensors and control a motor, with data displayed on an OLED screen.
Component List
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows control of the speed and direction of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
RAIN SENSOR
- Description: A sensor module used to detect rain.
- Pins: AO, DO, GRD, VCC
12V Geared Motor
- Description: A DC motor with a gearbox to provide high torque.
- Pins: Terminal 1, Terminal 2
128x64 OLED Display (I2C IIC SPI Serial)
- Description: A small OLED display module that uses I2C or SPI for communication.
- Pins: GND, SDA, SCL, VCC
Raspberry Pi Zero W
- Description: A small, affordable computer with GPIO pins for interfacing with other hardware.
- Pins: 5V, 3V3, GPIO2 (SDA), GPIO 3, GROUND, GPIO 14, GPIO15, GPIO 18, GND, GPIO 23, GPIO24, GPIO 25, GPIO 8, GPIO 7, GPIO 1, GPIO 12, GPIO 16, GPIO 20, GPIO 21, GPIO 04, GPIO 17, GPIO 27, GPIO 22, GPIO 10, GPIO 9, GPIO 11, GPIO 0, GPIO 5, GPIO 6, GPIO 13, GPIO 19, GPIO 26, CSI (CAMERA)
DHT 11
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: VCC, GND, DATA
Soil Moisture Module
- Description: A sensor module used to measure the moisture content in the soil.
- Pins: positive, negative, Analog, Digital, Ground, VCC
Wiring Details
L298N DC Motor Driver
- IN2 connected to GPIO 23 of Raspberry Pi Zero W
- IN1 connected to GPIO 22 of Raspberry Pi Zero W
- ENA connected to VCC of 128x64 OLED Display (I2C IIC SPI Serial) and 3V3 of Raspberry Pi Zero W
- OUT1 connected to Terminal 1 of 12V Geared Motor
- OUT2 connected to Terminal 2 of 12V Geared Motor
RAIN SENSOR
- AO connected to GPIO 17 of Raspberry Pi Zero W
- VCC connected to VCC of Soil Moisture Module, VCC of DHT 11, and 3V3 of Raspberry Pi Zero W
- GRD connected to Ground of Soil Moisture Module, GND of DHT 11, and GND of Raspberry Pi Zero W
12V Geared Motor
- Terminal 1 connected to OUT1 of L298N DC Motor Driver
- Terminal 2 connected to OUT2 of L298N DC Motor Driver
128x64 OLED Display (I2C IIC SPI Serial)
- GND connected to GROUND of Raspberry Pi Zero W
- SDA connected to GPIO2 (SDA) of Raspberry Pi Zero W
- SCL connected to GPIO 3 of Raspberry Pi Zero W
- VCC connected to ENA of L298N DC Motor Driver and 3V3 of Raspberry Pi Zero W
Raspberry Pi Zero W
- GPIO 23 connected to IN2 of L298N DC Motor Driver
- GPIO 22 connected to IN1 of L298N DC Motor Driver
- GPIO 17 connected to AO of RAIN SENSOR
- 3V3 connected to VCC of Soil Moisture Module, VCC of RAIN SENSOR, VCC of DHT 11, and VCC of 128x64 OLED Display (I2C IIC SPI Serial)
- GPIO 04 connected to DATA of DHT 11
- GPIO2 (SDA) connected to SDA of 128x64 OLED Display (I2C IIC SPI Serial)
- GPIO 27 connected to Analog of Soil Moisture Module
- GPIO 3 connected to SCL of 128x64 OLED Display (I2C IIC SPI Serial)
- GROUND connected to GND of 128x64 OLED Display (I2C IIC SPI Serial)
- GND connected to Ground of Soil Moisture Module, GND of DHT 11, and GRD of RAIN SENSOR
DHT 11
- DATA connected to GPIO 04 of Raspberry Pi Zero W
- VCC connected to VCC of Soil Moisture Module, VCC of RAIN SENSOR, and 3V3 of Raspberry Pi Zero W
- GND connected to Ground of Soil Moisture Module, GRD of RAIN SENSOR, and GND of Raspberry Pi Zero W
Soil Moisture Module
- VCC connected to VCC of RAIN SENSOR, VCC of DHT 11, and 3V3 of Raspberry Pi Zero W
- Analog connected to GPIO 27 of Raspberry Pi Zero W
- Ground connected to GRD of RAIN SENSOR, GND of DHT 11, and GND of Raspberry Pi Zero W
Code
No code provided for this circuit.