Menu

📰
0

How to make my stepper motor control code faster while using serial communication

Reddit r/arduino·u/shabink·about 1 month ago
#VUakwk2u
#high#in1s#in4s#in2s#in3s#article
Reading 0:00
15s threshold

How to make my stepper motor control code faster while using serial communication I'm working on a project with processing and my arduino uno where I'm using the arduino to drive a small car with two stepper motors. I am not allowed to use the stepper.h library so I've been controlling each coil of the stepper motor manually. I'm using the 28BYJ-48 stepper motor and plugging it into a ULN2003 driver board module. Right now I'm supplying it with 4 AA batteries but I bought a 9.6V RC battery that'll come in tomorrow and Ill use that afterwards. Currently my issue is that the code I have to control the direction that the stepper motor spins in works fine on its own, but once I plug it into the rest of my code for the entirety of my project, it moves significantly slower than what it does when I'm running it on its own. Before I paste the entirety of my project code I'll summarize it a bit.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More