Auycro

Arduino with nodejs

04 Oct 2015

This tutorial is about NodeJS with Arduino….

You can learn how to use Arduino to send and receive data with NodeJS here. In this tutorial, I assume that you hae some experience with NodeJs and also try npm a little before.


  1. First, I will start from NodeJS. This tutorial, I use ‘SerialPort’ in NodeJS to connect with Arduino. Then, please install SerialPort module in your project by the following command
     npm install serialport
    


  2. Create NodeJS script.
  3. Then I will go to Arduino script.
  4. Let’s test your Arduino :)

Reference:

  1. SerialPort
  2. Arduino’s Serial.print()