Turn a TT motor

Connect the two motor wires to the motor 1 slot on the Crickit.  It does not matter which color wire goes in the slot at this stage.

If you have installed the Cricket extension in MakeCode, you should have a green CRICKIT block group available.  Clicking on that group reveals various blocks for Crickit capabilities including those related to motor control.

Move a Motor Forward

Drag the crickit run motor block into the Forever loop

  • Change the speed by adjusting the percentage
  • The motor will run forever
  • If the motor is running the wrong way you can use a negative percentage

 

 

Turn a Servo

Locate the servo block on the Crickit.  Your servo will have a 3-pin connector with either brown or black, red, white or yellow wires.

Connect the servo to the pins next to the 1 on the servo block.  The lightest colored wire should be closest to the 1 printed on the Crickit with the darkest pointing inward.

If you have installed the Cricket extension in MakeCode, you should have a green CRICKIT block group available.  Clicking on that group reveals various blocks for Crickit capabilities including those related to servo control.

Moving the Servo via Buttons

Drag the input “on button pressed” block into your programming area

set button to A

Drag the crickit “set servo block” into the “on button” block

set servo to 1 and angle to 0′

Drag another input “on button pressed” block into your programming area

set button to B

Drag another crickit “set servo block” into the new “on button” block

set servo to 1 and angle to 180′