npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tessel-sen10737p

v1.0.3

Published

Tessel driver for the Grove Ultrasonic Ranger v1.0 (SEN10737P).

Downloads

7

Readme

Tessel Driver for Grove Ultrasonic Ranger v1.0 (SEN10737P)

This package allows the use on the Grove Ultrasonic Ranger v1.0 (SEN10737P) sensor on the Tessel board.

Usage

Using the package is easy. Just download and install it via NPM.

npm install tessel-sen10737p --save

Once the package is downloaded and installed, you need to get a reference to a pin on the Tessel that supports reading a PWM pulse. The driver has been tested using the G3 pin on the GPIO port.

// Load modules.
var tessel = require('tessel');
var sen10737p = require('tessel-sen10737p');

// Select a pin that supports reading a PWM pulse.
var gpio = tessel.port['GPIO'];
var pin = gpio.pin['G3'];

// Get a ranger which is bound to the PWM capable pin.
var ranger = sen10737p.use(pin);

// Call getDistance passing in a callback
ranger.getDistance(function (err, distance) {
    if (err) {
      console.log(err);
      return;
    }

    console.log(distance);
  });
};

Wiring

According to the Seeed Studio wiki, the SEN10737P supports both 3.3V and 5V power source. This means that you can wire-up the sensor directly to the Tessel assuming you are running it from the 3.3V power source. However if you are running from a 5V source you will need to step down the voltage.

The G3 pin on your Tessel's GPIO port supports the underlying readPulse(...) method that this library uses. Give it a try and if you encounter any problems post an issue or hit the Tessel forums.

Contributions

If you find a bug feel free to fork the code and submit a pull request.