Control a servo motor

Control a servo motor

Physical computing - Master the challenges and experience how to connect the physical and virtual world

Medium

30 mins

from 10 years on

1What you need
  • a servo motor
  • 3 wires
2Challenge
####Connect a servo motor to the Calliope mini. Let it rotate back and forth regularly.
3Solution
###Code
Note: To control motors you need a motor driver and an external power supply. Very small servos can work without it.

Electronics

red cable - VCC BATT (+)
black/brown cable - GND (-)
yellow/orange cable - analog pin P1

This text as well as the image is published under a CC BY-SA 4.0 DE license popup: yes. It was originally published in German popup: yes by phzh popup: yes and translated into English by the Calliope team.