Desktop RoboTurret - Commander Control

btTurret.jpg
mt_ignore
Direct Control
mt_ignore
Pose Control

This demonstration shows how to control the Desktop RoboTurret using direct control with BT Commander via a Bluetooth Serial adapter.

Contents:
  1. Project Parts List
  2. Assemble your Desktop RoboTurret
  3. Set up your Bluetooth Module
  4. Download the Sketch
  5. Upload the Firmware
  6. Wiring
  7. Control

Project Parts List:

You will also need a bluetooth enabled Android Phone or Tablet.

Assemble your Desktop RoboTurret

Desktop RoboTurret Assembly Guide

Follow and complete the Desktop RoboTurret Assembly Guide if you haven't already done so.

Set up your Bluetooth Module

Follow the Configure the Bluetooth Module section of the BT Commander Getting Started Guide to get your Bluetooth module ready for action.

Download the Sketch

RoboTurret Sketches

A .zip file with all of the RoboTurret Sketches can be found here.

Unzip the file and you will have a folder called desktopRoboTurretV3-master 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.

Upload the Firmware

Load the Commander Control code onto your Geekduino. It can be found at:

File -> Sketchbook -> RobotGeek Sketches -> desktopRoboTurretV3-master -> roboTurret_Commander_Incremental

Wiring

Wiring for commander control over bluetooth is as follows:

Device Pin Type Pin #
Pan Servo Digital 10
Tilt Servo Digital 11
Laser Digital 2
HC-05 Bluetooth Module Digital UART
HC-05 Pin Geekduino Pin
VCC 5V
GND G
TXD RX-0
RXD TX-1
b_500_500_16777215_00__images_tutorials_desktopRoboTurret_btTurret_bb.png

Control

When you plug the Turret into a power source, the pan and tilt motors will center, and the bluetooth module will begin quickly blinking. This shows you that the firmware is loaded and the bluetooth module is looking for a connection.

    btcommanderIcon.png
  1. Open BT Commander on your phone or tablet
  2. b_500_500_16777215_00_http___learn.trossenrobotics.com_images_projects_BTCommander_phone4.png
  3. Select 'Connect to Device', and choose your Bluetooth Module from the list.
  4. b_500_500_16777215_00_http___learn.trossenrobotics.com_images_projects_BTCommander_phone6.png
  5. The Link Status should now say connected. Choose your control method (Basic or Smooth), and you can start moving your turret!
b_500_500_16777215_00__images_tutorials_desktopRoboTurret_controlTurret.jpg
×

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

Feedback Form


Search