I hope I might be able to hear a suggestion or two here without receiving personal insults. Please just keep scrolling if this is too much to ask.
I'm trying to get a stepper motor to run with acceleration/deceleration using an Uno with TMC2208 stepper driver and the AccelStepper library. The examples I have seen have all used a line like this in setup...
stepper1.setAcceleration(100);
But I can't get it to operate with any observable acceleration and the motor just runs with abrupt starts and stops instead. Here is the whole sketch, which I modified from an example for the TMC2208...
Thanks very much. I got this to work with acceleration. I need to control forward and reverse direction. I tried some things with dirPin, but with no luck yet. Any suggestions?
This needs to be said; Why did you accuse me, or any of the thousands of readers, of this? Maybe you should... "Keep scrolling if you must start your post with insults."
Thanks to DaveX and MicroBahner for providing clear, helpful suggestions in a friendly way. And thanks to you for providing an example to illustrate the kind of response that I was hoping to avoid. In the few times I have visited this board I have usually received responses with your kind of tone. Read through posts here and you will find many other examples of beginners being treated in a similar manner. I did not want to hear any more of that and that is why I included this basic request at the top.
I've tried setMaxSpeed setSpeed with very high values, but the stepper is only spinning at about 100rpm max. Any ideas for faster speeds? It's not critical, but more like 300rpm would be better for this application.
I loaded MobaTools and tried that sketch, but the motor wouldn't budge. I'll try to experiment some more with it though.
I consider myself "new" at three years in this hobby. I have read a LOT on this forum (because I need it and it interests me). It is my observation that you have skipped the parts where "beginners" ignore the rules, then ignore the requests to "please follow the rules" then lean on "my homework is due tomorrow" with repetitious use of "give me the codes"... but you head straight for the money shot. Your last post was a year ago and upon your return, you open topic and lead with "You jerks better not be jerks, or else."
TL;DR: I think you focused on the wrong thing and accused thousands of kind people of your own behaviour. I hope you recover and visit more often. I have.
What is the point of responding with personal insults? If you read something you don't like, why not just ignore it, suggest a better way to ask the question or express plain displeasure? What do you think you're accomplishing?
For the record, you've convinced me and I'm permanently done with this board.