Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Latest commit

 

History

History
56 lines (35 loc) · 1.92 KB

File metadata and controls

56 lines (35 loc) · 1.92 KB

LEGO MINDSTORMS (ev3dev) Python Robot Examples

This project contains simple robot examples for the LEGO MINDSTORMS EV3 intelligent brick. The API uses the ev3dev Python module.

You can use these examples to get started with your ev3dev self-driving robot.

Get started

Make sure that the motors are connected to the following ouput pins:

  • Right motor (EV3 large motor) => Output pin A
  • Left motor (EV3 large motor) => Output pin B

Some of the examples may require the following sensors:

  • Ultrasonic sensor
  • Gyro sensor
  • Color sensor
  • Infrared sensor

Examples:

Note: The main logic is stored in the robot package. To run these examples you need to copy the 'robot' package as well.

Plain ev3dev robot

run_robot.py is a simple example for autonomous self driving robot. Copy the example to the EV3 brick an make the script executable.

The example uses the following sensors:

  • Ultrasonic sensor
  • Color sensor
  • Gyro sensor

IR ev3dev robot (Infrared Remote)

run_robot_remote_control.py is example how to control your robot with a the infrared remote control.

The example uses the following sensors:

  • Infrared sensor
  • Ultrasonic sensor
  • Color sensor
  • Gyro sensor