/ir_distance

Module to read distance from Sharp GP2D02 components on a Raspberry PI

Primary LanguagePythonMIT LicenseMIT

IR Distance Module

This module provides a class that reads the Sharp GP2D02 infra red distance sensors on a Raspberry Pi. It uses the GPIO daemon pigpio found at http://abyz.co.uk/rpi/pigpio/

usage example

import time
from ir_distance import IRDistance

ir = IRDistance()

ir.start()

while True:
  print ir.get_distance()
  time.

ir.stop()