Motor driver free spin and user input
Motor driver free spin and user input
I am trying to use the roboclaw7a with a motor with hall effect encoders in an application which requires that I am able to have a user spin the motor when stopped as well as the roboclaw set a position with acceleration/deceleration.
When I power on the roboclaw 7A, my motors are easily spun by hand. As soon as drive the motors activated with any of the provided methods PWM, velocity, or position and back to zero velocity, the motors become more difficult to spin by hand. This tells me that the even when the motor is stopped, the back emf is being shorted across the driver.
My question: Is it possible to set the drivers back to this inactive state as it was when the board was powered to allow the user to change the motor position without the back emf going into the driver.
When I power on the roboclaw 7A, my motors are easily spun by hand. As soon as drive the motors activated with any of the provided methods PWM, velocity, or position and back to zero velocity, the motors become more difficult to spin by hand. This tells me that the even when the motor is stopped, the back emf is being shorted across the driver.
My question: Is it possible to set the drivers back to this inactive state as it was when the board was powered to allow the user to change the motor position without the back emf going into the driver.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Motor driver free spin and user input
There is no command to freewheel the motors but you can trick the Roboclaw into doing it by setting the Min Main Battery voltage higher than the current battery voltage. Then set it back to normal once your user is done doing whatever you need them to do. The reason this happens is the Roboclaw is setup to freewheel the motors if main voltage drops below minimum main voltage to help prevent brownouts.
Re: Motor driver free spin and user input
Thanks for a quick reply,
I tried this solution using IonStudio but It did not work.
Here are the steps I followed:
Power on board with 12v input power
motor is in freewheel.
Run pwm to 100%, then back to 0%
Motors are not in freewheel mode.
start conditions:
Max Main Battery 34v
Min Main Battery is 11v
Raise Min Main Battery Voltage to 20v
I get a MBLO yellow light.
Motors are not in freewheel mode.
Also tried with to raise Min Main Battery Voltage to 50v with same results.
Reading a post "Questions about regenerative braking"
"resistive braking (when you short the motor leads together(all energy is disipated as heat in the mosfets and motor windings)."
This seems to be the state the mosfets are in but I need them to be open, not shorted.
I tried this solution using IonStudio but It did not work.
Here are the steps I followed:
Power on board with 12v input power
motor is in freewheel.
Run pwm to 100%, then back to 0%
Motors are not in freewheel mode.
start conditions:
Max Main Battery 34v
Min Main Battery is 11v
Raise Min Main Battery Voltage to 20v
I get a MBLO yellow light.
Motors are not in freewheel mode.
Also tried with to raise Min Main Battery Voltage to 50v with same results.
Reading a post "Questions about regenerative braking"
"resistive braking (when you short the motor leads together(all energy is disipated as heat in the mosfets and motor windings)."
This seems to be the state the mosfets are in but I need them to be open, not shorted.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Motor driver free spin and user input
Ah. I believe you may have to have a non 0 PWM for this to work. Please try that and let me know.
Re: Motor driver free spin and user input
If I understand what you are asking me to try, this did not work.
Here are the steps I followed:
Power on board with 12v input power
motor is in freewheel.
Run pwm to 100%, leave it there
Go to setting page and raise Min Main Battery Voltage to 50v.
Motor stops but not in free wheel mode but in break mode.
Just to clarify how I am determining if in free wheel mode, I can spin my geared motor and it will coast and slow down in about 1-2 seconds, consistent with not having the motor plugged in to the roboclaw. If the break mode is engaged, the spun motor will feel much harder to spin and will stop almost immediately.
Here are the steps I followed:
Power on board with 12v input power
motor is in freewheel.
Run pwm to 100%, leave it there
Go to setting page and raise Min Main Battery Voltage to 50v.
Motor stops but not in free wheel mode but in break mode.
Just to clarify how I am determining if in free wheel mode, I can spin my geared motor and it will coast and slow down in about 1-2 seconds, consistent with not having the motor plugged in to the roboclaw. If the break mode is engaged, the spun motor will feel much harder to spin and will stop almost immediately.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Motor driver free spin and user input
Email support for the pre-release version of Ion Studio. this has new firmware which should let you do what I described.