Skip to content
Rust embedded-hal sensor crate for HC-SR04
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.cargo
examples
src
.gdbinit
.gitignore
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
Xargo.toml

README.md

hc-sr04

A platform agnostic driver to interface with the HC-SR04 (ultrasonic distance)

What works

  • Estimating distance based on interrupt

Examples

See the examples folder for usage. To find the dependencies of the examples copy the dev-dependencies from Cargo.toml.

TODO

  • Test on embedded target (tested on f3, see example)
  • Move to timers based purely on embedded-hal
  • Find out why crate only seem to work in --release mode
  • Test on single board computer (RPi etc.)
  • Gather feedback on API

License

Licensed under either of

at your option.

You can’t perform that action at this time.