Nicolas's hacks

Preview:

DESCRIPTION

Ma présentation de ce que j'ai montré aux RMLL 2013 dans le cadre du hacker space. 1- Gérer des feux tricolores arduino/raspberryπ/ruby 2- Le coffe-maker de Benoît Gautier

Citation preview

Nicolas's Hacks#DIY #Arduino #TDD #Ruby #raspberryπ

<Nicolas Ledez>

Orange Business Service

IT&L@bs

IT&L@bs

Ruby Cloud Architecture

Human coders news / Ruby

</Nicolas Ledez>

Il était une fois• @gcollic me montre / prete un feu tricolore USB

• Mais :

• DLL

• Pas vraiment Open Source

• Ruby ?

Liste de course

Hacker ?

Arduino en 5

minutes

TDD JS / @gcollic22 juillet 2012

Version USB/Arduino

https://github.com/nledez/traffic_light -> Code Arduino / Librairie Ruby

https://github.com/nledez/traffic_light_server -> Serveur ultra simple (Sinatra)

https://github.com/nledez/rspec_traffic_light_formater -> Formateur Rspec

Et après ?

Discutions avec @organicweb

Comment industrialiser ?

Etc.

Version Ethernet pour l'entreprise

Achat matériel

Arduino -> 20€

+ Ethernet ?

Arduino Ethernet shield -> 33€ (total 53€)

Raspberry π -> 37€ -> hummm

Raspberry π

Raspberry π -> 37€

Un vrai OS (sur carte SD)

Un port HDMI + RCA

USB (Clavier, Souris, etc.)

Ethernet !

GPIO !

Une LED ?

Encore un peu ?

API v1.0

/devant/green/0

/devant/red/1

/gauche/green/0

/gauche/red/1

Mais je ne suis pas qu'un dev !

DEMO

Parce que ça marche pour de vrai !!!

Chez vous

https://github.com/nledez/traffic_light_pi_server

https://github.com/nledez/traffic_light_pi_server_example

Conclusion

Ø Ethernet -> Arduino faible consommation, etc.

Si besoin Ethernet / WiFi -> Raspberry π -> "Plus de boulot"

Références

https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/gpio-examples-1-a-single-led/

http://benoitvincent.fr/tuto/

Questions ?

Coffe Maker

RF Module

RF Module

RF Module

RF Plug

Script & crontab

Merci

@nledez !

nicolas.ledez.net