Stepper Motor With Push Button

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
cwtulcar
 
Posts: 5
Joined: Thu Feb 06, 2025 9:39 am

Stepper Motor With Push Button

Post by cwtulcar »

I am looking to use a stepper motor for a compression tester, can anyone tell me how I would wire a push button to control the downward and upward motion of the stepper with push buttons for each direction, preferably without a breadboard as I want to connect it directly to my adafruit stepper motor hat?

User avatar
T_Mo
 
Posts: 1736
Joined: Thu Mar 15, 2018 7:10 pm

Re: Stepper Motor With Push Button

Post by T_Mo »

(only a community member)
preferably without a breadboard
That could be difficult. The obvious method would be to use some intelligent device to read the buttons and control the stepper motor driver to move the correct direction.

User avatar
Timeline
 
Posts: 1495
Joined: Sun Feb 18, 2024 7:13 pm

Re: Stepper Motor With Push Button

Post by Timeline »

cwtulcar wrote: Fri Feb 07, 2025 9:58 am I want to connect it directly to my adafruit stepper motor hat?
If you are talking about the Pi Hat then it is designed to take I2C bus commands to work. If you want a simple switch control (I assume you mean something like while pressing a switch the motor moves, let go and it stops, and another switch to pick direction?) you might look into something like the Adafruit TMC2209 Stepper Motor Driver Breakout Board and maybe the Adafruit 555 PWM Output STEMMA - 1.5K~25 KHz or 1.5~250 Hz - STEMMA JST PH 2mm plus of course a couple switches.

My thought on how this would work is the TMC2209 controller only needs an input for direction (one of your switches) and then an input to the STEP pin where each pulse moves the motor one microstep. That input can come from the 555 timer board which since it doesn't have an enable pin, just let it run, and your other switch can simply connector or disconnect the 555 output to the STEP pin. And on the 555 board, between the switch and the potentiometer, you can set the motor speed.

Post Reply
Please be positive and constructive with your questions and comments.

Return to “General Project help”