# Case 15: The Walking Robot ## Purpose --- To make a walking robot. ![](./images/case-15-01.png) ## Link: --- [micro:bit Wonder Building Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-32-in-1-wonder-building-kit-without-micro-bit-board?_pos=5&_sid=2094afd2f&_ss=r) ## Materials Required --- ![](./images/case-15-02.png) Video link: [https://youtu.be/ohn8NMhKybw](https://youtu.be/ohn8NMhKybw) ## Bricks build-up --- ![](./images/step-case-15-01.png) ![](./images/step-case-15-02.png) ![](./images/step-case-15-03.png) ![](./images/step-case-15-04.png) ![](./images/step-case-15-05.png) ![](./images/step-case-15-06.png) ![](./images/step-case-15-07.png) ![](./images/step-case-15-08.png) ![](./images/step-case-15-09.png) ![](./images/step-case-15-10.png) ![](./images/step-case-15-11.png) ![](./images/step-case-15-12.png) ![](./images/step-case-15-13.png) ![](./images/step-case-15-14.png) ![](./images/step-case-15-15.png) ![](./images/step-case-15-16.png) ![](./images/step-case-15-17.png) ![](./images/step-case-15-18.png) ![](./images/step-case-15-19.png) ![](./images/step-case-15-20.png) ![](./images/step-case-15-21.png) ![](./images/step-case-15-22.png) ![](./images/step-case-15-23.png) ![](./images/step-case-15-24.png) ![](./images/step-case-15-25.png) ![](./images/step-case-15-26.png) ![](./images/step-case-15-27.png) ![](./images/step-case-15-28.png) ![](./images/step-case-15-29.png) ## Hardware Connection Connect a [motor](https://www.elecfreaks.com/geekservo-motor-2kg-compatible-with-lego.html) to M1 port on [Wukong breakout board](https://www.elecfreaks.com/wukong-board-with-lego-holder-for-micro-bit.html). ![](./images/Wonder-Building-Kit-case-15-06.png) ## Software Platform --- [MakeCode](https://makecode.microbit.org/) ## Coding --- ### Add extensions Click "Advanced" in the MakeCode to see more choices. ![](./images/case-01-03.png) Search with Wukong in the dialogue box to download it. ![](./images/case-01-04.png) ### Program ![](./images/case-06-05.png) Link:[https://makecode.microbit.org/_b5D9689YX8R3](https://makecode.microbit.org/_b5D9689YX8R3) ### Result The robot moves forward when button A is pressed, it moves backward when button B is pressed, and it stops moving when button A+B is pressed.