The Climate Action Kit includes two types of servo motors: the Continuous Servo Motor and the Positional Servo Motor.

While each motor functions differently, they share a key distinction from the other components in the kit. Most sensors are “smart” components, meaning they are automatically recognized and addressed by the other hardware and software because there’s only one of each type. However, when it comes to the servo motors, you can connect multiple at once. This means you need to specify which port on the breakout board each motor is connected to, ensuring the code controls the correct motor.

Watch the video below for a complete tutorial on using both types of servo motors in your projects.

Servo Motors Tutorial | Getting Started

IMPORTANT NOTES

  • Always double check your project and code to ensure you’re coding the same ‘Left’, ‘Middle’, or ‘Right’ port as you’re physically connected to on the Breakout Board.
  • Use the virtual simulators in MakeCode to make sure ‘leftServo’ = ‘Left’ and so on. This ensures that the code you’ve written for ‘leftServo’ is being sent to the physical ‘Left’ port on the Breakout Board.
  • If the ports ever become mixed up, click the ‘leftServo’ value on the virtual simulators to manually assign what code is being sent to what physical port.