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.
- Host: GitHub
- URL: https://github.com/codeadamca/ev3-ultrasonic
- Owner: codeadamca
- Created: 2020-07-25T18:45:29.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T22:19:17.000Z (8 months ago)
- Last Synced: 2025-03-31T07:18:38.399Z (6 months ago)
- Topics: ev3, ev3dev, lego, python
- Language: Python
- Homepage:
- Size: 1.33 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

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)