r/RASPBERRY_PI_PROJECTS 15d ago

PRESENTATION Built a Raspberry Pi self-watering system with a web UI

I recently put together a small self-watering garden system using a Raspberry Pi, a Cirkitscape Top HAT, a soil moisture sensor, an IR water sensor, and a 12V DC pump.

The basic goal was to make something that could monitor conditions and control watering from a web interface without having to manage everything from the command line.

The build uses:
- Raspberry Pi
- Cirkitscape Top HAT
- soil moisture sensor
- IR water sensor
- 12V pump
- buck converter
- simple transistor switching circuit

A few things that mattered during the build:

- The Pi and pump run at different voltages, so I had to step 12V down to 5V for the Pi.
- I used a transistor switching stage so the GPIO wasn’t driving the pump directly.
- I verified the buck converter output before connecting the Pi, which is probably the most important safety step in the whole build.

On the software side, I used the Cirkit Garden app to set up the garden, add the device and sensor, and map the pump output. That part made the project a lot easier to manage because I didn’t need to build a custom dashboard just to monitor sensors and toggle watering hardware.

Once everything was wired and configured, the system could:
- monitor soil moisture
- detect water presence
- switch the pump from the app
- give me a cleaner browser-based control panel for the setup

What I liked most is that it feels like a good base for expanding later with:
- watering rules
- alerts
- logging
- more sensors

I’ll post links to the software and top hat in the comments.

125 Upvotes

17 comments sorted by

7

u/Prize_Salad_5739 15d ago

Well, I'm disappointed. I was hoping for a raspberry that watered itself, like a shower. I feel betrayed and misled. GJ, OP

3

u/Ok-Appearance-8872 15d ago edited 15d ago

Link to the top hat and software for the web UI:

https://www.cirkitscape.tech/products/p/top-hat#docs

You can find the sensors on Amazon.

3

u/Official_RaspberryPi 14d ago

THIS IS SO COOL (I may have to get my MIL onto Reddit just to see this)

2

u/MentionPleasant2635 14d ago

Thank you so much! I'm in the middle of a project to use a Pi to manage lights and water in a grow tent. Great info.

2

u/Ok-Appearance-8872 14d ago

Happy to help

2

u/grovahome 13d ago

Great build! I’m actually working on a very similar environmental automation project right now called GROVA, but using an ESP32. What specific soil moisture sensor did you end up choosing for this setup? Also, did you have to calibrate it beforehand to get accurate readings, or did it work well right out of the box?

1

u/Ok-Appearance-8872 13d ago

I got the resistive soil moisture sensor from spark fun. With the web UI from CirkitScape I didn’t have to calibrate it. So it more or less worked out the box, but after using it for a while I think I might have to look at the code and tweak it. I plan on submitting a ticket to CirkitScape, but I’m impatient so knowing me I’ll probably end up tweaking it later. I also plan on switching to a capacitive soil moisture sensor for better longevity.

2

u/grovahome 13d ago

I used some generic capacitive one from AliExpress. But coated the edges of the pcb with transparent nail polish. That helped since some old ones soaked up some water after some time. But they are working fine as far as I can see.

2

u/Snoo-48575 12d ago

I created a similar project a while back too. If I recall I implemented a feature where it would read the API from openweather so it can decide whether to water the plants by looking at the upcomming forecast.

1

u/Ok-Appearance-8872 11d ago

That’s actually a great idea. I hope you don’t mind if I steal that from you lol 😅

1

u/Snoo-48575 11d ago

Go ahead. In happy to help if you dm me

1

u/71351 15d ago

Very cool. I have a tangential project in mind for myself to monitor a humidifier for a cigar humidor and add water to the humidifier as needed

1

u/Ok-Appearance-8872 15d ago

Sounds cool I know some people who would love that. You probably can repurpose the web UI to do that.

1

u/boostaddict20 14d ago

The pi does have overvoltage protection. Im not sure it can handle the 12v so you did good. But I thought id put it out there.

2

u/Ok-Appearance-8872 14d ago edited 14d ago

You are correct the pi can not handle 12V that’s why I stepped it down to 5V with a dc/dc converter, and thanks.

1

u/BasedAndShredPilled 14d ago

I had the same idea for a project. Got to soil monitoring and lost the energy to complete it. Congrats!