Does your ZOOM:BIT sometimes wander off track, especially when it is going around the curve?
When ZOOM:BIT is turning the corner, its Maker Line sensor might be momentarily away
from the line (as shown below). When this happens, ZOOM:BIT gets confused because
in our code earlier we did not tell ZOOM:BIT what to do when no line is detected.
To prevent ZOOM:BIT from wandering
away, we need to teach ZOOM:BIT to
find its way back on track by turning in
the same direction (as before it loses
detection of the line) ... until the line is
detected again.
We can add a variable “position” to our
code for that purpose. Turn to
the next page to learn how
to improve our earlier code.
Summary of Contents for ZOOM:BIT
Page 1: ......
Page 3: ...Cheryl Ng SC Lim Suhana Oazmi ...
Page 4: ......
Page 5: ...CONTENT ...
Page 8: ......
Page 9: ...1 2 3 ...
Page 10: ...4 5 6 The wires should be facing inwards and the notch facing outwards ...
Page 11: ...0 1 7 Wire Connections Clamp the exposed wire lead and not the insulator ...
Page 12: ...8 9 10 ...
Page 13: ...0 1 0 3 11 13 Wire Connections 12 ...
Page 14: ...13 14 ...
Page 15: ...0 1 0 2 0 3 15 16 17 Wire Connections ...
Page 16: ...18 19 20 Wire Connections ...
Page 17: ...21 22 ...
Page 18: ...0 1 0 2 0 3 23 24 25 Wire Connections ...
Page 19: ...0 1 0 2 0 3 26 27 28 Wire Connections ...
Page 20: ...29 30 31 ...
Page 21: ...32 33 34 ...
Page 22: ......
Page 23: ...1 2 ...
Page 24: ...A B C D H I J K L E G F ...
Page 25: ...A B C D E F G H I J K L ...
Page 26: ...3 4 ...
Page 27: ...5 6 ...
Page 29: ...7 ...
Page 30: ...8 9 ...
Page 36: ...Here s a FUN challenge for you A B C D E M V W X Y Z ...
Page 37: ......
Page 43: ...You can also type keywords in the search box to find the blocks you need Do You Know ...
Page 47: ...Here s a FUN challenge for you It s a very familiar tune Can you guess what melody it is ...
Page 48: ......
Page 50: ...2 3 ...
Page 55: ......
Page 58: ...3 4 ...
Page 63: ......
Page 68: ......
Page 76: ......
Page 82: ...8 ...
Page 85: ......
Page 92: ...4 ...
Page 98: ......
Page 100: ...1 Exclude this music block if you re using micro bit V1 ...
Page 101: ...Next let s add the other modes To do that we re going to use functions 2 ...
Page 105: ...7 Replace with on logo down block if you re using micro bit V1 ...
Page 106: ...8 ...
Page 108: ......
Page 116: ......