# Case 18: The Aerial Ladder Truck ## Purpose --- To make an aerial ladder truck. ![](./images/case-18-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) [Joystick bit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-joystick-bit-v2-kit?_pos=2&_sid=ace7fad9a&_ss=r) ## Materials Required --- ![](./images/case-18-02.png) Video link: [https://youtu.be/hWmRBTFC3cs](https://youtu.be/hWmRBTFC3cs) ## Bricks build-up --- ![](./images/step-case-18-01.png) ![](./images/step-case-18-02.png) ![](./images/step-case-18-03.png) ![](./images/step-case-18-04.png) ![](./images/step-case-18-05.png) ![](./images/step-case-18-06.png) ![](./images/step-case-18-07.png) ![](./images/step-case-18-08.png) ![](./images/step-case-18-09.png) ![](./images/step-case-18-10.png) ![](./images/step-case-18-11.png) ![](./images/step-case-18-12.png) ![](./images/step-case-18-13.png) ![](./images/step-case-18-14.png) ![](./images/step-case-18-15.png) ![](./images/step-case-18-16.png) ![](./images/step-case-18-17.png) ![](./images/step-case-18-18.png) ![](./images/step-case-18-19.png) ![](./images/step-case-18-20.png) ![](./images/step-case-18-21.png) ## Hardware Connection Connect two [motors](https://www.elecfreaks.com/geekservo-motor-2kg-compatible-with-lego.html) to M1 and M2, the [servo](https://www.elecfreaks.com/geekservo-2kg-360-degrees-compatible-with-lego.html) to S0 ports on [Wukong breakout board](https://www.elecfreaks.com/wukong-board-with-lego-holder-for-micro-bit.html). ![](./images/Wonder-Building-Kit-case-18-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) Search with joystickbit in the dialogue box to download it. ![](./images/case-08-04.png) ### Program For Joystick:bit: ![](./images/case-18-05.png) Link:[https://makecode.microbit.org/_f5DVqMKrtgYA](https://makecode.microbit.org/_f5DVqMKrtgYA) For the aerial ladder truck: ![](./images/case-18-06.png) Link:[https://makecode.microbit.org/_2vYd4UPpWf24](https://makecode.microbit.org/_2vYd4UPpWf24) ### Result Use the handle to control the ladder truck, the up and down, left and right directions of the rocker are to control the forward and backward, the left and right movement of the ladder truck, the C and D buttons are to control the lift of the ladder truck.