I was to use a motor speed controller but I also want to know what load the motor is under by monitoring the current. If I use a speed controller that may use PWM to control the speed, is this even a possibility?
Hi,
PWM controls the voltage (which relates to the rpm) and is separate from the current (which relates to the torque). You can certainly choose a PWM controller either with a built-in current sensor or use an external one.
Hope this helps,
As long as you are not over powering the motors (providing a voltage source that is higher than its rating) you should not fear the maximum speed you set. You can set the maximum speed and the motor will run as fast as it can.
However, PWM only switches the voltage ON and OFF very fast (which translates in variable power for your motor) but does not change the voltage amplitude. This means, even when using PWM, you should not power the motors with a voltage higher than what they are rated to use.
What is the allowable range for motor speed in the following program? I am using the MD25 with the Arduino Uno in serial mode, as hooked up on the Devantech website: robot-electronics.co.uk/htm/arduino_examples.htm I am running the MD25 serial code, as shown on the website: robot-electronics.co.uk/files/arduino_md25_serial.ino
Here is the part of the code in question:
void loop(){
while(encValue < 3000){ // While encoder 1 value less than 3000 move forward
Serial.write(CMD); // Set motors to drive forward at full speed
Serial.write(WRITESP1);
Serial.write(150);
encValue = readEncoder();
readVolts();
}
delay(100);
while(encValue > 100){
Serial.write(CMD); // Drive motors reverse at full speed
Serial.write(WRITESP1);
Serial.write(100);
encValue = readEncoder();
readVolts();
}
delay(100);
}
I would like to change the motor speed, but don’t want to burn out any of my motors. (I’m using 2 EMG30 motors.) I see in the code that there are two values for WRITESP1: 100 and 150. What is the range of values I can input for WRITESP1, and not burn out the motors?