I am looking for help in regards to controlling a motor (right now I have a step motor 5V DC) using sensors for an art installation. My goal is for the motor to stop when there is someone standing directly in front of the piece, but to continue working when there is no one there.
Any help with the code or how I would go about controlling the motor with a sensor is much appreciated (and desperately needed please).
I have the Ultrasonic Distance Sensors right now, but have read in other forums that maybe an analogue distance sensor such as SHARP GP2Y0A21YK0F would work better. What is the different between these two and does it matter?
Thank you!! ((-: