For the complete documentation index, see llms.txt. This page is also available as Markdown.

Motor Control

Get your robot moving with the Sumo Helpers

To help get you moving, your board comes with a helper library that can be used to drive your robot.

From here you'll be able to combine your sensor readings and build a robot that can respond to other robots and the white line.

import time
import BBRSumoClass

sumo = BBRSumoClass.BBRSumo()

#go forwards
sumo.forward(255)
time.sleep(1)
#stop with brakes
sumo.stop()
time.sleep(1)
#go backwards
sumo.reverse(255)
time.sleep(1)
#coasting is releasing the motors - can be pushed
sumo.coast()

Last updated