1. 04 2月, 2017 1 次提交
    • A
      iio: distance: add devantech us ranger srf04 · feda2840
      Andreas Klinger 提交于
      This patch adds support for the ultrasonic ranger srf04 of devantech.
      
      This device is measuring the distance of objects in a range between 1 cm
      and 3 meters and a theoretical resolution of 3 mm.
      
      There are two GPIOs used:
        - trigger: set as output to the device when the measurement should start
        - echo: set by the device when the ultrasonic wave is sent out and reset
          when the echo is recognized; this needs to be an interrupt input
      
      The time between setting and resetting the echo pin is the time the
      waveform needed for one round trip. This time is recorded in the interrupt
      handler.
      
      The distance is calculated in the read function by using the ultrasonic
      speed at 20 degrees celsius which is about 343 m/s.
      Signed-off-by: NAndreas Klinger <ak@it-klinger.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      feda2840
  2. 29 1月, 2017 1 次提交
    • A
      iio: distance: srf08: add IIO driver for us ranger · 78f83902
      Andreas Klinger 提交于
      This is the IIO driver for devantech srf08 ultrasonic ranger which can be
      used to measure the distances to an object.
      
      The sensor supports I2C with some registers.
      
      Supported Features include:
       - read the distance in ranging mode in centimeters
       - output of the driver is directly the read value
       - together with the scale the driver delivers the distance in meters
       - only the first echo of the nearest object is delivered
       - set sensitivity as analog value in the range of 0-31  means setting
         gain register on device
       - set range registers; userspace enters max. range in millimeters in
         43 mm steps
      
      Features not supported by this driver:
       - ranging mode in inches or in microseconds
       - ANN mode
       - change I2C address through this driver
       - light sensor
      
      The driver was added in the directory "proximity" of the iio subsystem and
      the menu in den config is now called "Proximity and distance sensors"
      Signed-off-by: NAndreas Klinger <ak@it-klinger.de>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      78f83902
  3. 31 8月, 2015 1 次提交
  4. 06 1月, 2015 1 次提交
  5. 17 3月, 2014 1 次提交