Library for Pololu Maestro Servo Controller http://www.pololu.com/docs/0J40

Library for Pololu Maestro Servo Controller

Library docs: https://developer.mbed.org/users/kochansky/code/Maestro/docs/f374c7b60318/classMaestro.html

Example usage:

#include "mbed.h"
#include "Maestro.h"

Maestro maestro(PTC4,PTC3);

int main()
{
    maestro.setBaudRate(9600);

    // limit speed for each servo
    for (uint8_t i = 0; i < 17; i++) {
        maestro.setSpeed(i, 10);
    }

    while (true) {
       // set servo on channel 0 to 90 degrees
       maestro.setServoAngle(0, 90);
       wait(2);

        // set servo on channel 0 to 45 degrees
       maestro.setServoAngle(0, 45);
       wait(2);
    }
}

Serial commands based on manual: http://www.pololu.com/docs/0J40/5.e

Device pinout:

/media/uploads/kochansky/maestro.jpg

Changes

RevisionDateWhoCommit message
10:f374c7b60318 2014-08-26 kochansky bug fix default tip
9:a15ea85b40ca 2014-08-25 kochansky setSpeed and setAcceleration for all channels
8:c952ac46bd39 2014-01-07 kochansky working version
7:18a57f597ec4 2014-01-06 kochansky almost done!
6:1d8357775b6d 2014-01-06 kochansky fixed multiple servos
5:0fd491357750 2014-01-06 kochansky multiple servos
4:ef4d23c023ea 2014-01-05 kochansky setServoAngle
3:1c654893354d 2014-01-05 kochansky working
2:39356b408262 2014-01-05 kochansky serial init
1:c14b79e3f39b 2014-01-05 kochansky setTarget
0:5c8cc5bd6403 2014-01-04 kochansky initial commit