@kaustubha.mahajani/arduino-js
v1.0.3
Published
Experimental communication library for Arduino over Serial port.
Downloads
270
Maintainers
Readme
ArduinoController
ArduinoController
is a simple Node.js class for communicating with Arduino devices over a serial connection. It leverages the serialport
package to send commands and read messages from the Arduino.
Features
- Send commands to an Arduino via serial communication.
- Read and handle messages received from the Arduino.
- Easy to set up and use in Node.js projects.
Prerequisites
Before using the ArduinoController
, ensure the following:
- Node.js is installed on your system.
- Your Arduino device is connected to a serial port.
- Install the required npm packages (
serialport
and@serialport/parser-readline
).
Installation
Install the necessary dependencies by running:
npm install serialport @serialport/parser-readline
npm install @kaustubha.mahajani/arduino-js