Mechatronics Robot Sumo Wrestling Sample Programs
Kam Leang
kam@leang.com

By popular request, i.e., by U of U mechatronics students, I've posted up some same sumo robot code that was written a few years back for my sumo robot Wedgie (shown below).

The following programs are intended as examples for writing your own code in Interactive C.  Most students are struggling with learing Interactive C and the following examples my help sooth the pain.  There is no guarantee that the following programs will work.  I'm not responsible for any damages, intellectual or physical, that may result from the use of the following example programs.  Use at your own risk!!

More information about Interactive C for the Handy Board Microcontroller can be found on the Handy Board Website:  http://handyboard.com
 

Example Interactive C Sumo Robot Code

  1. sensor.c This program reads the value from a specified analog input channel and displays the value(0-5) on the screen.  This program is useful for testing sensors and/or analog or digital input channels.
  2. comp_son.c The program is designed for the sumo robot to find a light and go underneath.  Once it is underneath the light, it will guard it.  If the light source is moved to another location, the robot will repeat the search and detect process.
Good luck!

[ Homepage ][ Please direct all comments, suggestions, and complaints to kam@leang.com ]