A complete end-to-end starter project for send/receive commands from an Arduino board on web using Angular.
This project consists of three parts:
The arduino firmware and Node server should run on the same device. The Angular client can run on any web device that can connect to the Node server through network.
First clone the repo:
git clone https://github.com/ourarash/arduino-node-angular.git
Upload serial.ino to your board.
Find out the name of the serial port from Arduino Tools menu.
Use the serial port name instead of <SERIAL_PORT_NAME>
below:
cd arduino-node-angular/serial-websocket/
npm install
node examples/simple.js --serialPortName="<SERIAL_PORT_NAME>" --serialPortNameRate=9600 --webSocketPortNumber=8081
First make sure Angular CLI is installed.
cd arduino-node-angular/angular-websockets-client
npm install
ng serve