Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tessel-sen10737p

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tessel-sen10737p

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

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 07 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc