EasyManua.ls Logo

Kitronik BBC Micro Bit move Mini Mk2 - Page 16

Kitronik BBC Micro Bit move Mini Mk2
32 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
16
STEP 3: Bring up MakeCode Blocks Editor (makecode.microbit.org).
STEP 4: Create the following code.
When button B is pressed both servos should turn clockwise (looking
from the wheel side).
When button A is pressed, both servos should turn anti-clockwise
(looking from the wheel side).
When buttons A + B are pressed the servos should stop turning.
UploadDownload
If they do not then the centre point trimmer will need adjustment. On
the bottom of the servo, there is a small hole. This is used to access the
trimmer.
STEP 5:
STEP 6: Test out the buttons.
SPEED:
DEGREES: