Hi all I’m new to the arduino world and working on a school project to control a stepper motor with a ultrasonic sensor ,
The plans is to make the stepper motor rotate cw when a object comes close to the sensor and rotate ccw when the object moves away from the sensor at a certain speed and distance

I’m using
Arduino R3
Nema 23 stepper motor
TB 6600 Driver
Ultrasonic sensor

Can anybody give me a code to start with , I’ll make adjustments to it if need to

Thanx in advance
Bradley


Sent from my iPhone using Tapatalk