I’m making a robot that moves around with a liquid sensor. When the sensor detects liquid a red LED blinks, indicating someone must come clean it up. I have a working code for the LED and sensor, however, i do not know how to incorporate a code for the motor. The motor must also stop when the sensor detects liquid and then there is a push button that must be pressed to restart the motor. Attached is what i have of the code so far. Does anyone know how to code for the motor and push button?

Im making a robot that moves around with a liquid sensor When the sensor detects liquid a red LED blinks indicating someone must come clean it up I have a worki class=

Respuesta :

Answer:

it looks like some kind of arduino code what motor driver lib are you using this is a lot more complex than just turn on motor and turn off when water is found do you need it to move about randomly or just in a stright line until it find water

Explanation: