Casa Inteligente com Python e Arduino

61
Globalcode – Open4education Trilha – Internet das Coisas Relsi Maron

Transcript of Casa Inteligente com Python e Arduino

Page 1: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Trilha – Internet das CoisasRelsi Maron

Page 2: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Casa Inteligente com Python e Arduino

Page 3: Casa Inteligente com Python e Arduino

Globalcode – Open4education

- http://github.com/relsi- http://pt.slideshare.net/relsi

Quem?

Page 4: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Para Quem?

Page 5: Casa Inteligente com Python e Arduino

Globalcode – Open4education

- Makers- Hobistas- Curiosos- Estudantes

Para Quem?

Page 6: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Incentivo

Page 7: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Incentivo

Page 8: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Incentivo

Page 9: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Incentivo

Page 10: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Domótica

Page 11: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Domótica

Page 12: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Domótica

Page 13: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Domótica Open

Page 14: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Domótica Open

Page 15: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 16: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 17: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 18: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 19: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 20: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 21: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 22: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Arduino

Page 23: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Mais uma P*#! em C?

Page 24: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Teóricamente, sim

Page 25: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Controle via PC

Page 26: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Posso programar com o que eu quiser?

Page 27: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 28: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

- Software livre- Baterias incluídas!- Sintaxe simples e clara- Linguagem de altíssimo nível (VHLL)- Interpretada e interativa- OO, Procedural e funcional- Multiplataforma- Multipropósito- Muito Foda

Page 29: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

- Aplicações Desktop- Aplicações científicas- Jogos- Computação gráfica- Aplicações Web- Robótica- Ensino

Page 30: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 31: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 32: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 33: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 34: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

Page 35: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python

http://docs.python.org/2http://docs.python.org/3

Page 36: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

Page 37: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

Debian/ Ubuntu/ derivados:sudo apt-get install python-serial

Window:http://pypi.python.org/pypi/pyserial

Page 38: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

https://gist.github.com/relsi/c3251fabc9f9d4bea86a

Page 39: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

https://gist.github.com/relsi/535da4442093b8bf5332

Page 40: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

https://gist.github.com/relsi/148a977b401f91c3eab7

Page 41: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Python e Arduino

https://gist.github.com/relsi/535da4442093b8bf5332

Page 42: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 43: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

- Framework de desenvolvimento web full stak- Multiplataforma- Criado por Massimo di Pierro em 2007- Foco no aprendizado- Sem instalação ou configuração

Page 44: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 45: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 46: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Model

View

Controller

Page 47: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

http://web2py.com/book

Page 48: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

RiveScript é uma linguagem de script para chatbots, simples, fácil de aprender e com uma sintaxe amigável.

https://github.com/aichaos/rivescript-python

Page 49: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

https://gist.github.com/relsi/136844b6a2ed8aa57041

Page 50: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

https://gist.github.com/relsi/f6e302a66d8f7e09969e

Page 51: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

https://gist.github.com/relsi/136844b6a2ed8aa57041

Page 52: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

https://gist.github.com/relsi/136844b6a2ed8aa57041

Page 53: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 54: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

S.A.R.I.A é um projeto que visa desenvolver um sistemade automação residencial livre, baseado no Arduino,com inteligência artificial.

Através do sistema você poderá acessar a sua residência em qualquer lugar, através da internet, além de receber,também através da internet, informações em temporeal sobre eventos e sensores.

S.A.R.I.A possui uma inteligência artificial com com-preensão rudimentar de linguagem natural e voz.

Page 55: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

- Python- pySerial- Arduino- web2py- Rivescript- meSpeak.js:

Page 56: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 57: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Page 58: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

WebSocket é uma tecnologia que permite a comunicação bidirecional sobre um único soquete TCP.

Ele é projetado para ser executado em browsers e servidores web que suportem o HTML5.

Fonte: wikpedia

Page 59: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Tornado é um framework web Python e uma biblioteca de comunicação assíncrona.

Usando uma comunicação não bloqueante consegue atender dezenas de milhares conexões simultâneas,

tornando-o ideal para trabalhar com websockets.

Page 60: Casa Inteligente com Python e Arduino

Globalcode – Open4education

IoT com Python e Arduino

Roda o tornado:

Envia a mensagem:

Recebe e processa a mensagem:

Page 61: Casa Inteligente com Python e Arduino

Globalcode – Open4education

Perguntas?

Obrigado!

- http://github.com/relsi- http://pt.slideshare.net/relsi