Skip to the content
6 layers65.2 × 30.1 mmMain Circuit, the printed circuit board in 3D

Irrigation System μPiHAT for hobby or scientific use. This repo provides a full design process to create your own μPiHAT PCB from scratch. It allows you to control solenoid valves (although the system can be modified slightly to control various sub systems) from input taken from soil moisture sensors (these can also be substituted with other sensor types).

Size
65.2 × 30.1 mm
Copper layers
6
Thickness
1.6 mm
Parts
86
Nets
112
Pads
485
Tracks, vias
2,095, 175
Pours
6
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
5 May 2021
Updated
18 Jun 2021

Overview

Main Circuit is an open-source printed circuit board by Cameron-Ray, from the Cameron-Ray/IrrigationPiHat repository on GitHub, published under the MIT licence. It is a 6-layer board of 65.2 × 30.1 mm with 86 parts on 112 nets, routed with 2,095 tracks and 175 vias.

It is built around the LMV324, LMV321 and LTC3895IFE#TRPBF, with the 74HC86D, PN2222A and BSC082N10LS G among its other parts. Its parts include 36 resistors, 9 ICs, 8 connectors, 7 capacitors and 7 transistors. It belongs with the audio and music and sensors and measurement boards of this library.

Main components

7

README

README.md

Irrigation System μPiHAT
for RaspberryPi Zero

The irrigation PiHAT can be used for the irrigation of small gardens/vegetable patches via soil moisture level sensing and water dispensing. It may also be used in lab environments where scientists need to hold the moisture level of the soil at a constant level.

An optional configuration, which shows the modular ability of the HAT, is to replace the moisture sensors with a float switch or humidity sensor to either fill up pools; ponds; or water tanks or to operate ventilation systems if an enclosed space reaches a maximum humidity level.

The PiHAT will allow more advanced users to continuously perform measurements or monitor the soil moisture levels by sending its input from the sensors into the main Pi GPIO header.

Example Irrigation PiHAT in operation


Table of Contents

  1. Getting Started

  2. How To Operate The...

  3. Circuit Design Process

  4. Final PCB Resources

  5. Contributing To This Repo


Getting Started

Here's how to get started with your own Irrigation System PiHAT project!

Step 1:

Clone this repository to your computer to get started by using the following command line git command:
git clone https://github.com/ryxcam002/IrrigationPiHat

Step 2:

Change directory into the newly cloned repo using:
cd IrrigationPiHat

Step 3:

Make sure you have the latest version of KiCAD and LTSpice installed. The download links to these open source programs can be found at:
KiCAD - https://www.kicad.org/download/
LTSpice - https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html

Step 4:

Go through the design files to check if all is working well. If you wish to make any changes to the design, pay particular attention to the Individual Module Schematics, Combined Schematic & PCB, and Simulation Files folders.

  • The Individual Module Schematics folder is where you will find each submodule KiCAD schematic design. These can be modified individually to suit your needs.
  • The Simulation Files folder is where the V2.0 circuits weere simulated to determine if all parameters ffor circuit components were setup correctly.
  • The Combined Schematic & PCB folder is where all the submodules have been combined to form a single schematic, ready for PCB footprint assignment and BOM generation.

Step 5:

Generate gerber files for final PCB manufacturing. To do this, open the .kicad_pcb file in the Combined Schematic & PCB folder, ensure that all components/PCB specifications are correct and generate the gerber files from there.

Step 6:

Manufacture PCB and solder all components or have this done by the manufacturer if they support this. You now have a micro irrrigation controller!


Contributing To This Repo

See the full contribution documentation here.


Parts

