Skip to the content
4 layers217.2 × 201.5 mmSolarSystem, the printed circuit board in 3D

Design and Control of a Solar-Powered Irrigation System for Remote Farmlands

Size
217.2 × 201.5 mm
Copper layers
4
Thickness
0.19 mm
Parts
71
Nets
136
Pads
288
Tracks, vias
436, 72
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
23 May 2026
Updated
23 May 2026

Overview

SolarSystem is an open-source printed circuit board by louieoneil19, from the louieoneil19/Thesis repository on GitHub. It is a 4-layer board of 217.2 × 201.5 mm with 71 parts on 136 nets, routed with 436 tracks and 72 vias.

It is built around the TC4420CPA, ACPL-C87B-000E and HCPL-2211-000E, with the SK34SMA-3G, IRLZ44NSTRLPBF and SRR1210-471M among its other parts. Its parts include 10 diodes, 9 ICs, 2 capacitors, 2 resistors and 2 inductors. It belongs with the power boards of this library.

Main components

6

README

README.md

Solar-Powered Buck-Boost Converter — Thesis Project

An STM32-based MPPT buck-boost converter for solar-powered soil moisture monitoring and pump control.

Overview

This project presents the design and implementation of a solar-powered irrigation system optimised for off-grid rural use. The system integrates a photovoltaic panel, a non-inverting DC–DC buck-boost converter, a backup battery, a water pump, and a microcontroller-based control unit on a custom four-layer printed circuit board. A perturb-and-observe maximum power point tracking (MPPT) algorithm is implemented to maximise energy extraction from the solar panel across varying irradiance and temperature conditions. A capacitive soil moisture sensor drives a separate pump-control loop, varying pump speed in discrete stages based on measured soil dryness. The converter was validated in MATLAB Simulink and characterised experimentally through duty-cycle sweeps, with the measured input–output relationships closely matching theoretical predictions. The completed system demonstrates autonomous solar energy harvesting and adaptive water delivery, providing a viable platform for off-grid agricultural applications in resource-limited regions.

Repository Structure

text
.
├── firmware/          STM32CubeIDE project (STM32F446RE)
│   ├── Core/          Application source code (main.c, peripherals)
│   ├── Drivers/       STM32 HAL drivers
│   └── *.ioc          STM32CubeMX configuration
│
└── hardware/          KiCad PCB design
├── SolarSystem/   KiCad project files (schematic + PCB layout)
├── gerbers/       Manufacturing files for PCB fabrication
├── libraries/     Custom footprints and symbols
├── SolarSystem Layout.pdf   PDF file of SolarSystem schematics
└── SolarSystem_BOM.csv   Bill of materials

Where to Find the Main Code

The primary application logic lives in:

firmware/Core/Src/main.c

This file contains all the custom application code, including:

  • MPPT algorithm — Run_MPPT(), track_mpp_20_seconds()
  • I-V curve sweep — Run_IV_Sweep()
  • Sensor reading — Read_Panel_Sensors(), Process_ADC_Buffer()
  • Soil moisture control — Run_Soil_Moisture_Control(), find_moisture_calibration()
  • Pump control — Set_Converter_Duty(), Set_Manual_Duties()
  • Calibration routines — find_calibration_values()
  • Telemetry output — Print_Panel_Sensors()

The other files in firmware/Core/Src/ (such as stm32f4xx_hal_msp.c, stm32f4xx_it.c, syscalls.c, sysmem.c, and system_stm32f4xx.c) are auto-generated by STM32CubeMX and contain HAL initialisation and system-level boilerplate — they generally don't need to be modified.

Hardware

  • MCU: STM32F446RE (ARM Cortex-M4 @ 180 MHz)
  • Topology: Synchronous buck-boost converter
  • Sensing: Panel voltage/current (ADC), soil moisture probe
  • Control: PWM duty-cycle modulation for MPPT
  • Output: Pump driver with variable speed (PUMP_OFF/SLOW/FAST/FULL)

Firmware Features

  • MPPT algorithm (perturb and observe)
  • I-V curve sweep for panel characterisation
  • Soil moisture calibration (dry/wet bounds)
  • Automated pump control based on moisture thresholds
  • UART telemetry for monitoring and debugging

Building the Firmware

Requirements:

  • STM32CubeIDE (tested on v1.x)
  • ST-LINK programmer (or compatible STM32 board with built-in debugger)

Steps:

  1. Open STM32CubeIDE
  2. File → Import → Existing Projects into Workspace
  3. Browse to the firmware/ folder in this repository
  4. Select the project and click Finish
  5. Build with Cmd+B (macOS) or Ctrl+B (Windows/Linux)
  6. Flash to the target with the green Run arrow

Viewing the Hardware

The PCB design is created in KiCad (free, open-source).

To view the schematic and PCB layout:

  1. Install KiCad (version 7 or newer)
  2. Open hardware/SolarSystem/ and double-click the .kicad_pro file

