eric gregori has not received any gifts yet
Normally OpenCV for Android displays the preview in landscape mode. For STEMbot1 and STEMbot2 I needed to display the preview in a portrait mode.
Here is the code I came up with.
In your manifest file change the orientation from landscape to portrait.
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
The EMGRobotics Quad RC Servo Controller application is an Android based 4-axis motion controller designed to run on your smartphone or tablet. Simply plug an A2SCB_ML (available from EMGRobotics.com) into the headphone jack of the smartphone or tablet and…Continue