MSP430G Servo Tester Program

This program can be used with a Texas Instruments MSP-EXP430G2 Launchpad to create an encoder adjustable servo output that ranges from 1.0 ms to 2.5 ms and can be used to test hobby servos. The servo output is on port pin P1.2 and is adjustable in 0.020 ms (20 us) increments. Port pin P1.5 goes high when the servo output is at 1.5 ms. This allows an LED indicator to be connected as a visual aid.

Encoder connections are similar to this: Encoder Connections.

MAIN PROGRAM

PROGRAM INTERRUPTS

OUTPUT WAVEFORMS

1.0 ms SERVO WAVEFORM

 

1.5 ms SERVO WAVEFORM

 

2.5 ms SERVO WAVEFORM

 

SERVO TESTER

 

SERVO TESTER

 

//end post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.