Keyestudio Micro:bit Mini Smart Robot Car V2 Instructions Manual page 98

Table of Contents

Advertisement

Set the KEYES-2812-18R module to turn on 18 RGB LEDs in various colors. When micro:bit robot moves
1
forward, 18 RGB LEDs turn on blue light; robot moves backward, 18 RGB LEDs turn on purple light; robot stops,
18 RGB LEDs turn on red light.
Measure the distance between the robot and obstacles using an ultrasonic sensor.
2
When the measured distance is greater than or equal to 10cm, the micro:bit robot moves forward;
3
less than or equal to 6cm, robot will move backward; if greater than 6cm but less than 10cm, or greater than
30cm, robot will stop.
Source Code
if
72

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Micro:bit Mini Smart Robot Car V2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF