# Setting speed of Motor module in python library

**URL:** <https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656>\
**Category:** Flotilla\
**Created:** [July 13, 2016, 2:58pm UTC](https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656 "2016-07-13T14:58:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby500](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bobby500](https://forums.pimoroni.com/u/bobby500)\
**Post date:** [July 13, 2016, 2:58pm UTC](https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656/1 "2016-07-13T14:58:13Z")

</div>

Which function do i use to set the speed of the motor module in flotilla? what is the range? -10 to 10 or -100 to 100

Thanks in advance

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [July 14, 2016, 10:14am UTC](https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656/3 "2016-07-14T10:14:05Z")

</div>

Ahoy, the motor is set using the `set_speed` method which was broken until @RogueM fixed it today, actually.

The method takes a value from -63 to +63. Slightly odd, but this is the range as understood by the motor driver chip.

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [July 14, 2016, 10:37am UTC](https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656/4 "2016-07-14T10:37:20Z")

</div>

To get the fix, you should run:

```
curl -sS get.pimoroni.com/flotilla | bash

```

This will ‘refresh’ the git clone initially made by the rockpool (or flotilla) installer if that is what you used initially. If you installed the API by your own method, then ignore, you obviously know enough to roll the change on your system!

---

<div class="post-metadata">

**Author:** ![bobby500](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bobby500](https://forums.pimoroni.com/u/bobby500)\
**Post date:** [July 14, 2016, 1:30pm UTC](https://forums.pimoroni.com/t/setting-speed-of-motor-module-in-python-library/2656/5 "2016-07-14T13:30:26Z")

</div>

hkank you for helping!
