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.0.tar.gz.

File metadata

File hashes

Hashes for diyables_pico_ultrasonic_sensor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77dd0dac9f3db20455f771d9e51a7d911c697f683d5dae218677e709f0ddab43
MD5 c12ff6b1e5020d67869b09b97a689fbc
BLAKE2b-256 7f1c5c187ad3ec95f10a0deab05a84a18c4fc562a36ade60298e04cccf64f469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for DIYables_Pico_Ultrasonic_Sensor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c6138c06f0f82195957376792064855de9c506843c47abc563e3c5a0ffa6bd7
MD5 2150b6fd21ecf8d73bc7e39b1cfb167b
BLAKE2b-256 26a55e20f131f748a2d1fbde9343425066a82d5b52d36ec044587af2a458c501

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