# Case 24: The Top Emitter ## Purpose --- Make a top emitter. ![](./images/Wonder-Building-Kit-case-24-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-24-01.png) ## Bricks build-up --- ![](./images/Wonder-Building-Kit-step-case-24-02.png) ![](./images/Wonder-Building-Kit-step-case-24-03.png) ![](./images/Wonder-Building-Kit-step-case-24-04.png) ![](./images/Wonder-Building-Kit-step-case-24-05.png) ![](./images/Wonder-Building-Kit-step-case-24-06.png) ![](./images/Wonder-Building-Kit-step-case-24-07.png) ![](./images/Wonder-Building-Kit-step-case-24-08.png) ![](./images/Wonder-Building-Kit-step-case-24-09.png) ![](./images/Wonder-Building-Kit-step-case-24-10.png) ![](./images/Wonder-Building-Kit-step-case-24-11.png) ![](./images/Wonder-Building-Kit-step-case-24-12.png) ![](./images/Wonder-Building-Kit-step-case-24-13.png) ![](./images/Wonder-Building-Kit-step-case-24-14.png) ![](./images/Wonder-Building-Kit-step-case-24-15.png) ![](./images/Wonder-Building-Kit-step-case-24-16.png) ![](./images/Wonder-Building-Kit-step-case-24-17.png) ![](./images/Wonder-Building-Kit-step-case-24-18.png) ![](./images/Wonder-Building-Kit-step-case-24-19.png) ![](./images/Wonder-Building-Kit-step-case-24-20.png) ![](./images/Wonder-Building-Kit-step-case-24-21.png) ![](./images/Wonder-Building-Kit-step-case-24-22.png) ![](./images/Wonder-Building-Kit-step-case-24-23.png) ![](./images/Wonder-Building-Kit-step-case-24-24.png) ![](./images/Wonder-Building-Kit-step-case-24-25.png) ![](./images/Wonder-Building-Kit-step-case-24-26.png) ![](./images/Wonder-Building-Kit-step-case-24-27.png) ![](./images/Wonder-Building-Kit-step-case-24-28.png) ![](./images/Wonder-Building-Kit-step-case-24-29.png) ![](./images/Wonder-Building-Kit-step-case-24-30.png) ![](./images/Wonder-Building-Kit-step-case-24-31.png) ## Hardware Connection Connect a [motor](https://www.elecfreaks.com/geekservo-motor-2kg-compatible-with-lego.html) to M1, and the [servo](https://www.elecfreaks.com/geekservo-2kg-360-degrees-compatible-with-lego.html) to S1 ports on [Wukong breakout board](https://www.elecfreaks.com/wukong-board-with-lego-holder-for-micro-bit.html). ![](./images/Wonder-Building-Kit-case-24-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-24-04.png) Link:[https://makecode.microbit.org/_Vw1agAfMAccF](https://makecode.microbit.org/_Vw1agAfMAccF) ### Result Place the gyro in the acceleration position, when the button A is pressed (long press) , the bottom baffle will support the small gyro on the baffle to accelerate the rotation; release the A button, the bottom baffle will move to the right, and the gyro falls off, then the motor will stop rotating.