Share 'Controlling Two RC Servos Using a MSP430G2231'
The following is code to control two RC servos using the timers on a MSP430G2231.
The only interrupt occurs when the timer counter overflows (approximately every 16ms).
Simply set Servo1Abs or Servo2Abs to the desired servo position // 2000 - 10000
#define SERVO_CENTER 5625 // Measure by adjusting until scope shows 1500us#define SERVO_MIN 1875 #define SERVO_MAX 9375
You can share this blog post in two ways…
Share this link:
Send it with your computer's email program: Email this