Ozobot Evo Cheat Sheet

https://editor.ozobot.com/python

The Robot

Python

Connecting to an Ozo:

import ozobot

bot = ozobot.get_robot(device_name="Evo_1")

Moving forward 10 cm, with a speed of 20 cm per second:

bot.movement.move(0.1, 0.2)

Rotating 90 degrees to the left at a speed of 180 degrees per second:

bot.movement.rotate_deg(90, 180)

Wait 1 second

ozobot.time.sleep(1)

Set all front lights (LEDs) to the predefined color "RED":

bot.light_effects.set_light_color(
    ozobot.SurfaceColor.RED, ozobot.Lights.ALL_FRONT)

Set all front lights (LEDs) to a color defined by red, green, and blue (RGB) values between 0 and 255:

bot.light_effects.set_light_color(0, 255, 0, ozobot.Lights.ALL_FRONT)

Programs: