Case 02 - A Light-controlled Dog
Contents
5. Case 02 - A Light-controlled Dog#
5.1. Purpose#
Program to make XGO go forward in strong light and get down if the light gets weak.
5.2. Materials Required#
1 × micro:bit XGO Robot Kit
5.3. Hardware Connections#
Connect the micro:bit with the computer.
5.4. Software Platform#
5.5. Program#
Add the XGO extensions.
5.6. Program#
Code#
Link: A Light-controlled Dog
You can also download it directly below:
5.7. FAQ#
If XGO doesn’t move, please try adjusting the light intensity.
5.8. Exploration#
How to give more commands to XGO with light intensity?