Skip to main content

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


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

File hashes

Hashes for diyables_pico_ultrasonic_sensor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2eb79c657bc06b3663c19f81cb50caece2f62efa27872462fd341e13123dc9f1
MD5 9cf5149430453313e4ff47a780093f17
BLAKE2b-256 32446d091b709e15468dde08f62c7cf3da537253a104e7784e0b5363eccf4d05

See more details on using hashes here.

File details

Details for the file DIYables_Pico_Ultrasonic_Sensor-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for DIYables_Pico_Ultrasonic_Sensor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9979969cb2119f9e84a6c87a328adec7f764c2cb50fc431559678644545b804b
MD5 6c33bfcee0a2c0d688080f43bb96b7c4
BLAKE2b-256 74f06475b3d4ff6f5c42eabcc504acc8d2672a562c0d2840118ed6e7d2f1e7a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page