# Servo SG90 (180° / 360°)  ## Introduction The SG90 servo motor is a tiny and lightweight motor which can perform different angle adjustment (180° servo) or rotation control (360° servo).
## The principle
The Servo motor operate base on the PWM signal, the action of servo motor will following the input signal's duty cycle.
The SG90 designed duty cycle (pulse length) is 500µs to 2500µs, during this range, the duty cycle will be representing different meaning.

If have "green variable resistor", that is 180° servo.  Otherwise, that is 360° servo.  ## Quick to Start/Sample * Connect the sensor to development board (direct plugin or using wire) 
* Open Makecode, using the [https://github.com/smarthon/pxt-smarthome](https://github.com/smarthon/pxt-smarthome) PXT

For 180° Servo, you may control that turn to specific degree position * Use the `Turn 180° Servo to 135 degree at P1` to make it to turn to 135° position  For 360° Servo, you may control that turning in specific direction and the rotation speed * Use the `Turn 360° Servo with clockwise direction speed Level 3 at P1` to make it rotate at max speed and clockwise direction.  ## Result If you using 180° servo with the corresponding program, after the button A is pressed, the servo will turn to the 135° position.  If you using 360° servo with the corresponding program, after the button B is pressed, the servo will keep rotate in clockwise direction with max speed.  ## Datasheet [SG90](https://content.instructables.com/ORIG/FA2/O1SS/J7ARLNBW/FA2O1SSJ7ARLNBW.pdf)