Read #arduino Serial Monitor Using #nodejs
▻https://hackernoon.com/arduino-serial-data-796c4f7d27ce?source=rss----3a8144eabfe3---4
This is a short tutorial article on how to read the serial port values from arduino to in NodeJS.MotivationSo, there was a project I was working on where I had to fetch the data from serial monitor in my node console and then using web sockets display the data in a web based application. But, I was having a hard time figuring out how to fetch the data, I explored and found serialport npm module, but the output it gave was in form of buffer, not the exact word I wanted. After spending some time, I was able to figure out how to do it. Hence, I am sharing this so that it can help anyone who is trying to do the same.How does arduino and other peripherals communicate with Laptop?In most of the cases, the answer is “Serial Communication”. With serial communication, the data can be sent bit by (...)