-
Notifications
You must be signed in to change notification settings - Fork 225
PING 28015 ultrasonic sensor
Jaume Olivé Petrus edited this page Apr 19, 2017
·
22 revisions
What | Comments | |
---|---|---|
Identifier | PING28015 | |
Interface | GPIO | 1 pin |
Provides | distance | meters |
Properties | temperature | sound speed depends on ambient temperature |
Datasheet |
s1 = sensor.attach("PING28015", pio.GPIO4)
-- We tell to PING28015 that ambient temperature are 25º for adjust
-- the sound speed, used internally for calculate the distance from an
-- object
s1:set("temperature", 25)
s1:read("distance")