Servo

A servo is a small motor that can be turned.
Information

Type : Output

Mode : Servo Library

Pins : 0-14

Tutorial : funduino

Library: You need to import the servo library to use this component!

Note: Use with delay as the rotation takes some time.

Image by funduino, CC-BY-SA.

Connection scheme

Scheme made with Fritzing.

Functions

Degree

Turn servo to 0 degree

Turn servo to 180 degree

This function will turn the servo to the degree specified in the function name.

void function_1_servo(){
servo_0.write(0);
function_1_servo();
}
  
servo_0.write(0);
  
void function_0_servo(){
servo_0.write(0);
state = 1;
}
  

Last modified April 6, 2022: added component translations (dd86b1f)