An open API service indexing awesome lists of open source software.

https://github.com/codeadamca/ev3-infrared-distance

A basic example of using Python with the LEGO EV3 infrared sensor to measure distance.
https://github.com/codeadamca/ev3-infrared-distance

ev3 ev3dev lego python

Last synced: 6 months ago
JSON representation

A basic example of using Python with the LEGO EV3 infrared sensor to measure distance.

Awesome Lists containing this project

README

          

# LEGO® Mindstorms® EV3 and the Infrared Sensor

A Python snippet utilizing the LEGO EV3 infrared sensor, the LEGO EV3 Brick and [Pybricks](https://pybricks.com/). [Pybricks](https://pybricks.com/) is the LEGO recommended method of using the LEGO EV3 Brick with Python. See the official [Python for EV3](https://education.lego.com/en-us/support/mindstorms-ev3/python-for-ev3) LEGO page for more details.

This example uses the EV3 infrared sensor to measure the distance of an object in front of the sensor. This example will move both motors forward until something is blocking it's path.

***

## Repo Resources

- [Pybricks - Documentation](https://docs.pybricks.com/en/latest/ev3devices.html)