×

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

Geekbot V2 Getting Started Guide

Contents:

  1. Setting up the Arduino Software
  2. Centering your 9G Servo
  3. Geekbot Assembly Guides
  4. Wiring the Geekbot
  5. Testing the Geekbot
  6. Geekbot Demo Code

This guide will teach you how to setup and use your RobotGeek Geekbot Core or Basic Kit.

If you're looking for the old Geekbot Getting Started and Assembly guides, you can find them here

This guide will refer to the RobotGeek Geekduino, the Arduino Compatible microcontroller recommended for use with RobotGeek products. However this kit will also work with the Arduino Uno, or other Arduino variants like the Seeeduino.

RobotGeek 101

Robotgeek 101

The Geekbot Getting Started Guide and Assembly Guides cover everything you'll need to know to get your Geekbot up and running, but if you'd like to learn more in depth information about wiring, mounting, and writing your own code, check out RobotGeek 101

1. Setting up the Arduino Software

GEEKDUINO GETTING STARTED GUIDE

If you have not already set up your Geekduino/ Arduino compatible board, please see the Geekduino Getting Started Guide. This guide will assist you in getting set up with the Arduino software as well as install the RobotGeek Libraries.

2. Centering your 9G Servo

geekmount-pins-note.jpg

If you have the RobotGeek Geekbot Basic Kit, centering your 9G mini servo is a necessary step before you start building your Geekbot. To begin centering your servos, we're going to have to set up your test rig. This is incredibly easy to do with a RobotGeek Sensor Shield, which was included in the Geekbot Basic Kit. Start by attaching your Sensor Shield to your Geekduino/Arduino Compatible board. Slot the bottom pins of the RobotGeek Sensor Shield into the terminals in the top of the Geekduino. Note how the boards seat evenly on top of each other, and the pins line up exactly. Be careful not to bend the pins.

Wiring
Device Sensor Shield Port
Servos
Panning Servo 9G Servo Digital 10
b_500_500_16777215_00__images_tutorials_geekbot_9gcenter_bb.png
Code

For assembly in the Geekbot Basic, you will need to set the 9G servo to 90°. The following sketch will move the servo to about 65°, then to about 115%deg; and finally stop at 90°. If you would like to re-start the process, either reset the Geekduino or unplug/plug the power into the unit.

File -> Sketchbook -> RobotGeek Sketches -> Tools -> centerServo

In the video below we show the servo with a horn attached so that it is easy to see the movement. You do not need to attach your horn at this time (you will do this in the assembly guide).

Note: The RobotGeek Continuous Rotation Servos (Wheel Servos) included do NOT need to be centered.


See this page for more information and a video on centering servos.

3. Geekbot Assembly Guides

Geekbot Core Assembly Guide
Geekbot Basic Assembly Guide

At this point, follow through the proper Assembly Guide for your Geekbot. Once you have completed the assembly, return here to wire, test, and run your Geekbot. If you are looking for the old assembly guide, you can find it here.

4. Wiring the Geekbot

If you are building the Geekbot Basic, all of the following sensors should be connected. For the Geekbot Core Kit, mind only the Continuous Rotation Servos. Though the Test program will run through all of the sensors, it will operate just fine with only the wheel servos connected.

Device Sensor Shield Port
Servos
Left Wheel RobotGeek Continuous Rotation Servo Digital 10
Right Wheel RobotGeek Continuous Rotation Servo Digital 11
Panning Servo 9G Servo Digital 12
Input
Range Finder Sharp IR Sensor Analog 0
Pushbutton RobotGeek Pushbutton Digital 8
Output
Buzzer RobotGeek Buzzer Digital 2
Right Turn Signal RobotGeek LED Driver Digital 4
Left Turn Signal RobotGeek LED Driver Digital 7
b_500_500_16777215_00__images_assembly_geekbot_basic_geekbasic_bb.png

5. Testing the Geekbot

Before you run the test code, you will want to turn the robot up-side-down so that the robot doesn't drive off your desk or rip the USB cable out of your computer.

When you installed the RobotGeek Tools and Libraries, you installed the test sketch for the Geekbot. You can find the geekbotTest here:

File -> Sketchbook -> RobotGeek sketches -> Tests -> geekbotTest

Load the sketch onto your Geekduino and then open the Serial Monitor. The Geekbot should print out data on the Serial Monitor while exhibiting the following behavior.

  1. The left servo will spin slowly clockwise for 1 second
  2. The left servo will spin quickly clockwise for 1 second
  3. The left servo will spin slowly counter-clockwise for 1 second
  4. The left servo will spin quickly counter-clockwise for 1 second
  5. The left servo will stop and wait for 1 second
  6. The right servo will spin slowly clockwise for 1 second
  7. The right servo will spin quickly clockwise for 1 second
  8. The right servo will spin slowly counter-clockwise for 1 second
  9. The right servo will spin quickly counter-clockwise for 1 second
  10. The right servo will stop and wait for 1 second
  11. The Pan servo will point to the left
  12. The Pan servo will point to the right
  13. The Pan servo will point straight ahead
  14. The Buzzer will turn on for one second, then turn off
  15. The right led will turn on for one second, then turn off
  16. The left led will turn on for one second, then turn off
  17. Now the main loop will start. If you press the button, the buzzer will sound.
  18. The reading from the distance sensor will show up on your Serial Monitor.

6. Geekbot Demo Code

Geekbot Demo Software

All of the Geekbot demo code can be downloaded here. Once you unzip the file, rename the Geekbot-master folder to Geekbot. Put the Geekbot folder in your RobotGeek sketches folder.

Documents -> Arduino -> RobotGeek sketches  

Now start/restart your Arduino IDE. Once the IDE is open, you can open the Analog Arm Control demo.

File -> Sketchbook -> RobotGeek sketches -> Geekbot -> Basic Examples -> geekbotObjectAvoid 

Load the code onto your Geekduino. Once the code is uploaded, unplug the Geekduino from your computer and put your Geekbot on the floor.

Switching the power switch on the battery wiring harness will turn the Geekbot on, though it will not start its program until you press the pushbutton. Once you press the pushbutton the Geekbot will go into an autonomous mode. The Geekbot will move forward and start panning its range sensor. If the sensor detects an object, the geekbot will turn left, right or reverse depneding on where the object is.

To stop the behavior, switch the wiring switch to off.

Feedback Form


Search