Your SlideShare is downloading. ×
0
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

JavaOne Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware/ Vinicius Senger e Neto Marin

1,575

Published on

A palestra "Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware" foi apresentada pelo Vinicius Senger e Neto Marin no JavaOne 2010 em São Paulo / Brasil e também em São …

A palestra "Automatizando sua casa usando Java, JAVAME, JAVAFX e Open Source Hardware" foi apresentada pelo Vinicius Senger e Neto Marin no JavaOne 2010 em São Paulo / Brasil e também em São Francisco/USA. também em

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,575
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
26
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Automatizing your house with open source hardware and Java
  • 2. Our team... <ul><li>Vinicius Senger – team leader and architect </li></ul><ul><li>Benedicto Franco Junior – Senior engineer </li></ul><ul><li>Paulo Carlos dos Santos – Electronic engineer </li></ul><ul><li>Jose Luiz Sanchez Lorenzo – Electronic engineer </li></ul><ul><li>Neto Marin – Mobile & Wireless engineer </li></ul>
  • 3. This talk... <ul><li>Is not a product, solution or standard </li></ul><ul><li>It ´s about putting accessible technologies together literally inside your house; </li></ul><ul><li>It’s about community and open source experiences </li></ul>
  • 4. Agenda <ul><li>Introduction </li></ul><ul><li>Open source hardware </li></ul><ul><li>Hands-on automation circuits </li></ul><ul><li>Integration with Java & JavaFX </li></ul><ul><li>Complete architecture demo </li></ul>
  • 5. Introduction <ul><li>Electricity and electronics in our houses: </li></ul><ul><ul><li>Past I: making electricity accessible and cheap </li></ul></ul><ul><ul><li>Past II: making it smaller and faster </li></ul></ul><ul><ul><li>Past III: digitalizing and integrating everything </li></ul></ul><ul><ul><li>Past IV: saving energy and improving intelligence </li></ul></ul><ul><ul><li>NOW: making it simple and open source! </li></ul></ul><ul><ul><li>Future: making automation accessible and cheap </li></ul></ul><ul><ul><li>(all around the world) </li></ul></ul>
  • 6. Introduction <ul><li>Computers Vs. People*: </li></ul><ul><ul><li>Past I: one computer for many people </li></ul></ul><ul><ul><li>Past II: one computer per person </li></ul></ul><ul><ul><li>Today: many computers per person (rich person) </li></ul></ul><ul><ul><li>Tomorrow: many computersa per person (including poor people) </li></ul></ul><ul><li>*from @alegomes </li></ul>
  • 7. Your house tomorrow... (or Today) <ul><li>Advanced memory </li></ul><ul><li>Semantic illumination </li></ul><ul><li>Bluetooth and wifi communication </li></ul><ul><li>Futuristic and gesture control </li></ul><ul><li>Imagine recognition </li></ul><ul><li>Interactive wall </li></ul><ul><li>Open source technologies (HW + SW) </li></ul><ul><li>D.I.Y </li></ul>
  • 8. What do you need to automate your house? <ul><li>Main Board Controller </li></ul><ul><li>Relay circuit </li></ul><ul><li>Dimmer circuit </li></ul><ul><li>Wired and wireless communication </li></ul><ul><li>LED illumination </li></ul><ul><li>Sensors: presence, temperature, light, reed, etc. </li></ul>
  • 9. How much it cost? <ul><li>Main Board Controller </li></ul><ul><li>Each wall socket </li></ul><ul><li>Dimmer </li></ul><ul><li>Communication </li></ul><ul><li>LED illumination </li></ul>
  • 10. Automated house architecture…
  • 11. Agenda <ul><li>Introduction </li></ul><ul><li>Open source hardware </li></ul><ul><li>Hands-on automation circuits </li></ul><ul><li>Integration with Java & JavaFX </li></ul><ul><li>Complete architecture demo </li></ul>
  • 12. Open source hardware <ul><li>You can take, distribute, modify and make money </li></ul><ul><li>Taking back the control about what is happening in our computer </li></ul><ul><li>D.I.Y consumers </li></ul><ul><li>New and exciting market! </li></ul><ul><li>Very big community </li></ul>
  • 13. Rep Rap
  • 14. Monome
  • 15. Segway
  • 16. OSHW Controllers <ul><li>Normally uses microcontroller: single integrated circuit with CPU, memory and I/O. </li></ul><ul><li>Low power consumption </li></ul><ul><li>Normally bare metal </li></ul><ul><li>Many options: Atmega / Arduino, BasicStamp, ARM, Netduino.. </li></ul><ul><li>Some of then support Java, but most cases you need to write some C code; </li></ul>
  • 17. Sun Spot <ul><li>Nice and expansive: U$ 750,00 </li></ul><ul><li>Include 2 Spots and 1 PC station board </li></ul><ul><li>Suppose to have different sensor boards </li></ul><ul><li>Squawk virtual machine </li></ul><ul><li>Small community </li></ul>
  • 18. Sun Spot – mainboard (podemos tirar) <ul><li>The main board includes: </li></ul><ul><ul><li>ARM based (AtmelAT91RM9200) </li></ul></ul><ul><ul><li>4 megabytes flash memory </li></ul></ul><ul><ul><li>Wireless 2.4GH </li></ul></ul><ul><ul><li>JVM embedded </li></ul></ul><ul><ul><li>3.7V 720maH rechargeable battery </li></ul></ul>
  • 19. Sun Spot – sensor board (podemos tirar) <ul><li>The default sensor board includes: </li></ul><ul><ul><li>Accelerometer </li></ul></ul><ul><ul><li>Leds </li></ul></ul><ul><ul><li>Switch </li></ul></ul><ul><ul><li>Light Sensor </li></ul></ul><ul><ul><li>Temperature Sensor </li></ul></ul><ul><ul><li>High current driver (small DC motor) </li></ul></ul><ul><ul><li>3 X Octal Register/Driver (led matrix) </li></ul></ul>
  • 20. Arduino <ul><li>Famous open source hardware project created by Maximo Banzi, Ivrea University </li></ul><ul><li>“ Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. </li></ul><ul><li>It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. “ </li></ul>
  • 21. Arduino <ul><li>Simple board based on Atmega328 MCU </li></ul><ul><li>Cheap: U$ 30 – BIG community </li></ul><ul><li>Limited resources: </li></ul><ul><ul><li>16 mhz </li></ul></ul><ul><ul><li>32k flash </li></ul></ul><ul><ul><li>2k RAM </li></ul></ul><ul><ul><li>6 analolg ports </li></ul></ul><ul><ul><li>14 digital ports (6 PWM) </li></ul></ul><ul><li>Default language is C / C++ using GCC AVR </li></ul>
  • 22. Arduino
  • 23. <ul><li>So simple that you can do your own PCB </li></ul><ul><li>You can take out many components for production </li></ul><ul><li>Very easy to draw and DIY </li></ul>Arduino = simple
  • 24. Arduino <ul><li>Arduino can run Java? </li></ul><ul><li>NO, not the legal Java. </li></ul><ul><li>But YES, www.kaffe.org – not officially Java. </li></ul>
  • 25. Program-ME <ul><li>Brazilian development board based on Arduino </li></ul><ul><li>Arduino + inboard resources: </li></ul><ul><ul><li>LEDs </li></ul></ul><ul><ul><li>4 high current transistors </li></ul></ul><ul><ul><li>Light sensor </li></ul></ul><ul><ul><li>Servo and analog simplified inputs </li></ul></ul>
  • 26. Beagle Board <ul><li>Very nice board for U$ 149,00, good candidate to be the central controller </li></ul>
  • 27. Which one? Price Good for Not good for Sun Spot 750,00 prototyping with wireless and Java production Arduino 30,00 smaller dedicated controller Medium / high process, like video Beagle Board 149,00 medium / high process smaller controllers Raw Atmega < U$ 10,00 production for small dedicated controller prototyping
  • 28. Agenda <ul><li>Introduction </li></ul><ul><li>Open source hardware </li></ul><ul><li>Hands-on automation circuits </li></ul><ul><li>Integration with Java & JavaFX </li></ul><ul><li>Complete architecture demo </li></ul>
  • 29. Controlling Relay <ul><li>Very simple and useful with different applications: </li></ul><ul><ul><li>Wall socket </li></ul></ul><ul><ul><li>Electronic Lock </li></ul></ul><ul><ul><li>Electronic garage door </li></ul></ul><ul><li>Basic circuit components: </li></ul><ul><ul><li>Resistor, transistor, diode, connectors </li></ul></ul><ul><li>Just use 1 digital port for each relay </li></ul>
  • 30. Relay PCB
  • 31. void setup() { pinMode(2, OUTPUT); pinMode(3, OUTPUT); } void loop() { digitalWrite(3, LOW); digitalWrite(2, HIGH); delay(1000); digitalWrite(2, LOW); digitalWrite(3, HIGH); delay(1000); } Arduino Code
  • 32. Demo #1 <ul><li>Introduce the central board controller </li></ul><ul><li>Introduce JavaFX central console </li></ul><ul><li>Show relay usage using Bluetooth </li></ul>
  • 33. Digital Dimmer A/C light <ul><li>More advanced circuit using optical isolator and TRIAC (solid state relay) </li></ul><ul><li>Can control A/C power for: </li></ul><ul><ul><li>Incandescent light </li></ul></ul><ul><ul><li>Shower </li></ul></ul><ul><ul><li>Fan </li></ul></ul>
  • 34. Demo #2 <ul><li>Digital dimmer in action with bluetooth and JavaFX </li></ul><ul><li>Futuristic dimmer </li></ul>
  • 35. RGB Illumination <ul><li>High power and low consumption; </li></ul><ul><li>Can be RGB or one color; </li></ul><ul><li>Very simple to drive: </li></ul><ul><ul><li>Uses three transistor PWM digital ports </li></ul></ul>
  • 36. Going beyond...
  • 37. Wireless in you house Price Resume 433 mhz U$ 15 Simple but can be hard for many transceivers in the same environment. Good to have into house components. Bluetooth U$ 60 Very trustable, good for cell phone control Wifi U$ 100 Large distance, is expansive to have into house components, but perfect for central controller xBee U$ 30 The best choice, good price and many working mode X10 >U$ 200 Best choice for AC control
  • 38. Best Wireless Architecture
  • 39. JavaFX <ul><li>Our choice because: </li></ul><ul><ul><li>It’s simple and rich </li></ul></ul><ul><ul><li>Simple to integrate with wireless communication </li></ul></ul><ul><ul><li>Simple to integrate with Sun Spot, Arduino or any other else; </li></ul></ul><ul><ul><li>Java RXTX; </li></ul></ul><ul><li>DEMO JavaFX code with Arduino </li></ul>
  • 40. Conclusion <ul><li>Many choices to automate your house by yourself </li></ul><ul><li>Open-source hardware and software make it easy and acessible </li></ul><ul><li>Do it yourself is a reality! </li></ul><ul><li>Cheap & fun! </li></ul>
  • 41. More... <ul><li>www.eletronlivre.com.br </li></ul><ul><li>www.globalcode.com.br </li></ul><ul><li>www.arduino.cc </li></ul><ul><li>www.sunspotworld.com </li></ul>
  • 42. More... <ul><li>Twitter: </li></ul><ul><li>Vinicius Senger - @vsenger </li></ul><ul><li>Jose Luiz Lorenzo - @jllorenzo </li></ul><ul><li>Neto Marin - @netomarin </li></ul><ul><li>Benedicto Franco - @benefrancojr </li></ul><ul><li>[email_address] </li></ul>

×