Uses of Interface
com.diozero.devices.DistanceSensorInterface

Packages that use DistanceSensorInterface
Package Description
com.diozero.devices
Classes representing actual devices such as LEDs, Buttons as well as GPIO, devices that are connected via I2C, SPI and Serial interfaces.
com.diozero.devices.sandpit  
  • Uses of DistanceSensorInterface in com.diozero.devices

    Classes in com.diozero.devices that implement DistanceSensorInterface
    Modifier and Type Class Description
    class  GP2Y0A21YK
    Sharp GP2Y0A21YK distance sensor.
    class  HCSR04
    User's manual: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit# Product specification: http://www.micropik.com/PDF/HCSR04.pdf Provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo.
  • Uses of DistanceSensorInterface in com.diozero.devices.sandpit

    Classes in com.diozero.devices.sandpit that implement DistanceSensorInterface
    Modifier and Type Class Description
    class  HCSR04UsingEvents
    Note this version doesn't work as well as the polling-based HCSR04 version.
    class  HCSR04UsingWait
    User's manual: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit# Product specification: http://www.micropik.com/PDF/HCSR04.pdf Provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo.
    class  VL6180
    Datasheet: https://www.st.com/resource/en/datasheet/vl6180.pdf