filmov
tv
Raspberry pi Node.JS Webserver control LED

Показать описание
Source code and more details.
My Website
My Blog
Tel .6681-6452400 ( Thailand )
Raspberry pi NodeJS Webserver + WebSocket Control LED
This article show how to use raspberry pi to be NodeJS webserver and control LED via websocket.
What is WebSocket?
WebSocket enables bidirectional communication in real time over the web.
WebSocket can be run together with a normal HTTP server. You can click a button in a web browser, and enable a GPIO on your Raspberry Pi which turns on a light in your house. All in real time, and with communication going both ways!
Hardware
Raspberry Pi Board
LED
Push Button Switch
Resistor 100 - 470 Ohm ( for LED )
Resistor 1K - 50K Ohm ( for Pull-up switch )
Source Code
My Website
My Blog
Tel .6681-6452400 ( Thailand )
Raspberry pi NodeJS Webserver + WebSocket Control LED
This article show how to use raspberry pi to be NodeJS webserver and control LED via websocket.
What is WebSocket?
WebSocket enables bidirectional communication in real time over the web.
WebSocket can be run together with a normal HTTP server. You can click a button in a web browser, and enable a GPIO on your Raspberry Pi which turns on a light in your house. All in real time, and with communication going both ways!
Hardware
Raspberry Pi Board
LED
Push Button Switch
Resistor 100 - 470 Ohm ( for LED )
Resistor 1K - 50K Ohm ( for Pull-up switch )
Source Code