[ Home - Forums ]

DefconBots Cancelled! See the announcement on the Home Page for details!

Example Robot Design

  • All code here is public domain, so you can modify it in any way you want.
  • Right hand wall following Simple right hand wall following
  • 01_follow_wall.pde Arduino
  • Sensors Test with GUI The sensors are attached vertically to a 4" diameter PVC pipe. One facing directly to the right, one facing straight ahead, and three others betweer them (23, 45, and 66 degrees, approximately). The GUI is used to visualize the resulting readings. This program was mainly used to figure out how to calculate the angle of the wall.
  • read_sensors_5_post.pde Arduino
  • gui.pde Processing to display the values
  • Sensors Test Using the data from read_sensors_5_post, this is the angle calculation rewritten for the Arduino so that it can run directly on-board.
  • read_sensors_5_post_nogui.pde Arduino
  • Servo Calibration This is the simplest interface to the servos. It uses the internal timer to generate the pulse width to send to one servo.
  • servo_calibrate.pde Arduino
  • Servo Test Goes through a test pattern for the servos. Great way to test if they're connected, the limits are reasonable, etc.
  • servo_test.pde Arduino
  • The raw files is at example/ if you want to dig into the raw code.

    Photos of the bot!

    Questions? kallahar@kallahar.com