# Roboclaw :adjust on the fly

**URL:** <https://forum.core-electronics.com.au/t/roboclaw-adjust-on-the-fly/6433>\
**Category:** Uncategorized\
**Created:** [20 September 2019 00:09 UTC](https://forum.core-electronics.com.au/t/roboclaw-adjust-on-the-fly/6433 "2019-09-20T00:09:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip58595](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Phillip58595](https://forum.core-electronics.com.au/u/Phillip58595)\
**Post date:** [20 September 2019 00:09 UTC](https://forum.core-electronics.com.au/t/roboclaw-adjust-on-the-fly/6433/1 "2019-09-20T00:09:30Z")

</div>

Hello, I am using a Roboclaw 60 amp solo to steer a small vehicle. I use 2 potentiometers to create closed loop analog control of the wheels. The system works fine. However, the ideal settings for the controller vary with vehicle speed. Normally to test the vehicle I note the speed and then observe and then stop the vehicle and adjust the controller settings to suit that speed. etc etc.  
In this way I have experimentally observed the settings required for various speeds.  
Now to the question: The settings are written to the controller each time, but is it possible to alter the settings with a speed signal [normally a pulse train driven off the transmission etc] so that the controller settings automatically adjust as vehicle speeds vary?  
The settings that I would potentially need to adjust with vehicle speed is 1] the maximum amperage available to the steer motor and/or 2] the maximum acceleration available for the steer motor.  
I assume that if this is possible it will involve code writing in a microprocessor connected to Roboclaw which I would then need to learn to do.  
But before going further " Is it possible" to do this?  
Thanks Phillip

---

<div class="post-metadata">

**Author:** ![Robin57159](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Robin57159](https://forum.core-electronics.com.au/u/Robin57159)\
**Post date:** [20 September 2019 03:39 UTC](https://forum.core-electronics.com.au/t/roboclaw-adjust-on-the-fly/6433/2 "2019-09-20T03:39:40Z")

</div>

Yes it is possible to adjust the speed on the fly. There is even an Arduino library available to do this. Read the docs for more information.

> **[Pololu - RoboClaw 2x60A Motor Controller (V6)](https://www.pololu.com/product/3289)**
>
> The RoboClaw motor controllers from Basicmicro (formerly Ion Motion Control) can control a pair of brushed DC motors using USB serial, TTL serial, RC, or analog inputs. Integrated dual quadrature decoders make it easy to create a closed-loop speed...

---

<div class="post-metadata">

**Author:** ![Phillip58595](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Phillip58595](https://forum.core-electronics.com.au/u/Phillip58595)\
**Post date:** [1 October 2019 06:10 UTC](https://forum.core-electronics.com.au/t/roboclaw-adjust-on-the-fly/6433/3 "2019-10-01T06:10:04Z")

</div>

just to tidy this up. " there is no Arduino library available to  
do what I described" I feel confident about this. It is possible to  
do what I describe in my post but it requires writing code which has  
been described as " will have challenges regarding code " P.
