PM Transit
ECE 298 · Fall 2025

Automated Reservoir & Irrigation Controller

An STM32F401 controls a pump and routes water to three irrigation zones. An ultrasonic sensor measures the reservoir depth and triggers a shutdown when it runs empty.

  • STM32F401
  • Embedded C
  • PWM
  • UART
  • Proteus
  • PCB design
Irrigation controller water pathA pump draws from the reservoir and a servo directs flow to one of three zones. An ultrasonic sensor reads the water level.ReservoirPumpServo valveZone 1Zone 2Zone 3Level sensorSTM32 control
Water routing and servo control

Route and monitor the water

The controller runs a 24-hour irrigation schedule. PWM drives the DC pump and positions the servo that selects the inlet or one of three zones. An encoder measures pump RPM, and the ultrasonic sensor tracks the water level.

Give the operator feedback

The potentiometer provides a local input. UART telemetry, LEDs and the timer display make operating state visible during testing. An empty reservoir stops the pump and raises a fault indication.

Design the board

I drew the schematic and laid out the PCB in Proteus, placed components, routed motor and signal connections, checked the design rules, and generated the Gerber and drill files. The board reached the fabrication-file stage.

Choose an operating schedule

Measured pump and reservoir data informed the runtime and RPM targets. I used water volume, energy use and cost to compare operating plans for the irrigation cycle.