Stepper motor 28 byj with 3 push button

hello , i am in highschool and i want to make a stepper motor project , i have 28byj stepper motor and uln2003 driver. i am writing some code with 3 push button but it doesnt work i cant figure out why , so came here for yout help.
my application with 3 button
buttont 1 : the motor is in stopped condition and when i press and release the motor should rotate one full revolution in clockwise direction and then stops untill i press any button.
button 2 : when i press and release the motor should rotate 5 degree in clockwise direction and then stopes untill i press any button
button 3 : when i press and release the motor should rotate 5 degree in anti clockwise direction and the stops untill i press any button

please guide me through this or write me a code for this , i m using 28byj stepper motor with uln2003 and arduino uno r3

did example code work?

Hello theashesh

Welcome to the worldbest Arduino forum ever.

Post your sketch, well formated, with well-tempered comments and in so called code tags
"< code >" and schematic to see how we can help.

Have a nice day and enjoy coding in C++.

Hi @theashesh

welcome to the arduino-forum.
This forum can be of great help if you follow some rules.
The two most important rules are:

  1. show some own effort
  2. ask a specific question

show some own effort
Post your sketch. Post your sketch even if the sketch does not compile.
If the sketch does not compile the first specific question will be:

"How do I analyse and narrow a compiler-error"?

Additionally some tips:
You may have already done these steps but as you haven't told so
the forum does not know it

Basic knowledge about how to connect buttons to make them work reliable

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