# KS4030 shield with Mecanum I need code to get the 4 motors to work

**URL:** <https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980>\
**Category:** micro:bit\
**Created:** [August 19, 2022, 4:23pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980 "2022-08-19T16:23:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuzzynoodlebug](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fuzzynoodlebug/32/6688_2.png) [@fuzzynoodlebug](https://forum.makecode.com/u/fuzzynoodlebug)\
**Post date:** [August 19, 2022, 4:23pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/1 "2022-08-19T16:23:58Z")

</div>

I purchased the KS4031 the Keyestudio 4WD Mecanum Robot Car for Microbit.

I cannot get any of the 4 motors to work, I know it is the code.

Does anyone have any code for Microbit that I can start with.

Please HELP ME…!

Thanks Mike

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [August 22, 2022, 2:55pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/2 "2022-08-22T14:55:03Z")

</div>

> [@fuzzynoodlebug](#):
>
> Keyestudio 4WD Mecanum Robot Car

Hi @fuzzynoodlebug,

Are you following the MakeCode guide: [https://www.dropbox.com/sh/ahyt9l1y5446o3v/AABp\_qA-Plu\_9fraX2WINaxSa/2.%20Makecode%20Tutorial?dl=0&preview=Makecode-KS4031+Keyestudio&nbsp;4WD&nbsp;Mecanum&nbsp;Robot&nbsp;Car.pdf&subfolder\_nav\_tracking=1](https://www.dropbox.com/sh/ahyt9l1y5446o3v/AABp_qA-Plu_9fraX2WINaxSa/2.%20Makecode%20Tutorial?dl=0&preview=Makecode-KS4031+Keyestudio%C2%A04WD%C2%A0Mecanum%C2%A0Robot%C2%A0Car.pdf&subfolder_nav_tracking=1) ?

It might help if you provide a little more information. Can you share a link to your program?

I don’t have this robot to do any testing with, but here’s a very short program that I think will make it go forward: [https://makecode.microbit.org/\_E6fWfphXDgsK](https://makecode.microbit.org/_E6fWfphXDgsK)

Bill

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [December 29, 2022, 5:36pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/3 "2022-12-29T17:36:56Z")

</div>

Can you show me a code that i can control the KS4032 with its ir remote  
Thank you

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [December 29, 2022, 11:50pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/4 "2022-12-29T23:50:17Z")

</div>

Hi @Andrei-2022 ,

I don’t have this robot and can’t actually test it, but here’s an example that show some of the things you need to do: [https://makecode.microbit.org/\_HqCHXLgsjVos](https://makecode.microbit.org/_HqCHXLgsjVos)

You may need to update the `on start`’s `connect IR receiver at` to be the pin your IR receiver is connected to.

Bill

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [December 30, 2022, 6:03pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/5 "2022-12-30T18:03:09Z")

</div>

Can you edit this and Ill put the things i want in grey.  
I want controls for the ir remote to control the ks4032  
ultrasonic  
left and right line tracking  
Please edit my code with adding on the things i need  
Thank You  
You are a big help right now

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [December 30, 2022, 6:03pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/6 "2022-12-30T18:03:12Z")

</div>

Please also fix the broken extension problem  
Thank you

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [December 30, 2022, 6:03pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/7 "2022-12-30T18:03:39Z")

</div>

[My Micro bit file](https://makecode.microbit.org/_5WAAK3H8PL2M)

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [January 3, 2023, 6:20pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/8 "2023-01-03T18:20:27Z")

</div>

Hi @Andrei-2022 ,

If the extension is broken in some way, please contact Keystudio ([https://www.keyestudio.com/](https://www.keyestudio.com/) has a “Message us” option or open an “Issue” on the extension’s code at: [https://github.com/keyestudio2019/mecanum\_robot/issues](https://github.com/keyestudio2019/mecanum_robot/issues))

I don’t have a KS4031 to test anything. You’ll have to do the remaining work yourself. It looks like the manual shows examples of how to use the ultrasonic sensor, do line tracking, and use the remote. Take a look at: [https://www.dropbox.com/sh/ahyt9l1y5446o3v/AABp\_qA-Plu\_9fraX2WINaxSa/2.%20Makecode%20Tutorial?dl=0&preview=Makecode-KS4031+Keyestudio&nbsp;4WD&nbsp;Mecanum&nbsp;Robot&nbsp;Car.pdf&subfolder\_nav\_tracking=1](https://www.dropbox.com/sh/ahyt9l1y5446o3v/AABp_qA-Plu_9fraX2WINaxSa/2.%20Makecode%20Tutorial?dl=0&preview=Makecode-KS4031+Keyestudio%C2%A04WD%C2%A0Mecanum%C2%A0Robot%C2%A0Car.pdf&subfolder_nav_tracking=1)

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [January 10, 2023, 12:59am UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/9 "2023-01-10T00:59:35Z")

</div>

I have tried already. Nothing works

---

<div class="post-metadata">

**Author:** ![Andrei-2022](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrei-2022/32/7422_2.png) [@Andrei-2022](https://forum.makecode.com/u/Andrei-2022)\
**Post date:** [January 17, 2023, 5:23pm UTC](https://forum.makecode.com/t/ks4030-shield-with-mecanum-i-need-code-to-get-the-4-motors-to-work/14980/10 "2023-01-17T17:23:41Z")

</div>

Do you have any extensions that make the ks4032 or any robot mobe left and right
