Category:Servo Library

Servos Library

Purpose
The servos library includes functions for controlling servo motors on any digital pin of Pinguino boards. It's recommended to check functions documentation and update routines accordingly.

Compatibility/Compatible Boards
This library has been developed to support all 8 bits Pinguino versions up to now.


 * PINGUINO1220 - 14 pins available as servos.
 * PINGUINO1320 - 14 pins available as servos.
 * 18f14k22 - 18 pins available as servos.
 * PINGUINO2455 - 19 pins available as servos.
 * PINGUINO2550 - 19 pins available as servos.
 * PINGUINO25K50 - 19 pins available as servos.
 * CHRP3 - 19 pins available as servos.
 * PINGUINO26J50 - 18 pins available as servos.
 * PINGUINO47J53A - 32 pins available as servos.
 * PINGUINO47J53B - 32 pins available as servos.
 * PINGUINO4550 - 30 pins available as servos.
 * PINGUINO45K50 - 30 pins available as servos.
 * FREEJALDUINO - 19 pins available as servos.
 * PICUNO_EQUO - 14 pins available as servos.

Functions
servo.attach

servo.detach

servo.write

servo.read

servo.setMaximumPulse

servo.setMinimumPulse

Examples
http://wiki.pinguino.cc/index.php/Servo.attach#Example

http://wiki.pinguino.cc/index.php/Servo.detach#Example

http://wiki.pinguino.cc/index.php/Servo.write#Example

http://wiki.pinguino.cc/index.php/Servo.read#Example

http://wiki.pinguino.cc/index.php/Servo.setMaximumPulse#Example

http://wiki.pinguino.cc/index.php/Servo.setMinimumPulse#Example

Multiple Servos Control Example : http://wiki.pinguino.cc/index.php/Servos_Control_Example

Known Bugs/Limitations
A limitation for users is that this library uses TMR1 (Timer 1) on PIC. So this Timer cannot be used at the same time that this library.

Other Comments/Suggestions
Corrections, suggestions, and new documentation can be made directly on this Wiki