86
QtyValueFootprintReferences
141KResistor_SMD:R_0201_0603MetricR2, R4, R6, R7, R11, R12, R14, R15, R17, R19, R20, R29, R30, R31
10R_POTPotentiometer_SMD:Potentiometer_Bourns_3314G_VerticalRV1, RV2, RV3, RV4, RV5, RV6, RV7, RV8, RV9, RV10
7Conn_01x02_MaleConnector_PinHeader_1.00mm:PinHeader_1x02_P1.00mm_VerticalJ1, J2, J3, J5, J6, J7, J8
6160Resistor_SMD:R_0201_0603MetricR8, R9, R10, R21, R22, R23
5LMV324Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU1, U2, U3, U4, U6
4PN2222APackage_TO_SOT_SMD:SOT-323_SC-70Q1, Q2, Q3, Q4
20.1µCapacitor_SMD:C_0201_0603MetricC5, C6
210KResistor_SMD:R_0201_0603MetricR1, R13
21kResistor_SMD:R_0201_0603MetricR35, R36
22.5KResistor_SMD:R_0201_0603MetricR5, R18
23636Resistor_SMD:R_0201_0603MetricR3, R16
2511kResistor_SMD:R_0201_0603MetricR28, R33
274HC86Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU5, U7
2BSC082N10LSGPackage_TO_SOT_SMD:TDSON-8-1Q6, Q7
2Green LEDLED_SMD:LED_0201_0603MetricD3, D6
2Orange LEDLED_SMD:LED_0201_0603MetricD2, D5
2Red LEDLED_SMD:LED_0201_0603MetricD1, D4
2SW_SPDTButton_Switch_SMD:JS102011JCQNSW1, SW2
10.01µCapacitor_SMD:C_0201_0603MetricC1
1150µ x3, Rser=0.1Capacitor_SMD:C_0201_0603MetricC7
118.7kResistor_SMD:R_0201_0603MetricR26
11MegResistor_SMD:R_0201_0603MetricR25
11nCapacitor_SMD:C_0201_0603MetricC2
130.1kResistor_SMD:R_0201_0603MetricR27
133µ, Rser=15mInductor_SMD:L_1206_3216MetricL1
136.5kResistor_SMD:R_0201_0603MetricR32
14.7µCapacitor_SMD:C_0201_0603MetricC4
16mResistor_SMD:R_0201_0603MetricR34
175kResistor_SMD:R_0201_0603MetricR24
1Cpar=100p,Rser=10kCapacitor_SMD:C_0201_0603MetricC3
1LMV321Package_TO_SOT_SMD:TSOT-23-5U10
1LTC3895IFE#TRPBFLTC3895IFE#TRPBF:SOP50P640X120-39NIC1
1Raspberry_Pi_2_3Module:Raspberry_Pi_Zero_Socketed_THT_FaceDown_MountingHolesJ4
1Si4482DYPackage_TO_SOT_SMD:TDSON-8-1Q5

Similar boards

  • 2 layers73.3 × 58.2 mmPower electronics converter, the printed circuit board in 3D

    Power electronics converter

    JLJ-V14/Synchronous-Buck-converter

    A synchronous buck converter project built from the ground up to practice power stage design, feedback control implementation, and real-time embedded firmware development.

    88 parts
  • 2 layers275 × 110 mmTd deflect, the printed circuit board in 3D

    Td deflect

    kitspace-test-repos/kicad6-file-collection

    247 partsMIT
  • 4 layers80 × 80.2 mm5XL REV0, the printed circuit board in 3D

    5XL REV0

    DangerousPrototypes/BusPirate5-hardware

    Bus Pirate Hardware and accessories for v5 and higher

    227 parts125MIT
  • 2 layers100 × 59 mmML0, the printed circuit board in 3D

    ML0

    brucemack/microlink

    An open source EchoLink/AllStarLink implementation that runs on a simple microcontroller.

    65 parts18GPL-3.0
  • 2 layers150 × 50 mmEsp32-led smps, the printed circuit board in 3D

    Esp32-led smps

    lucysrausch/esp32-led-smps

    230V main LED smps. 2x30W Constant Current.

    179 parts30
  • 2 layers65.2 × 100 mmGk midi module, the printed circuit board in 3D

    Gk midi module

    cycfi/nexus

    The Nexus breakout box

    115 parts20
  • 4 layers89 × 60.5 mmBlack scope, the printed circuit board in 3D

    Black scope

    jgpeiro/black_scope

    Simple stm32 oscilloscope

    95 parts20
  • 2 layers93 × 100 mmGDRace little V2, the printed circuit board in 3D

    GDRace little V2

    NicoEFI/Speeduino-MicroEFI-V2-GDRace

    124 parts12

Questions

How big is the Main Circuit PCB?

It measures 65.2 × 30.1 mm and has 6 copper layers, 1.6 mm thick.

What parts does the Main Circuit use?

86 parts, built around the LMV324, LMV321, LTC3895IFE#TRPBF and 74HC86D. 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 Main Circuit KiCad files?

From the Cameron-Ray/IrrigationPiHat repository on GitHub, at the commit this page was made from: the board is Combined Schematic & PCB/Main Circuit.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Main Circuit design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).