Electronic Parts required to get Linear Slide Rail with Nema23 Stepper Motor Operational

Ok, I finally picked up two Photo Interrupters. One will be mounted on one end of the stepper motorised slide rail and the other sensor will be mounted on the other end.

Can anyone point to a tutorial or a piece of code will serve this purpose. Actual process flow noted below:

  1. Press a button
  2. Motor turns on and the slide rail starts to move backwards and will come to a complete stop once the photo interrupter’s light is impeded and the power will be cut automatically
  3. Press button
  4. Motor turns on and the slide rail starts to move forwards and will come to a complete stop once the photo interrupter’s light is impeded and the power will be cut automatically

Thanks again for all your help.

2 Likes

Hi Viren,

I’d suggest by starting with the Beginners workshop to learn all of the basics for syntax, although depending on exactly what part of the project you’re looking to implement, each of the tutorials from the series I linked below should cover what you need to know in order to set that up:

All the best with your project, and enjoy your weekend! :partying_face:

1 Like