MicroPython Ultrasonic Sensor Library - DIYables_MicroPython_Ultrasonic_Sensor
This MicroPython Ultrasonic Sensor library is designed for any hardware platform that supports MicroPython such as Raspberry Pi Pico, ESP32, Micro:bit... to make it easy to use with ultrasonic sensor. It is easy to use for not only beginners but also experienced users...
It is created by DIYables to work with DIYables Ultrasonic Sensor, but also work with products from other brands. Please consider purchasing products from DIYables Store on Amazon to support our work.
Features
- Works with any hardware platform that supports MicroPython such as Raspberry Pi Pico, ESP32, Micro:bit...
- Supports the noise filter (filtering noise from enviroment, ultrasonic interference...)
- Supports detection threshold. If distance > threshold, the library will not consider any object detected.
Available Functions
- __init__(trig_pin, echo_pin)
- set_detection_threshold(distance)
- enable_filter(num_samples=20)
- disable_filter()
- loop()
- get_distance()
Available Examples
- main.py
Tutorials
- Arduino MicroPython - Ultrasonic Sensor
- ESP32 MicroPython - Ultrasonic Sensor
- Raspberry Pi Pico - Ultrasonic Sensor
References
Release files for DIYables-MicroPython-Ultrasonic-Sensor 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diyables_micropython_ultrasonic_sensor-0.1.2.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DIYables_MicroPython_Ultrasonic_Sensor-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / diyables_micropython_ultrasonic_sensor-0.1.2.tar.gz
| Download URL | diyables_micropython_ultrasonic_sensor-0.1.2.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e653f3522a99524c0f9eab3086cd4a487ce51f24720e467b42b1efdd7c2762f3
|
|
BLAKE2b-256 checksum How to use checksums |
9c3ad05754d31c24e2418aaff80e0d5393251c6a8f2cedd595878dc0d43144d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / DIYables_MicroPython_Ultrasonic_Sensor-0.1.2-py3-none-any.whl
| Download URL | DIYables_MicroPython_Ultrasonic_Sensor-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b08ce0f2f7d11244f456321f344812fadbea876c24e45f7d4e86ab564775b58
|
|
BLAKE2b-256 checksum How to use checksums |
c4e19eec40cb852f3b67fea4410acd3885bddcdf51ed99d28ee388a073d78b88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|