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.
- 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.
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
).
Install the necessary dependencies by running:
npm install serialport @serialport/parser-readline
npm install @kaustubha.mahajani/arduino-js