proximity-hcsr04

**NOTE: This module is temporarily for use in the Tessel board.**

npm install proximity-hcsr04
6 downloads in the last month

HC-SR04 module

NOTE: This module is temporarily for use in the Tessel board.

For use by Tessel GPIO bank atm.

Install:

npm install proximity-hcsr04

Use (via Tessel):

var proximity = require('proximity-hcsr04')
  • var sensor = proximity. initialize( triggerpin, echopin )
  • sensor. ping() — Emits a ping. Returns in ping event.
  • sensor emits ( "ping", { "cm": distance in cm })
npm loves you