# Case15: Seeking the Light ## Purpose --- - Programme to make the [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) seek the light source automatically. ## Materials --- - 1 x [Cutebot Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) ## Software Platform --- [MicroSoft makecode](https://makecode.microbit.org/#) ## Programming --- ### Step 1 - Click "Advanced" in the MakeCode drawer to see more choices. ![](./images/cutebot-pk-1.png) - We need to add a package for programming, click "Extensions" on the bottom of the drawer and search with `Cutebot`in the dialogue box to download it. ![](./images/cutebot-pk-11.png) ***Note:*** If you met a tip indicating the codebase will be deleted due to incompatibility, you may continue as the tips tell or build a new project. ### Step 2 - Judge the luminous intensity with the block "light level " in "forever" ; if the value is below the setting point, set the [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) turn left at its full speed; Or it moves forward at its full speed. ![](./images/case_15_01.png) ### Link Link: [https://makecode.microbit.org/_3xCUWo1iMc5Y](https://makecode.microbit.org/_3xCUWo1iMc5Y) You can also download it directly below:
## Result --- - The [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) spins if there is no light being detected or it drives forward to it at its full speed. ## Exploration --- ## FAQ --- ## Relevant Files ---