Hello,
I m trying to build a balancing robot, the script is working but the stepper motor which is controlled by the DRV8825 is not moving but is making strange noises.
MrGrimod:
My test script is "working" the sound is changing relativ to the current posiotion of the robot.
It is not working if the motors are not rotating properly.
Try the simple example in my earlier Reply and get that working first. That way you will know you have all the connections etc correct.
You have not said how you have adjusted the current limit on the driver board. If it is too low the motors won't work. If it is too high they will be damaged.
Those motors seem to require 1.2A per phase so about 3 to 4 amps for both motors. Your battery won't last long. And it is very bad for LiPos to discharge them too deeply. Stepper motors are very inefficient and not really suited to battery power.
Stepper motor for a balancing robot is not ideal, mainly because steppers are simply a poor match for
any traction application - low efficiency, low speed, noisy and generate lots of vibration.
Anyway to sort your problem the first thing to do is use a simple piece of code to test your steppers
and stepper drivers, forget all the balancing stuff, just get the motors working and their top speed
and acceleration characterized first.
This is the 3rd time of asking you how you have adjusted the current limit on the DRV8825?
Are you sure you have the motor coils connected the right way? Have you checked their resistance with your multimeter to be sure you have identified the two pairs of wires correctly.
I had assumed you would have obtained it from whoever supplied your driver. The Pololu DRV8825 web page has good instructions. Be aware, however, that your board (assuming it is not from Pololu) may have different values for the current sense resistors.