I think you get what I mean, look at the video, the weight is pushing directly downwards on reference turning point of motor, so g*cm = g * 0 cm -> 1 kg , as can be understood.
But my question is still, will this work ?? I think I may need a nema 17 or something like that
Who knows if it will work? Most people use brushed DC motors for balancing robots.
You need to estimate the required torque, measure the motor torque and also take into account that the maximum step rate of the stepper might not be fast enough to balance the robot.
Most of them. The weight of the robot doesn't have much influence on the torque required. In fact a heavier robot is probably easier to balance because it has more inertia.
Speed is a factor. How fast do you want it to go? Then you have to take a huge discount on the speed because a motor running at max speed can't balance because it can't go faster. Then look at the surface and tyre material. Softer requires more torque which will reduce the motor speed further, for a fixed battery voltage.
I disagree. There are any number of small motors that won't begin to budge a 2 kg robot.
To rotate an object like a balancing robot requires torque, the heavier the object, the more torque required.
The required torque can be calculated from the mass distribution, the physical dimensions and the required angular acceleration. Look up moment of inertia in any physics textbook.
And there's any number of large motors that will weigh more than 2kg. I think my infinity is bigger than your infinity.
What is the motor torque when the robot is balanced? Zero. If it stays close to balanced then the torque will be close to zero. Soft carpet and a heavy robot will increase the torque required but the fun thing with these balancing robots is a small motor will balance a large robot.
Okey, new update, as a motor shield im using the cnc shield v3.
I've been playing with the grbl settings, but the steppers are skipping steps all the time, so it can't balance, see above for battery and steppers. Btw: Cnc shield powered by battery, on arduino uno, sending to ras pi 3 as main controller connected to arduino through USB.
Southpark:
Steppers won't be a good choice for balancing bots right? They'll work, but run out of battery energy pretty quick.
They might be a bad choice for a completely different reason - they need a different control loop as they
only control position, not torque. The naive control loop for position generates unrealistic demands for
acceration.
Okey, by formula vref = 1.3 A / resistance, I can try to find A4988 resistor value, guess it varies for each producer. Anyone have a guess what it is ?
Steppers are 1.3 A. Running from 12 volt 3 A battery.
I have vref = 0.65 now, since that is 2 as resistance value. Just my guess..
One advantage of buying a motor driver from a reputable manufacturer like Pololu, is that they support their products, and give you the data you need to use it correctly. In this case, that would be the information and instructions required to set the current limit properly.
MarkT:
They might be a bad choice for a completely different reason - they need a different control loop as they
only control position, not torque. The naive control loop for position generates unrealistic demands for
acceleration.
That's definitely an important point about steppers not being a good choice for balance bots. Extremely good point actually.