# Case 28:The Wiper ## Purpose --- Make a wiper. ![](./images/Wonder-Building-Kit-case-28-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/Wonder-Building-Kit-step-case-28-01.png) ## Bricks build-up --- ![](./images/Wonder-Building-Kit-step-case-28-02.png) ![](./images/Wonder-Building-Kit-step-case-28-03.png) ![](./images/Wonder-Building-Kit-step-case-28-04.png) ![](./images/Wonder-Building-Kit-step-case-28-05.png) ![](./images/Wonder-Building-Kit-step-case-28-06.png) ![](./images/Wonder-Building-Kit-step-case-28-07.png) ![](./images/Wonder-Building-Kit-step-case-28-08.png) ![](./images/Wonder-Building-Kit-step-case-28-09.png) ![](./images/Wonder-Building-Kit-step-case-28-10.png) ![](./images/Wonder-Building-Kit-step-case-28-11.png) ![](./images/Wonder-Building-Kit-step-case-28-12.png) ![](./images/Wonder-Building-Kit-step-case-28-13.png) ![](./images/Wonder-Building-Kit-step-case-28-14.png) ![](./images/Wonder-Building-Kit-step-case-28-15.png) ![](./images/Wonder-Building-Kit-step-case-28-16.png) ![](./images/Wonder-Building-Kit-step-case-28-17.png) ![](./images/Wonder-Building-Kit-step-case-28-18.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-28-06.png) ## Software Platform --- [MakeCode](https://makecode.microbit.org/) ## Coding --- ### Add extensions Click "Advanced" in the MakeCode to see more choices. ![](./images/Wonder-Building-Kit-case-21-02.png) Search with Wukong in the dialogue box to download it. ![](./images/Wonder-Building-Kit-case-21-03.png) ### Program ![](./images/Wonder-Building-Kit-case-28-04.png) Link:[https://makecode.microbit.org/_5RT3t9DX6Lv0](https://makecode.microbit.org/_5RT3t9DX6Lv0) ### Result When the micro:bit is powering on, it displays a heart icon. When button A is pressed, the wiper starts driving; when button A is pressed again, the wiper accelerates; and when button B is pressed, the wiper decelerates.