PureData CEAMMC library web documentation
available since version: 0.9.8
Note: The HC-SR04 ultrasonic sensor requires a 5V power supply, but the Raspberry Pi's GPIO inputs operate at 3.3V. Therefore, you must use a level converter from 5V to 3.3V, otherwise, you could damage your Raspberry Pi!
TRIG_PIN
a trigger pin GPIO number
type: int
ECHO_PIN
an echo pin GPIO number
type: int
@echo_pin (initonly)
Get/set an echo pin GPIO number
type: int
range: 0..255
default: 27
@poll_interval
Get/set poll interval
type: int
units: ms
range: 10..1000
default: 20
@trig_pin (initonly)
Get/set a trigger pin GPIO number
type: int
range: 0..255
default: 17
sensor ultrasonic range rpi arduino
Authors: Serge Poltavsky
License: GPL3 or later