node-red-nodes/hardware/PiSrf
Dave Conway-Jones 13fbfc4f22
bump PiSRF node to fix timeout
Thanks @bartbutenaers to Close #309
2017-05-08 09:01:45 +01:00
..
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
README.md update hardware nodes info style 2016-03-02 13:27:52 +00:00
nrsrf Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
nrsrf.py bump PiSRF node to fix timeout 2017-05-08 09:01:45 +01:00
package.json bump PiSRF node to fix timeout 2017-05-08 09:01:45 +01:00
pisrf.html Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
pisrf.js Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00

README.md

node-red-node-pisrf

A Node-RED node for Raspberry Pi to read range from an SRF05 Ultrasonic range sensor.

Only works with a Raspberry Pi.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-pisrf

Usage

Raspberry Pi input from an SRF04 or SRF05 ultrasonic range finder.

The configuration requires two GPIO pin numbers, the trigger pin and the echo pin. These can be any spare valid Pi GPIO pins. e.g.

    7,11

Outputs a msg.payload with a number representing the range in cm.

Produces one measure every 0.5s - but only if the distance is different from the previous reading.

Note: we are using the actual physical pin numbers on connector P1 as they are easier to locate.