Introduction
Do you want to know how does web work? Do you want to control your physical micro-controller through a web page on your mobile phone or create a different web using experience with your Arduino. Let’s start from here. Firstly, we are going to learn some basic concept about frontend and backend JS. Then we are going to connect our Arduino to a web browser using node.js tool, html and javascript.
Node.js
“Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux and FreeBSD. “ – from wikipedia.
NODE CAN DO MUCH MUCH MORE!! We are going to use some powerful modules, which are libraries in node.js, to connect Arduino with web page.
Things We are going to cover:
– basic skill of web and node.js
– connect arduino to web page
Things you need:
– Computer (Mac preferred)
– Download and install Sublime Text (a text editor)
– Arduino Uno
– USB cable for Arduino UNO
– Some jumper wire
– 1 LED
– 1 Button
– 1 Potentiometer
– 1 breadboard
Before we start (We will do this together during the workshop):
1. Download and Install Node.js (http://nodejs.org/)
2. Open terminal: type “node -v” + return. If you get something like “v0.10.20”, it was successful
3. Still in your terminal: type “npm-v” + return. If you get something like “1.3.11”, it was successful.
4. Get your circuit ready (-pic.circuit) and link your arduino to computer.
5. Download code from Github. Repo: https://github.com/Zdaxia/Web-Arduino-Workshop
– pic.circuit
LET’S START!!!!!
If you can not come to this work shop. Please finish “Before we start” and follow the tutorial on Github.
https://github.com/Zdaxia/Web-Arduino-Workshop