r/ArduinoHelp • • Sep 18 '26

I have a problem with this Arduino-based irrigation system.

Good day everyone, I'm a math teacher and together with my students we have created an automated irrigation system for the school's garden. But there's a problem that's driving us crazy: there are four relays connected to the Arduino, a DS1307 clock module, a simple 16x2 LCD screen with I2C connection. Each relay is connected to a solenoid valve that controls nebulization, others the opening of faucets, and the last one the electric pump that pumps water from a tank when there's reserve rainwater. If it's turned on without connecting any of this, it works perfectly, confirming that the code works perfectly. But when the solenoid valves and the electric pump are connected, it works fine for a while and then when one of them activates, it freezes, it seems to go crazy, incoherent letters appear, something that doesn't happen when the solenoid valves are disconnected. I've isolated everything, I added a snubber-type filter to prevent kickback to the relays, but we can't find what else to do, it keeps freezing. It's not very pretty because we've really done it with our own hands, but I thank you in advance if you can recommend something that can be done. I've been at this for a long time and it has become a frustrating task.

16 Upvotes

34 comments sorted by

View all comments

2

u/Brama_94 Sep 18 '26

i am just curious why esp32 was not used 😶‍🌫️

1

u/[deleted] Sep 18 '26

[removed] — view removed comment

1

u/Brama_94 Sep 19 '26

ok, but why not esp 32, like whats the propoganda?, what i know it can work over internet with its inbuilt wifi 🤔 which is great i guess also can be combined with mashtastic for off grid long range IOT within fixed area 🤔, irrigation system doesnt need high bandwidth so it will work very well 🤔.

by the way i did google search and came to know new arduino uses esp32 so is that the reason ?

1

u/wylen15 Sep 18 '26

Thank you very much for your reply. It is mainly a matter of resources: we only have Arduino boards available. Since the task—activating and deactivating pulses—appears simple, we didn't see the need to use an ESP32.

1

u/Brama_94 Sep 19 '26

😮 👍👍

1

u/Anonymity6584 Sep 19 '26

probably did not have one...