How to build a Node.js server to control Arduino from a webpage Part 2

preview_player
Показать описание

A popular framework called “Johny-five” is used to control microcontrollers from backend JavaScript. “Johny-five” is JavaScript Robotics & IoT Platform created by Rick Waldron in 2012. It is maintained by a community of passionate software developers and hardware engineers, with over 75 developers contributing to the framework. The framework can be used to control a variety of Arduino-compatible microcontrollers and SoC platforms, including Arduino, Raspberry Pi, Tessel 2, Particle Photon, Intel Edison, etc. For non-Arduino boards, platform-specific IO plugins are available. The IO plugin can make “johny-five” communicate with any hardware platform.

In this project, we will first set up a Node server and implement a backend JavaScript code to control Arduino directly. A “johny-five” backend JavaScript can be run on a Node server to directly control Arduino and Arduino-compatible, boards. This is demonstrated by blinking an LED on Arduino UNO by running JavaScript on a Node server.
Рекомендации по теме
welcome to shbcf.ru