Questo sito non è ne attivo ne aggiornato, specialmente la pagina del download รจ ferma a 5 vesioni fa , utilizzate il sito in inglese finchè questo sito non sarà annunciato ufficialmente

Reference   Language (extended) | Libraries | Comparison | Board

Servo library

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 & 10. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. They are controlled by a high-going pulse of between 1 and 2 ms followed by an approximately 19 ms low time.

This servo library uses built in hardware timers associated with pins 9 & 10 so it will run transparent to other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Circuit

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board.

Functions

Examples

Torna alla pagina principale

Puoi postare correzioni, suggerimenti, e nuova documentazione nel Forum.

I contenuti della guida di riferimento sono distribiuti con licenza Creative Commons Attribution-ShareAlike 3.0 License. Gli esempi di codice nella guida di riferimento sono di pubblico dominio.