OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Water pump is shared between pool and sprinklers – manual pool filling? Reply To: Water pump is shared between pool and sprinklers – manual pool filling?

#38322

Axel
Participant

Hi Ray,

I’ve finally had time to play with OSPi. I am using it on an RPi2 since my old RPi1 doesn’t have a compatible GPIO socket. I’d really love to be able to use the RPi1 instead, but that’s something I’ll worry about later. Maybe I can use a custom ribbon cable to connect the GPIO pins.

So anyways, I set it up on the latest official Raspbian from May 5th, got the wifi working and built the source from Git. It worked fine, the application is running and the web server is listening on 8080. Everything great, got it up and running in about half an hour. 🙂

I copied the C++ source over to my Ubuntu laptop and installed Eclipse for C++. Looking at the code, it seems that all I need to do is to change main.cpp right after “if (os.old_status.rain_sensed != os.status.rain_sensed)” add something like (in pseudo-code):

if( os.status.rain_sensed ){
reset_all_stations();
run_program(“fill_pool”);
}else{
stop_program(“fill_pool”);
}

I would define fill_pool as station 2 on, for 12 hours and connect my pool filling valve to station 2.

Does this make sense?