User Manual
MakeCode DC Motors
Zoom! Cricket is a great motor driver platform and with
MakeCode, it's super easy to use. Just connect to the
Crickit Motor block.
The Crickit with Circuit Playground Express is shown first
at left.
Note the GND terminal is not usually used with motors.
And using motors with micro:bit is just as easy.
Note: the micro:bit is not shown in the diagram at left for
clarity, you'll need to plug one into the Crickit slot to
have everything work.
You can drive two separate DC motors, so lets go ahead and get right to it!
DC motors are controlled by 4 PWM (adjustable speed) output pins, the 4 pins let you control speed
and
direction. And
we'll use our CRICKIT Motors block set to help us manage the speed and direction for us, making it very easy to control
motors
Note that each DC motor is a little different, so just because you have two at the same speed does not mean they'll
rotate at the
exact
same speed! Some tweaking may be required
© Adafruit Industries
https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-
construction-kit
Page 64 of 201










