Hello arduino community, i'm new arduino here, and i'm still learning. I'm working my project for my final exam. So im building a device that can control ph and tds of the water, i'm already can control the sensor and send the data to node-red via mqtt, and now i want to control the peristaltic pump, and controlling it based on the input.
My plan is to control the pump to turn on, and how long the pump turned on is based on the input. And the peristaltic pumps are used to transport PH and TDS liquid. TDS is a liquid that contained minerals.
Hardly. What if the input is anything else than 10, 20 or 40? If you start the motor by setting a pin low, are you really going to stop it by setting the same pin low again... twice?
Okay then, what if i use the "nyala" for the delay? and how to make the pump only turn on from the input, and after it done it will standby for another input?
Its working but when it turned on the motor started it self so i have to input 0 to the serial monitor, but what i want is the motor is only turned on when there is an input since the first upload.