# EV3 robot won't go straight

**URL:** https://forum.makecode.com/t/ev3-robot-wont-go-straight/11033
**Category:** EV3
**Created:** [November 23, 2021, 12:28am UTC](https://forum.makecode.com/t/ev3-robot-wont-go-straight/11033 "2021-11-23T00:28:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TMan](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@TMan](https://forum.makecode.com/u/TMan)
#### Post date: [November 23, 2021, 12:28am UTC](https://forum.makecode.com/t/ev3-robot-wont-go-straight/11033/1 "2021-11-23T00:28:05Z")

</div>

I’ve installed the two large motors and fixed wheels with tires on them.

When I instruct the EV3 to go straigt ahead by coding  
**run lage motors at 100% for 3 rotations**

it doesn’t go straight, but moves along a wiggly line and will drift off to the left.  
Is this a bug?  
Or is there a way to tell the EV3 to go straight foreward?

Looking foreward to your advice

TMan

---

<div class="post-metadata">

### Author: ![QuirkyCort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/quirkycort/32/5312_2.png) [@QuirkyCort](https://forum.makecode.com/u/QuirkyCort)
#### Post date: [November 23, 2021, 5:02pm UTC](https://forum.makecode.com/t/ev3-robot-wont-go-straight/11033/2 "2021-11-23T17:02:03Z")

</div>

Because real robots don’t drive straight.

> **[Why Doesn’t My Robot Drive Straight?](http://www.legoengineering.com/why-doesnt-my-robot-drive-straight/)**
>
> It seems reasonable to expect that when you program a robot to drive straight, it should just work. And, of course, this is what the Move Steering block in the EV3 Software is designed to do. The M…

If you’re getting better accuracy using the Labview EV3 software or the EV3 classroom software, that may be because they synchronize the two motors. This help minimize one source of inaccuracy, and this can be particularly noticeable at high speed. I’m not sure if makecode synchronizes the two motors. If it doesn’t, you can write your own code to do so.

A better way would be to use feedback from sensors such as the gyro to control the robot’s heading.

---

<div class="post-metadata">

### Author: ![THEb0nny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theb0nny/32/3500_2.png) [@THEb0nny](https://forum.makecode.com/u/THEb0nny)
#### Post date: [November 29, 2021, 5:15pm UTC](https://forum.makecode.com/t/ev3-robot-wont-go-straight/11033/3 "2021-11-29T17:15:51Z")

</div>

Makecode uses a firmware interface to work with motors. So they are in sync. You have motor problems.
