Close

Schematics and source code

A project log for Yet another automated watering project.

Solar powered budget automated watering system.

labanssonLabansson 04/06/2017 at 19:300 Comments

Just a short update to log that I have uploaded the source code for the PIC. The schematic just a handdrawn one that has been uploaded as a picture.

I had to add some functionality while I was tidying up the code. This summer I want to know which days the watering occurred. If everything works as I intend the log will be printed to the uart at dusk every day. Its probably not easy to capture it, I will have to attach a laptop to the system for a couple of hours at dusk in order to see it, but I think it will add some fun to the whole thing to be able to see what has been done. I log the maximum output from the solar panel, the time since the last watering and if today was a "watering day". I use the EEPROM as a rotating log on the pic, every entry is three bytes and I use 250 bytes, giving around 80 days worth of logging in total.

I also investigated the system and found that it was in full working order, but the batteries were flat. After I charged them everything seemed to run fine. I will do a capacity test on the batteries to see how much they have degraded.. I also measured current consumption again. I only measured the sleep current and it was 105uA this time. I think the last time I measured the current consumption I did something wrong...

Anyway, I have uploaded the source code and will write another entry when I have checked the battery capacity.

Discussions