# Case 05: Colorful Car ## Purpose --- - Build a colorful Wonder Rugged Kit with the rainbow LEDs. ## Products Link [Wonder Rugged Car Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-wonder-rugged-car-kit-without-micro-bit-board) ## Background Knowledge ------ ## Software ------ [MicroSoft makecode](https://makecode.microbit.org/#) ## Program ------ ### Step 1 Click "Advanced" in the drawer of MakeCode to see more choices. ![](./images/Mecanum_wheel_car_kit_case_01_01.png) For programming, we need to add a package. Click "Extensions" at the bottom of the drawer and then search "Wukong" in the dialogue box to download it. ![](./images/Mecanum_wheel_car_kit_case_01_02.png) ***Note:*** If you get a warning indicating some packages will be removed because of incompatibility issues, you can follow the prompts or create a new project in the menu. ### Step 2 Click `Wukong` to choose `mecanum ` block. ![](./images/Mecanum_wheel_car_kit_case_01_03.png) ### Step 3 Drag `mecanum` and `set light mode` into `on start` block and set the connection for servos accordingly, set the light mode as breath and initialize the LEDs. ![](./images/Mecanum_wheel_car_kit_case_05_05.png) ### Step 4 Set the car to move forward with the variable `i` ascending by 5; set the LEDs to show rainbow with the parameter in `i`. ![](./images/Mecanum_wheel_car_kit_case_05_06.png) ### Program Links: [https://makecode.microbit.org/_icqM2MK7WEyM](https://makecode.microbit.org/_icqM2MK7WEyM) You can also download it directly:
### Result The car moves forward after starting with the light mode in breath and rainbow LEDs changing color. ## Exploration ------ ## FAQ ------ ## Relevant Files ---