Manufacturing files: The hardware/gerbers/ folder contains ready-to-fabricate Gerber files compatible with most PCB manufacturers (JLCPCB, PCBWay, OshPark, etc.).

Author

Louie O'Neil

License

This project is shared as part of academic thesis work. See LICENSE for details.

Parts

71
QtyValueFootprintReferences
14Conn_01x01Connector:Banana_Jack_1PinJ_BAT-1, J_BAT+1, J_M1-1, J_M1+1, J_M2-1, J_M2+1, J_M3-1, J_M3+1, J_Pump-1, J_Pump+1, J_PV-1, J_PV+1, J_VDD1-1, J_VDD1+1
8100nFGRM033R6YA104KE14D:CAPC0603X33NCb1, Cb4, Cb5, Cb6, Cd2, Cd4, Cvs2, Cvs3
510uFAGC1210X7R500-106KNE:CAPC3225X280NCd1, Cd3, Cpv1, Cpv2, Cpv3
4SK34SMA-3GSK34SMA-3G:DIOM5027X240ND1, D2, D3, D4
310RRC0805FR-0710RL:RESC2012X60NRd2, Rd6, Rd10
31N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD5, D7, D9
3220RRN73H2ATTD2200F100:RESC2012X60NRd1, Rd5, Rd9
322RCR0805-JW-220ELF:RESC2012X60NRd4, Rd8, Rd12
35k6RG2012P-562-B-T5:RESC2012X50NRd3, Rd7, Rd11
3HCPL-2211-000EHCPL-2211-000E:SO-8_AVAU3, U5, U7
3IRLZ44NSTRLPBFIRLZ44NSTRLPBF:NMOSGDS_D2PAK_INFM1, M2, M3
3MM5Z15VT1GMM5Z15VT1G:SODFL1608X70ND6, D8, D10
3TC4420CPATC4420CPA:PDIP8_300MC_MCHU4, U6, U8
21uFAGC0603X7R250-105KXP:CAPC1608X95NCb2, Cb3
1100pFGRM0335C1H101JA01D:CAPC0603X33NCvs1
110kRN73H2ATTD1002B25:RESC2012X60NR2
110nFGRM155R71C103KA01D:CAPC1005X55NCL1
198kRN73H2ATTD9882A25:RESC2012X60NR1
1ACPL-C87B-000EACPL_C87B_000E:SOIC127P1150X360-8NIC1
1ACS722xLCTR-05ABPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1ATB107M035ATB107M035:CAPAE660X800NC1
1NUCLEO-F446RENUCLEO-F446RE:MODULE_NUCLEO-F446REU1
1SRR1210-471MSRR1210-471M:IND_BOURNS_SRR1210L2
1WCAP-ASLI_4X5.5865080540002:WCAP-ASLI_4X5.5_DXL_C2
1WE-HCF_2920_ROUNDWE-HCF_2920_ROUND:WE-HCF_2920_ROUNDL1

Similar boards

  • 2 layers354 × 295.1 mmSV PWM card R01, the printed circuit board in 3D

    SV PWM card R01

    mariusenglund/three-phase-inverter

    Materials for enhancing the DC-to-AC converter that was designed as part of our bachelor's thesis in the spring of 2023.

    257 parts2GPL-3.0
  • 2 layers262 × 156.3 mmSV PWM card R01, the printed circuit board in 3D

    SV PWM card R01

    JanBotnen/Three-phase-inverter_Modification

    Design and implementation of a three-phase inverter with SPWM and SVPWM, prepared for future PMSM control.

    223 partsGPL-3.0
  • 2 layers88.5 × 86 mmLaser Rifle, the printed circuit board in 3D

    Laser Rifle

    Firestorm108/Luminescent

    A 75-100W extreme high power handheld laser.

    68 parts1
  • 4 layers50 × 50 mmPower supply, the printed circuit board in 3D

    Power supply

    nicholasnloehrke/87s_research

    215 parts
  • 2 layers58.3 × 54.8 mmESPLEDDriver, the printed circuit board in 3D

    ESPLEDDriver

    OakTreeWC/ESPLEDDriver-v1.0

    ESP Powered LED Driver Board for both Addressable and Non-Addressable LEDs.

    39 parts
  • 2 layers47.5 × 85 mmDigitEco POWER DE, the printed circuit board in 3D

    DigitEco POWER DE

    r-map/rmap

    rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc

    55 parts55

Questions

How big is the SolarSystem PCB?

It measures 217.2 × 201.5 mm and has 4 copper layers, 0.19 mm thick.

What parts does the SolarSystem use?

71 parts, built around the TC4420CPA, ACPL-C87B-000E, HCPL-2211-000E and SK34SMA-3G. 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 SolarSystem KiCad files?

From the louieoneil19/Thesis repository on GitHub, at the commit this page was made from: the board is hardware/SolarSystem/SolarSystem/SolarSystem.kicad_pcb and its schematic hardware/SolarSystem/SolarSystem/Buck_Converter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SolarSystem design in my own project?

Its repository states no licence, so its author keeps all rights: ask louieoneil19 before reusing the design.