# Case 31: The Drawing Machine ## Purpose --- Make a drawing machine. ![](./images/Wonder-Building-Kit-case-31-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-31-01.png) ## Bricks build-up --- ![](./images/Wonder-Building-Kit-step-case-31-02.png) ![](./images/Wonder-Building-Kit-step-case-31-03.png) ![](./images/Wonder-Building-Kit-step-case-31-04.png) ![](./images/Wonder-Building-Kit-step-case-31-05.png) ![](./images/Wonder-Building-Kit-step-case-31-06.png) ![](./images/Wonder-Building-Kit-step-case-31-07.png) ![](./images/Wonder-Building-Kit-step-case-31-08.png) ![](./images/Wonder-Building-Kit-step-case-31-09.png) ![](./images/Wonder-Building-Kit-step-case-31-10.png) ![](./images/Wonder-Building-Kit-step-case-31-11.png) ![](./images/Wonder-Building-Kit-step-case-31-12.png) ![](./images/Wonder-Building-Kit-step-case-31-13.png) ![](./images/Wonder-Building-Kit-step-case-31-14.png) ## Hardware Connection Connect two [motors](https://www.elecfreaks.com/geekservo-motor-2kg-compatible-with-lego.html) to M1 and M2 ports on [Wukong breakout board](https://www.elecfreaks.com/wukong-board-with-lego-holder-for-micro-bit.html). ![](./images/Wonder-Building-Kit-case-31-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-31-04.png) Link:[https://makecode.microbit.org/_KRcLTWaab2sk](https://makecode.microbit.org/_KRcLTWaab2sk) ### Result Use the leather band to fix the pen on the gray double bolt parts, the drawing machine is placed on a piece of white paper, when the button A is pressed, the drawing machine begins to draw. By adjusting the speed of the motor M1 and motor M2, you can draw different patterns; when the button B is pressed, the drawing machine stops.