SHARP GP2Y0E03 Distance Sensor

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

SHARP GP2Y0E03 Distance Sensor

Post by deshipu » Fri Sep 09, 2016 1:43 pm

A quick-and-dirty dirty driver for the SHARP GP2Y0E03 I²C distance sensor. Code at https://bitbucket.org/thesheep/micropython-gp2y0e03/src

Example usage:

Code: Select all

from machine import I2C, Pin
i2c = I2C(Pin(5), Pin(4), freq=100000)
import gp2y0e03
s = gp2y0e03.GP2Y0E03(i2c)
s.read()

Post Reply