Offline stepper motor controller pendant

Hello everyone,

I'm completely new to Arduino. I want to make a linear actuator (by a lead screw). I need to have an offline controller (without pc connected) pendant for a stepper motor with some PushButtons to control:

1- position the block in "mm" and show this position on the display. (please see the attached image)
2- A pair of pushbuttons for clockwise and counterclockwise motor rotation
3- speed controller with push-button (include "Fast, "Slow" and "Step" modes)
4- A pushbuttons for set a custom position as Zero (origin)
5- A pushbutton for setting a custom position as a Home position.

https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.meditron.ch%2Fmedical-physics%2Findex.php%2Fdosimetry%2Fabsolute-dosimetry%2Fproduct%2F58-doseview-1d&psig=AOvVaw0PNXEvuCPA8TN-C1OL5G2p&ust=1640811270275000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCPCW9L2wh_UCFQAAAAAdAAAAABAD

Any suggestions would be appreciated.

Do you have the hardware (stepper motor, stepper driver, buttons, power supplies, display, limit switch(es), Arduino board and mechanical bits)?

If so, please provide a schematic and photos of the project and wiring.

For that you need to know the pitch (threads/mm) of the lead screw and the number of starts. Then use this page's Steps per millimeter - leadscrew driven systems calculator.

For the speed and direction buttons use the state change detection method (and my active low button tutorial). The value of the buttonPushCounter variable can be used to select the speed or toggle the direction.

The home and Zero buttons are relativly simple and can use the above state change methods. You will need to have "limit switches" at at least one point to establish the initial stepper position (usually called Home).

I would suggest studying the AccelStepper library. That excellent (if steepish learning curve) library will help to do what you want.

1 Like

Also post links to the technical information on each hardware device.

1 Like

Dear groundFungus,

Thanks for your reply.
Below I shared the links for my linear actuator. It uses the ball screw with 4 mm pitch, 10 mm diameter. A Nema 17 stepper motor was also used. For all other electrical parts, I'm looking for a similar project to prepare them as well. As I mentioned I don't have any programming experience and so it would be very time-consuming for me to start learning programming for something like this project. So, do you have any similar projects to help me do this?

Linear Actuator link :
https://filetransfer.io/data-package/H5IECoov/download

I have searched on YouTube and the most similar project I have found is (Pr#57 Control CNC manual (CN) - Motores, display, drivers - YouTube). It is a good project that I looking for. But I need to add some other pushbuttons to this (as I mentioned in the first post).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.