Serial Communication: Talking to the Web

Sharing the basics on how to connect your hardware device (Arduino) to a Web browser. 

* For MAC users

  • 1.) D/L Node.js and it will automatically install somewhere on your computer. You will call Node.js through Terminal 
  • 2.) On Terminal create a folder or call your files. 
  • cd, cd desktop, mkdir nodeSerialExample    or     cd nodeSerialExample/, node index.js
  • 3.) Find your serial port and install it from Terminal
  • npm install serialport  (/dev/tty.usbmodem411)