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

https://github.com/codeadamca/ev3-ultrasonic

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

ev3 ev3dev lego python

Last synced: about 1 month ago
JSON representation

A basic example of using Python with the LEGO EV3 ultrasonic sensor.

Awesome Lists containing this project

README

          

# LEGO® Mindstorms® EV3 and the Ultrasonic Sensor

A Python snippet utilizing the LEGO EV3 ultrasonic 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.

![LEGO Instructions](_readme/ev3-ultrasonic.jpg)

This example uses the EV3 ultrasonic 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)