![]() initialize the stepper library on pins 8 through 11: We've tried multiple sketches from multiple sources, here's one as an example: #include Ĭonst int stepsPerRevolution = 200 // change this to fit the number of steps per revolution We've also tried changing for another Arduino and this hasn't made a difference either. ![]() Using a separate 5V power supply to the driver which is also grounded to the Arduino (have tried both ground pins just in case that makes a difference, but no). ![]() We've been connecting 8 to IN1, 9 to IN2, 10 to IN3 and 11 to IN4. In researching an answer, I've seen some people say to switch IN 3 & 4 but I still get same results. There was one sketch we were using that used Serial Monitor to enter in the number of steps, and when i'd do a minus number of steps, it'd go CCW, but the next day no longer would! I thought this was a motor or driver issue, but we've bought three more motor/drivers and still have the same problem. I've tried the Arduino library, the AccelStepper library, countless other sketches from various websites and for some reason the stepper only vibrates when it's supposed to turn CCW. We bought a 28BYJ-48 stepper with driver, and figured it'd be just a question of copy-and-paste coding and we'd be in business. My son has done multiple Arduino projects after having a Creation Crate subscription, and now we're working on a project together. Before bothering anybody, I've been Googling this issue for the last three weeks and have not been able to solve the issue, so must reach out for help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |