Book description
We think of web browsers as running on desktop or mobile devices, but browsers can also run on embedded hardware. This means we can use JavaScript and Node.js to control physical devices, such as for the Internet of Things. In this lesson, we'll set up a basic project structure, and then add some JavaScript and SVG for graphics. We'll then explore communicating with hardware through toggling state of digital inputs and outputs.
Why is it important?
Web browsers make excellent interfaces for hardware, because they come on every system, make serial communication convenient, and provide a screen, which many embedded systems often don't have on their own. Using the browser as the interface, JavaScript and Node.js provide communication between applications and hardware.
What you'll learn—and how you can apply it
Learn how to use web browsers as interfaces for embedded hardware and understand basic messaging between Node.js applications and hardware.
This lesson is for you because…
- You already have some experience with hardware and software and are interested in getting the two to talk to each other
- You want to be able to build prototypes of physical devices, leveraging the power of JavaScript
Prerequisites
- Prior experience with JavaScript, Node.js, and microcontrollers (such as Arduino)
Materials or downloads needed in advance
- None
This lesson is taken from Node.js for Embedded Systems by Patrick Mulder and Kelsey Breseman.
Publisher resources
Table of contents
Product information
- Title: Using browsers with hardware for embedded systems
- Author(s):
- Release date: August 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491966259
You might also like
book
Home Network Basis: Transmission Environments and Wired/Wireless Protocols
This complete technical guide to home network media, protocols, and implementation is the first systematic technical …
book
Electronic Circuits for the Evil Genius 2/E
The Fiendishly Fun Way to Master Electronic Circuits! Fully updated throughout, this wickedly inventive guide introduces …
book
Service- and Component-based Development: Using Select Perspective™ and UML
This book presents the approaches and practices for the construction of software systems using Select Perspective. …
book
Analog In, Digital Out: Brendan Dawes on Interaction Design
Creativity is an innate human impulse, many people believe, something we’re born with but too often …