I've been looking through a lot of projects and examples trying to find something that i can modify (in most cases dumb down) to take over an automation task in a friends Dairy. The more I look, the more confused I get.
We need to control the monitoring of milk flow and subsequent removal of the cups, note that at this stage we don't really need to know how much milk has flowed, rather just when it stops, or, slows to a preset minimum level. There is a very complicated and heavily integrated system already there, but it would be extremely expensive to get repaired
The code needs to run a countdown timer at three different stages (or scenarios) in the milking process, to ensure that the removal doesn't occur prematurely, and switch 2 solenoids that control vacuum flow. This is the part I was looking to add to a sketch already out there.
I've looked at water flow, water level and continuity projects so far and am not sure which would be the best path.
We need to work with milk 'flow' meters that monitor flow based on continuity that operate at either 12 or 24v.
The operator needs to be able to start the process manually, be able to cancel at any time (if something went wrong) and override the process in the case of milking the cow into a bucket (so no milk flow - but still activate solenoids) or override to clean the milking system.
Like many people who post here, I am inexperienced in coding, hence would prefer to modify existing sketches, rather than attempt something from scratch.
The ability to add volume counting and lcd display in the future would be a benefit.
I can be more specific about the scenarios if someone needs more info, just haven't put them here yet in fear of boring people to death...
Any suggestions would be gratefully received,