Programmable robot with micro:bit
67
5.9 Servo motor control example
This topic demonstrates the servo motor position control.
(1) Create the program following the block code below.
(2) Connect the iBIT:Racer robot with computer’s USB port.
(3) Download the code into micro:bit of the iBIT:Racer robot. Disconnect the
microUSB cable.
(4) Connect a servo motor to Servo
Output-1. Insert the servo motor’s horn. Fix it
by tightening the servo motor’s screw.
(5) Turn on the POWER switch of the
iBIT:Racer robot.
(6) Press button-A of micro:bit then
observe the servo motor operation.
Servo motor drive its shaft and
horn to 150 degree angle position from
starting point.
(7) Press button-B of the micro:bit.
Observe the servo motor operation.
Servo motor drive its shaft and
horn to 10 degree angle position from
starting point.
Caution :
Do not set the angle value down to 0
and reach to 180 for preventing the servo
motor damage.
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...