![]() ![]() ![]() Continuous() function is not working either: after 50 step forward (moving and logging the step count), it continues moving forward logging just 1 for the counter.Backward() produces the expected logging output (counting the steps up to 50), but the motor only moves forward instead of backward. ![]() Each function moves the motor step by step and logs the action on a serial output.īut I could not achieve my desired results: The stepper does not go backward but only goes forward. The functions Forward(), Backward() and Continuous() implement the actions to be performed for each button. I used Arduino's stepper library and wrote the following code. If button 3 is pressed, the stepper should go 50 steps forward after that 50 steps backward. If button 2 is pressed, the stepper should go 50 steps backward. If button 1 is pressed, the stepper should go for example 50 steps forward. I want to create an Arduino program for a system that has three buttons and one stepper motor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |