© Indira Knight 2018
Indira KnightConnecting Arduino to the Webhttps://doi.org/10.1007/978-1-4842-3480-8_3

3. Arduino to Front End Part I

Indira Knight1 
(1)
London, UK
 

In Chapter 2 you learned how to create a web server with Node.js and use it to send data to a web page. In this chapter you will start sending data from an Arduino to a Node.js server and use the data on a web page.

The data will be coming from a switch button connected to an Arduino and into your computer via a serial port. You can import this data into a Node.js server and use it on a web page. By the end of this chapter, you will have a web page with a colored square on it, and the square will change color each time you press the Arduino button. Figure 3-1 is an example of what you ...

Get Connecting Arduino to the Web: Front End Development Using JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.