88
Programmable robot with micro:bit
6.7 Create line tracing function
From the simple line tracing robot topic 6.5, we can make the better operation
with better code by making function.
There are 2 functions for this activity.
1.
Cross_Stop
- The operation of this function is looping to check both sensors status
and try to control the robot moving along the black line at all times. If the robot detects
the crossing line, it stops immediately.
Summary of Contents for iBIT RACER
Page 4: ...4 Programmable robot with micro bit...
Page 18: ...18 Programmable robot with micro bit...
Page 30: ...30 Programmable robot with micro bit Now the BIT Racer robot is ready for coding and fun...
Page 38: ...38 Programmable robot with micro bit...
Page 50: ......
Page 61: ...Programmable robot with micro bit 61...
Page 63: ...Programmable robot with micro bit 63...