Ultrasonic Sensor Library for with Raspberry Pi Pico, created by DIYables
Project description
Ultrasonic Sensor Library for Raspberry Pi Pico - DIYables_Pico_Ultrasonic_Sensor
This MicroPython library is designed for Raspberry Pi Pico 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 Raspberry Pi Pico board.
- 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
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
File details
Details for the file diyables_pico_ultrasonic_sensor-0.1.1.tar.gz
.
File metadata
- Download URL: diyables_pico_ultrasonic_sensor-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eb79c657bc06b3663c19f81cb50caece2f62efa27872462fd341e13123dc9f1 |
|
MD5 | 9cf5149430453313e4ff47a780093f17 |
|
BLAKE2b-256 | 32446d091b709e15468dde08f62c7cf3da537253a104e7784e0b5363eccf4d05 |
File details
Details for the file DIYables_Pico_Ultrasonic_Sensor-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: DIYables_Pico_Ultrasonic_Sensor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 9979969cb2119f9e84a6c87a328adec7f764c2cb50fc431559678644545b804b |
|
MD5 | 6c33bfcee0a2c0d688080f43bb96b7c4 |
|
BLAKE2b-256 | 74f06475b3d4ff6f5c42eabcc504acc8d2672a562c0d2840118ed6e7d2f1e7a2 |