Code needed - Reverse dosing pumps
Posted: Tue Jul 20, 2021 9:00 pm
Im trying to get pump to run backwards for specific time (10 seconds) to purge line then pump out solution. Ive basically copied LEDG code from Github and got the pump to run normally as intended. Ive hit a wall trying to throw together IDE code trying to add the reverse component. I dont have the PIN real-estate to add a enable pin wire to all pumps so I had the idea that maybe I could run all 6 to 8 pumps off one pin, and just have them all spin backwards for that specific time.
I thought it would be as simple as adding a digitalWrite(reversePin, HIGH); then a delay(pumptime) then digitalWrite(reversePin, LOW); to the callback function of the code when it looks to HomeAssistant.
Does anyone have any code they can share? or anyone willing to look at mine and see if they have some insight?
Jeff
I thought it would be as simple as adding a digitalWrite(reversePin, HIGH); then a delay(pumptime) then digitalWrite(reversePin, LOW); to the callback function of the code when it looks to HomeAssistant.
Does anyone have any code they can share? or anyone willing to look at mine and see if they have some insight?
Jeff