This demonstration shows how to control the Desktop RoboTurret to track faces and objects via PC using data from a webcam using the RoboRealm software.
Download the Sketch
A .zip file with all of the RoboTurret Sketches can be found here.
Unzip the file and you will have a folder called
We recommend that you create a folder
RobotGeek Sketches in your Arduino user folder and put the
desktopRoboTurretV3-master in there. The rest of this guide will assume you've placed your sketches in the following folder.
Arduino -> RobotGeek Sketches -> desktopRoboTurretV3-master
This will be the same 'Arduino' folder you put your libraries and robotgeek tools in, and NOT the folder where the Arduino application is.
Edge programs and firmware are offered with limited support and documentation. They are experimental and offered 'as-is' for advanced users.
Wiring to the Sensor Shield for Vision Tracking is identical to the Test setup. You will also need to attach the webcam directly to your computer.
|Device||Pin Type||Pin #|
Arduino -> RobotGeek Sketches ->desktopRoboTurretV3-master -> roboTurret3_roboRealm ->Desktop_RoboTurret_v3_face_tracking.robo
The program should recognize human faces and do its best to track them. Lighting can be very important for this example.
Arduino -> RobotGeek Sketches -> RoboTurret v3 -> roboTurret3_roboRealm ->Desktop_RoboTurret_v3_object.robo
Double Click the Object Recognition module. Towards the bottom there is a 'Add Objects' button. Click the button and use the interface to crop an image from the camera as a object you would like to recognize. Keep in mind that rectangular objects (or rectangular crops of objects) work the best. Using objects with irregular shapes will require you to have a uniform background.
PC Control These demos and projects allow the robot to be controlled via a computer.
ArbotiX Commander Control - These demos and projects control the Robot using the ArbotiX Commander, the handheld Arduino based remote control.
Direct Control - These demos and projects control the Robot directly from sensors connected directly to the Robot's control board.
Pose Control - These demos and projects allow you to create and playback a sequence of poses.
Serial Control - These demos and projects control the robot using a serial packet protocol.
Standalone - These demos and projects are deisgned to let your robot function without a computer or additional microcontroller.
Wireless Control - These demos and projects allow you to control the robot wirelessly - usually by replacing the Serial Connection with XBee modules.
Reference - These articles have technical details regarding the control and operation of the robot.
More info here