# Changing dc motor speed

**URL:** <https://forum.xod.io/t/changing-dc-motor-speed/1863>\
**Category:** Uncategorized\
**Created:** [February 13, 2019, 11:56pm UTC](https://forum.xod.io/t/changing-dc-motor-speed/1863 "2019-02-13T23:56:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirkhallsz](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@dirkhallsz](https://forum.xod.io/u/dirkhallsz)\
**Post date:** [February 13, 2019, 11:56pm UTC](https://forum.xod.io/t/changing-dc-motor-speed/1863/1 "2019-02-13T23:56:07Z")

</div>

In this scenario i am trying to get a robot to drive in a square pattern.I am sure their is a better way but am new to this. I can’t figure out who to change motor speed. I can’t control how it turns it’s all or nothing.  
 ![xod](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/5b87cfda1cf74646dc08e829bcf856b69d271dd7.svg)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 14, 2019, 1:17am UTC](https://forum.xod.io/t/changing-dc-motor-speed/1863/2 "2019-02-14T01:17:48Z")

</div>

That depends on type of motor and how it is controlled. If you have just a regular motor with h- bridge controller, the standard solution for speed control is to use PWM node connected to a pin that supports it. 0 will be stop, 1 full speed, and 0.5 will be 1/2 speed.

---

<div class="post-metadata">

**Author:** ![dirkhallsz](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@dirkhallsz](https://forum.xod.io/u/dirkhallsz)\
**Post date:** [February 14, 2019, 3:31pm UTC](https://forum.xod.io/t/changing-dc-motor-speed/1863/3 "2019-02-14T15:31:49Z")

</div>

![xod](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/5b87cfda1cf74646dc08e829bcf856b69d271dd7.svg)
