Not sure this is the right forum. Please move if needed.
Once again I come across some problems with my stepper motor setup and I’m not sure how to solve it but I do know where the problem is at.
I’m using the OneButton lib to add more functions to buttons and not overcrowd my project with a lot of them. The button functions work fine but the situation is as follows.
I have a few states in which I move the motor to endstops and record the steps between them. It moves from endstop one to endstop two with acceleration at the start. Anyway, the motor runs but there is a little ‘rumble / scratchy’ noise coming from it as if it doesn’t get enough power. I checked the wires etc but I found out that if I push a button, one that has no function while this state is running, the motor speeds up a bit but more importantly, it sounds very smooth.The OneButton lib uses internal pullup resistors and I wonder if this is causing the disturbance in the motor? Should I use other resistors? Well, I’m not sure if it is a resistor problem, but it seemed odd that when I push any button the speed goes up a bit and the sound is very stable.
Can anyone maybe point me in the right direction? If needed I can make a vid of it.