top of page
Step 2: Programming
Programming The Simple SumoBot:
NEW LEGO® EV3 Classroom App
Use these instructional videos if you have a device (Mac/PC/Chromebook/iPad/Tablet) that can run the new EV3 classroom App. Watch each video and follow their instructions and you will be able to do the following:
-
Connect your device to the Simple SumoBot.
-
Check all motors and sensors.
-
Write the program necessary for your Simple SumoBot to battle an opponent.
-
Run the program directly using the Robot's buttons.
Link for EV3 Classroom App: LEGO® EV3 Classroom App
STEP 1: Connect Device to SumoBot
STEP 2: Check Motors
STEP 3: Check Color Sensors
STEP 4: Check Ultrasonic Sensor
STEP 5: Program Starting Code
See diagram below: The starting code has three steps. The robot first waits 4 seconds, then moves to the end of the table and finally reverses and turns to face the opponent.
STEP 6: Program Main Code
See diagram below: The main code has a forever loop that runs through three if-then switches. The first checks the left color sensor and moves back and turns if it sees black. The second checks the right color sensor and moves back and turns if it sees black. The third checks the ultrasonic sensor and charges 100% power if it sees the enemy. Regular movement is forward at 50% power.
STEP 7: Run Program from Robot
bottom of page