GithubHelp home page GithubHelp logo

oswaldpale / controle-led-rgb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pineli/led-rgb.iot

0.0 2.0 0.0 488 KB

Controle de led RGB com Node.JS + socket.io + Johnny-five + Arduino

License: MIT License

JavaScript 85.38% HTML 14.62%

controle-led-rgb's Introduction

Controle de led RGB com Node.JS + socket.io + Johnny-five + Arduino

Depois de ver o Meetup do Nodebr de São Paulo, mais especificamente a palestra do Paulo Pires e do Alan, resolvi tirar a poeira do meu Arduino e testar o Jhonny-Five e já aproveitando para baixar o socket.io 1.0 e ver tudo rodando.

Instalando

git clone [email protected]:Pineli/Controle-led-rgb.git
cd Controle-led-rgb
npm install

Módulos utilizados

  • johnny-five
  • express
  • socket.io

A documentação do Johnny-Five pode ser encontrada aqui

Agora conect seu Arduino no cabo USB, faça o upload do Example > Firmdata > StandandFirmData

Executando

node app.js

No navegador abra a url:

Instalando

localhost:3000

Selecione a cor preferida e a mesma será enviada via Websocket ao NodeJS/Johnny-five e que fará com que o led RGB reproduza a mesma cor, ou cor aproximada, a selecionada.

Circuito utilizado

Arduino imagem retirada da documentação oficial

Demonstração

ScreenShot

License

Licensed under the MIT license.

controle-led-rgb's People

Contributors

manuelcqe avatar pineli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.