Node.js for Embedded Systems by Patrick Mulder
Author:Patrick Mulder
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-10-05T16:00:00+00:00
Proximity
If you want to build a robot, one common approach for obstacle detection is an ultrasonic distance meter. Johnny-Five has a nice module to work with proximity detectors.
Look at the following code for an example based on the SRF10 sensor:
// check_proximity.js var five = require("johnny-five"); var board = new five.Board(); board.on("ready", function() { var proximity = new five.Proximity({ controller: "SRF10" }); proximity.on("data", function() { console.log(this.cm + "cm", this.in + "in"); }); proximity.on("change", function() { console.log("The obstruction has moved."); }); });
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Design | Control Systems |
DSPs | Embedded Systems |
Microprocessor Design | PIC Microcontroller |
Building Low Latency Applications with C++ by Sourav Ghosh(2925)
Fusion 360 for Makers by Lydia Sloan Cline(1987)
Networking A Beginner's Guide by Bruce Hallberg(1932)
But How Do It Know? by J. Clark Scott(1816)
Computers For Seniors For Dummies by Nancy C. Muir(1769)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1755)
Hands-On Linux for Architects by Denis Salamanca(1738)
Hack and HHVM by Owen Yamauchi(1676)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1664)
MicroPython Projects by Jacob Beningo(1471)
PrestaShop Recipes by Arnaldo Pérez Castaño(1467)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1455)
Hands-On Internet of Things with MQTT by Tim Pulver(1417)
Raspberry Pi Electronics Projects for the Evil Genius (Tab) by Norris Donald & Norris Donald(1384)
Getting Started with Soldering: A Hands-On Guide to Making Electrical and Mechanical Connections by Vinck Marc de(1378)
Embedded Systems Architecture by Daniele Lacamera(1377)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1369)
Shaping the Fourth Industrial Revolution by Klaus Schwab & Nicholas Davis & Satya Nadella(1358)
The Internet of Things (The MIT Press Essential Knowledge series) by Greengard Samuel(1348)