# Case 02 - A Light-controlled Dog ## Purpose --- Program to make XGO go forward in strong light and get down if the light gets weak. ## Materials Required --- 1 × micro:bit XGO Robot Kit ## Hardware Connections --- Connect the micro:bit with the computer.  ## Software Platform --- [Makecode](https://makecode.microbit.org/#)  ## Program --- Add the XGO extensions.     ## Program --- #### Code  Link: [A Light-controlled Dog](https://makecode.microbit.org/_YVJe8eefmbqo) You can also download it directly below:
## FAQ --- If XGO doesn't move, please try adjusting the light intensity. ## Exploration --- How to give more commands to XGO with light intensity?