Build a Sumobot

 

 

Build a Sumobot? This will Help.

(Photo from the Robotics Society of S. California.)

What is a Sumobot?

Build a Sumobot? But what is it? A Sumobot is a robot that competes in a sumobot contest. A sumobot contest is like a human sumo competition except done with robots, usually robots on wheels. The goal is to push the other sumobot out of the sumobot arena.

Parts for a Sumobot

  • Arduino Uno
  • Two parallax continuous rotation servomotors
  • Two cadmium sulfide Light sensors
  • Two white LEDs
  • A 4" x 3" rectangle of plastic, Metal, or wood for a chassis.
  • A second rectangle of plastic, metal, or wood for a pushing blade.
  • Two miniature limit switches
  • A 2" x 2" solderless breadboard
  • A battery box that holds 4 to 6 AA batteries.  
  • About 20 stripped wires for connecting the components.
  • A tiny caster or a skid.

Sample Sumobot Program (sketch) for Arduino Uno


// Arduino Sumobot


/*

The idea is to run your sumobot slowly so that it does not leave the ring. It helps if it makes small circles in the ring. Once your bump detector hits another sumobot, your sumobot should push the other robot out with full power. When you build a sumobot, this is important.

*/


#include <Servo.h> 

 

Servo myservo1;  // create servo variable to control servo 1

Servo myservo2;  // create servo variable to control servo 2

                

  

void setup() // Code that runs once goes here.

  Serial.begin(9600);

  myservo1.attach(3);  // servo 1 on DIGITAL pin 3 

  myservo2.attach(4);  // servo 2 on DIGITAL pin 4  

  pinMode(2, INPUT_PULLUP);  // bump switch on pin 2

 

 

void loop() // Code that runs "forever" goes here. 

  int LightSensorValue = analogRead(A0); // read the light sensor on analog pin 0:

  Serial.println(LightSensorValue); // // print out the value of the light sensor that you read

   pinMode(6, OUTPUT);    // Tell the Arduino that we will want 5 volts on pin 6 to turn on an LED. (output mode)

  digitalWrite(6, HIGH);   // turn the LED on (HIGH is the voltage level)


    // If we are outside of the ring (in the white area) BACKUP

    if (LightSensorValue < 850) // this number will probably need to be adjusted based on your LED. If you are very clever, you might try adjusting it automatically before your Sumobot moves. This is also important when you build a sumobot.

      {

         myservo1.write(85);       // BACK UP!  

         myservo2.write(180);      // BACK UP!  

         delay (1000);   // keep backing up for a bit.

      }    


  // otherwise keep looking for other sumobots:

    myservo1.write(97);  // Turn LEFT servo drive wheel on: slow    (93 is stopped     

    myservo2.write(85);  // Turn RIGHT servo drive wheel on: slow (94 is stopped)



    int sensorVal = digitalRead(2); // Check to see if we hit something

    

    if (sensorVal == LOW)           // if we bumped into something FULL SPEED AHEAD!

        {

         myservo1.write(180);     // FULL SPEED AHEAD!  

         myservo2.write(0);       // FULL SPEED AHEAD!       

         delay (1000);    // run the motors for a bit.   

        } // end of "if"

             

  } // end of "loop"




New! Comments

Have your say about what you just read! Leave me a comment in the box below.

Recent Articles

  1. Stu the AI Robot

    Jul 23, 16 12:26 AM

    Stu the AI Robot - Debugging

    Read More

  2. Best Game Camera Security Box

    Jul 07, 16 10:47 PM

    Camera stolen again? This is the best Game Camera Security Box on the market. It...

    Read More

  3. Robots and Androids

    Jul 03, 16 12:50 AM

    A site with information on robots and androids including their history, building them, and so much more.

    Read More

Robot-Android-Blog  Read our blog about robots, building robots, and easy robot building.

How to Build a Robot How to Build a Robot takes you through each step required to build a robot.

Build an Arduino Robot Yes you CAN! We get you started.

Robot Comics Robot Comics are HERE! We start off our comics with...

