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
Added by eric gregori on July 12, 2013 at 5:38pm — No Comments
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
Added by eric gregori on June 24, 2013 at 12:04am — No Comments
Controlling the A2SCB or A2MCB from Android is easy done by using the Android AudioTrack class ( http://developer.android.com/reference/android/media/AudioTrack.html ). Simply create…Continue
Added by eric gregori on June 19, 2013 at 12:56pm — No Comments
My passion is robotics and computer vision. However, since becoming a father 12 years ago, getting kids excited about robotics has also become one of my passions. I discovered Catroid while searching for a programming language for my youngest son, who will be turning 8 this fall, to use on his Nexus 7. It's amazing how quickly kids…Continue
Added by eric gregori on June 9, 2013 at 4:30pm — No Comments
The EMGRobotics 2 Channel Smartphone/Tablet Servo Controller (A2SCB_M/S) connects your Android/iOS smartphone or tablet to multiple RC servos using the headphone jack. A DSP algorithm running in the servo controller decodes the audio tones generated by the smartphone/tablet and translates the tones into servo control signals.
Any device that can generate audio tones…Continue
The EMGRobotics Audio Dual Servo Controller Board connects your iPhone/iPad or Android device to four servos (two servos for the left channel and two servos for the right channel) via the headphone jack. …Continue
Added by eric gregori on March 14, 2013 at 11:48pm — No Comments
Yesterday Avnet released a board that will fill a huge hole in the hobbyist robotics community. The Avnet FinBoard or Embedded Vision Starter Kit ( http://news.avnet.com/index.php?s=20295&item=126687 ) has a built-in camera connected to a dual-core 500Mhz BlackFin…Continue
Added by eric gregori on February 27, 2013 at 12:00am — No Comments
The EMGRobotics Robot Controller for Android is a computer vision based smartphone application design to work with the EMGRobotics Audio Dual Motor Controller Board (ADMCB) and the EMGRobotics Audio Dual Servo Controller Board (ADSCB). The ADMCB and the…Continue
Added by eric gregori on February 25, 2013 at 3:13am — No Comments
To control the EMGRobotics Audio Dual Motor Controller Board (ADMCB ) and the EMGRobotics Audio Dual Servo Controller Board (ADSCB) you need to generate tones between the frequencies of 1000hz to 10000hz.
This is easily done in Android using the AudioTrack class. The AudioTrack class lets you play pcm data from a memory buffer. PCM is un-encoded audio. It is very easy to produce pure tones in PCM using…Continue
Added by eric gregori on February 18, 2013 at 8:26am — No Comments
This project can be built for around $50.00.
The EMGRobotics Smartphone Tank roams your desk using computer vision software running on your phone
The Smartphone based robot tank…Continue
Added by eric gregori on January 25, 2013 at 9:30pm — No Comments
As a roboticist, the modern day smartphone gets me very excited. The combination of multi-core high performance CPU's, high tech sensors, powerful cameras, and free development tools make the modern smartphone a perfect robot brain.
Sensor in a Modern…Continue
The Samsung Galaxy Camera (EK-GC100) is a 1.4Ghz Quad-Core portable…Continue
Controlling RC servos using a smartphone or tablet has never been easier (or cheaper ) than with the EMGRobotics Audio Servo Controller ( ASC ). Simply insert the ASC's 3.5mm male audio plug into your smartphone, tablet, or PC and start controlling up to two servos with digital precision.
You can purchase your ASC at www.EMGRobotics.com for only $10.95 (or $12.95 with optional battery holder and switch).…Continue
Added by eric gregori on November 25, 2012 at 7:09pm — No Comments