Closed-loop DC motor control w RoboClaw

Questions about using encoders with the Roboclaw product line
Post Reply
alikazemian
Posts: 2
Joined: Mon Jul 10, 2017 7:58 pm
Closed-loop DC motor control w RoboClaw

Post by alikazemian »

Hi everyone.. I am a beginner in this field and I will be grateful if anyone can help me with this: I need to control a brushed DC motor with Arduino and RoboClaw. The motor has quadrature encoder. Since the load on the motor changes a lot, I need to have a closed loop system so that RPM remains constant over time. I did read the RoboClaw user manual and several other documents but still do not have any idea how to do it. I can only set the motor speed and read encoder using Arduino. Thanks in advance.
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Closed-loop DC motor control w RoboClaw

Post by Basicmicro Support »

You need to set the PID settings appropriately for your motors before you can use the speed or position commands. Use Ion Studio on a windows PC to do this.

Starting on page 80 and through page 84 of the User Manual(download the current version from the website downloads section), it explains encoders, how to wire them and how to tune them both automatically and manually.

Post Reply