Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tessel-sen10737p
Advanced tools
Readme
This package allows the use on the Grove Ultrasonic Ranger v1.0 (SEN10737P) sensor on the Tessel board.
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);
});
};
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.
If you find a bug feel free to fork the code and submit a pull request.
FAQs
Tessel driver for the Grove Ultrasonic Ranger v1.0 (SEN10737P).
The npm package tessel-sen10737p receives a total of 1 weekly downloads. As such, tessel-sen10737p popularity was classified as not popular.
We found that tessel-sen10737p demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.