Virtual Steve Jobs Virtual Steve Jobs? Steve Jobs is gone and we missed him so much we re-created his essence in software...

The EZ Robot Review The EZ Robot Review. This article reviews the EZ Robot building system, the robot board and system for beginner's robot building.

Medical Robots Medical robots are now showing their silver faces in hospitals and doctors' offices across the world.

Roomba Repair Quick and Simple Fixes for Your iRobot Roomba vacuum

Roomba Batteries How to extend the life of your Roomba's battery. Buy replacement batteries here.

Robot Cars - Yesterday’s Vision, Today’s Reality Are robot cars 'on track' to becoming the way of the future? What issues are at stake at their current level of development?

Robot Car Safety - The Future of Today’s Vehicles

Robot Car Safety can be identified by two main technological components - lacking in human drivers -a (1) instant reaction time and (2) 360-degree awareness of the road.

Educational Robots Learn robotics with these educational robots..

Robot People Robotic replicas of people - robot people - are starting to pop up here and there. We even visit a company who is today making them to order.

Hacking Elvis - The Alive Elvis Animatronic Robot In these articles we show you how to run your Alive Elvis from a microcontroller such as the Arduino and the Basic Stamp. Hacking Elvis...

Wall-e toy robots from Disney Wall-e toy robots are still popular this year

R2D2 Toy Robot : Interactive-Astromech Droid Here's a review of the high-end R2D2 toy robot, the interactive astromech droid.

Toy Robot Dogs Toy Robot dogs: In the robot pet store, you will find toy robot dogs - robomuts if you will - of all sizes, shapes and prices.

Wowwee Robotics Wowwee Robotics has been building toy robots for years.

Lost in Space Toys : The Robot Lost in Space Toys : There have been scores of toys built resembling the Lost in Space Robot, sometimes call by his model number "B9"...

Tribot Robot The tribot robot is one of the most entertaining toy robots that has come from Wowwee...

Terminator Robots Terminator Robots : The Terminator movies and television show brought robots to...

Artificial Intelligence: Our Brain In That Small Chip Artificial Intelligence was once thought of as an impossible feat. Now, with modern advancements in robotic technology, machines can be made to think like humans.

R2D2 - An Adventurous, Resourceful, and Loyal Robot R2D2 demonstrates several notable characteristics every human can learn from, in spite of the fact that he is, a robot. Read his biography here.

Anybots Vistual Assistant Robots - The Coming of Age in Telepresence Robotics Anybots Virtual Assistant Robots are expected to grow in a few years, or perhaps sooner.

BlueBiped: Propelled by it's Own Weight BlueBiped uses no power source to walk. This robot has set a Guinness World Record, walking nonstop for a distance of 15 km (9.32 miles), the longest distance ever walked by a bipedal robot

EZ-Robot May Be the Easiest Way to Build a Robot EZ-Robot May Be the Easiest Way to Build a Robot. The EZ-Robot is a $235 kit that includes everything you need to transform one of your old toys into a functional robot.

Introducing MorpHex, a Spherical Hexapod Robot Introducing MorpHex, a Spherical Hexapod Robot. Imagine a robot shaped like a ball which transforms into a walking six-legged contraption. That’s a description of MorpHex, created by Kare Halvorsen.

Recovering Kids Monitored by Robots After Surgery Recovering Kids Monitored by Robots After Surgery. A Boston, Mass. hospital introduces a sci-fi worthy caregiver system, where patients can go home and stay monitored by robots after surgery.

iCub the "Baby Robot" - Learns to Crawl Like a Baby Have you heard of the iCub? It is a one-meter high android originally developed by the Europe-based RobotCub Consortium. The iCub strongly resembles

Dongbu Robot HOVIS Kits Allow Users to Build An Android Phone Powered Robot Dongbu Robot HOVIS Kits Allow Users to Build An Android Phone Powered Robot

Search
Robots and Androids

Bing

CLICK HERE

to read about the

ROBOT COLLEGE

Build an Arduino Robot!

Get the ebook.

Only $.99!