MicroPython Library for Ultrasonic Sensor, created by DIYables
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diyables_micropython_ultrasonic_sensor-0.1.2.tar.gz.
File metadata
- Download URL: diyables_micropython_ultrasonic_sensor-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e653f3522a99524c0f9eab3086cd4a487ce51f24720e467b42b1efdd7c2762f3
|
|
| MD5 |
d16976b9da807160ad8e01c9dba30a14
|
|
| BLAKE2b-256 |
9c3ad05754d31c24e2418aaff80e0d5393251c6a8f2cedd595878dc0d43144d4
|
File details
Details for the file DIYables_MicroPython_Ultrasonic_Sensor-0.1.2-py3-none-any.whl.
File metadata
- Download URL: DIYables_MicroPython_Ultrasonic_Sensor-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b08ce0f2f7d11244f456321f344812fadbea876c24e45f7d4e86ab564775b58
|
|
| MD5 |
735e32c19deb2d9e9afbfb0500541685
|
|
| BLAKE2b-256 |
c4e19eec40cb852f3b67fea4410acd3885bddcdf51ed99d28ee388a073d78b88
|