Arduino + WebSockets II
These postings show how to use WebSockets to display data taken from Arduino and broadcast it to any Browser with WebSocket support.
This project describes how to use WebSockets to display data taken from Arduino and broadcast it to any Browser with WebSocket support. Test your browser here: http://websocket.org/echo.html
Please read the first part of this serie: http://yopero-tech.blogspot.com/2012/02/arduino-websockets.html
First of all we need to decide what data to display and what to control in Arduino from the web page .
In this example I am going to control 3 remote controlled relays that you can buy at your hardware store and I want to display the values from 2 temperature sensors.(DS18S20)
3 main parts of software & hardware(Arduino Board)
This project is composed out of 3 main parts of software apart from the hardware(Arduino Board):
- WebSocket Server:
- MCU (Micro Controller Unit)
- Arduino Board(Vinciduino in my case).
- Arduino IDE or AVR studio.
- Any web server, I use xampp or python to test as localhost