Reputation: 57
please I want to know what is the unit we use in AVR studio when we give the motor speed for a Nibobee Robot like :
motpwm_setLeft(1500);
what is the 1500 unit??
Upvotes: 0
Views: 90
Reputation: 399803
According to the documentation, the value is simply the raw PWM value for the device to output.
So, it's basically what percentage of the "full power" to send to the motor. What the motor then "does" with this, in terms of achieved torque and/or RPM, of course depends on the motor itself, the power electronics driving it, the available max energy, the load, and lots of other things.
Basically, it's a dimension-less value, it has no unit.
Also, it should be in the range -1024 to 1024 (which is weird, but that's what it says).
Upvotes: 1