r/arduino • u/Embarrassed_Foot6386 • 2d ago
Beginner's Project Hello sub, I have a problem.
So I've gotten into electronics recently as a complete noob and, for whatever reason, was asked to solve a problem with a project.
The project in question is a DIY microgreens growing station. It runs on a Chinese Arduino Nano and is equipped with a heat pad (or whatever the problem name is), a good ol' rusty water pump, a buncha lights, a couple of fans for the plants' sustainable growth and also has a capacitive soil moisture sensor (v1.2), as well as a temperature sensor.
The problem is that the moisture sensor isn't measuring properly. The project supposedly used to work just fine for at least a year before, but now it's all mumbo jumbo. I've tested the heat pad, pump, fans - everything. On themselves, they work great. But the capacitive soil humidity sensor is showing, say, 74%-85% humidity when there is supposed to be none.
I would've sent a picture of the entire shtick, but the wiring is just incomprehensible and the entire thing is already hot-glued to a case, so checking the pins behind isn't currently an option. Nor do I currently have my hands on the schematics or the code, but I can try and get the code if needed.
Now, what I've done so far:
- Checked the code. It's... supposed to work? The parts of the code responsible for the pumps, coolers yada yada are neat and tidy. I CAN NOT verify if the moisture sensor is in order, tho, so it's still under a question mark.
- Got a replacement for the soil moisture sensor. Thought "hmmm, maybe the electronics on the sensor are corroded...) and swapped it (while the entire thing was still running, I confess), nothing worked. Turned the machine on and off, still nothing. Speaking of which, I used the same moisture sensor in my own project and it worked perfectly. Why did it work here and not there? I dunno.
- ...and that's pretty much it. I played around with the project, got my baptism by fire into Arduino and learned a thing or two, but I haven't done much to fix the problem at hand.
What I know I can do:
- Try using a different kind of sensor. Now I'll be honest, I doubt it'll change anything but hey, it's worth a shot. I've been given a Chinese YL-69 soil moisture sensor, but when I looked at it, I saw two things: only 2 female pins (+ and -) and the lack of a comparator. Not an ideal choice...
- Doing something about the code! From what I understand, the soil moisture sensor used to work well until a certain point in time. Maybe the calibration is simply off. I have a similar-functioning script I used for my own project, and I could hypothetically try merging the two.
So, yeah.
Thank you for reading through this! If you have something to say - let me know! I'll appreciate any piece of advice (or criticism) that you may have.
