Page 111 - Robo_Genius_V1.0_flipbook_C5
P. 111
in an automated shading system, a light sensor detects how much sunlight is
present. If it gets too bright, the micro:bit can signal the servo motor to lower
the shades, blocking the sunlight and keeping the room cool. As the light level
drops, the micro:bit can tell the servo motor to raise the shades back up.
The micro:bit reads the data from the light sensor, processes it, and then controls
the servo motor based on that information. This system is smart because it
adjusts automatically, making life easier and saving energy by controlling the
shades without any manual effort.
Step 1 Go to Microsoft make code https://makecode.microbit.org/
Step 2 Click on new projects.
Click on new
project
Step 3 Create a project.
Create a project
Basic Motor Control and Sensors 109

