![Innovative iBIT RACER Скачать руководство пользователя страница 72](http://html1.mh-extra.com/html/innovative/ibit-racer/ibit-racer_activity-booklet_2063844072.webp)
72
Programmable robot with micro:bit
(4) Turn on the POWER switch of the iBIT:Racer robot.
(5) First, read value from the white area. Place the robot on the white area.
(5.1) Press button-A of micro:bit then
observe the micro:bit LED operation.
Now micro:bit reads the sensor’s
value from analog input ADC0 and shows on
its LED display and record it. The sensor data
from detecting the white surface are high.
The value is during more than 2000.
(5.2) Prss button-B of the micro:bit.
then observe the micro:bit LED operation
again.
micro:bit reads the sensor’s value
from analog input ADC1 and shows on its LED
display and record it.
(6) Next, read value from the black line. Stick the black tape on the floor.
Place the robot by the sensor position must over the black tape.
(6.1) Press button-A of micro:bit then
observe the micro:bit LED operation.
micro:bit reads the sensor’s value
from analog input ADC0 and shows on its LED
display and record it. The value must low
because t he sensor det ect s t he black
surface. It is during 0 to 4095. Normally the
black surface will be detect data lower 1000
(6.2) Press button-B of micro:bit. then
observe the micro:bit LED operation again.
micro:bit reads the sensor’s value
from analog input ADC1 and shows on its LED
display and record it.
(7) Get the white area and black line value to calculate the reference value.
For example, the white area value is 2500. The black line value is 500. The
reference value is (the white area value + The black line value) / 2. Result is (2500+500)/
2 = 1500.
Finally we get the example reference value of the black line detection is 1500.
Содержание iBIT RACER
Страница 4: ...4 Programmable robot with micro bit...
Страница 18: ...18 Programmable robot with micro bit...
Страница 30: ...30 Programmable robot with micro bit Now the BIT Racer robot is ready for coding and fun...
Страница 38: ...38 Programmable robot with micro bit...
Страница 50: ......
Страница 56: ...56 Programmable robot with micro bit Figure 5 2 How to make code for micro bit of the iBIT Racer Robot...
Страница 61: ...Programmable robot with micro bit 61...
Страница 63: ...Programmable robot with micro bit 63...
Страница 70: ...70 Programmable robot with micro bit...
Страница 91: ...Programmable robot with micro bit 91 Procedure 1 Create the program following the block code below...