The Amazon Echo using Java, IoT, and AWS Lambda Jeff Ramsdale
Introduction
Jeff Ramsdale ● Solutions Architect at Dev9 ● Java Developer Electronics hobbyist ● Certified AWS Solutions Architect Associate ●
What is the Amazon Echo? A voice-controlled, internet-enabled, device providing a natural-language interface to services you may use already. A relatively easy-to-program front-end for any service requiring a simple interactive UI. ● 2 speakers 7 microphones ● ● Bluetooth WiFi ●
What is the Raspberry Pi? Very small low-power single-board computer. ● Runs Linux ● Supports 1080p via HDMI ● Provides a lot of I/O pins ● Model 3 is quad-core 64-bit PC with WiFi and Bluetooth built in ● Vibrant community ● $35!!!
What is IoT? ● Network of everything Often small Internet-enabled devices but ● includes vehicles, back-end services, mobile devices, and appliances ● 50 billion objects predicted by 2020 (Cisco) ● Big data nightmare opportunity Resilient to network interruptions ●
Use Case: Monitoring Seed Starts
Existing Seed Starting Installation
Sensor Values ● Ambient temperature ● Ambient humidity ● Seed bed temperature ● Seed bed humidity ● Light status (on/off) ● Water depth (ultra-sonic)
Adafruit.io Feeds
Adafruit.io Dashboard
Architecture
Amazon Echo Demo
Code Walkthrough
Use Case: UFO LED Control
Existing Installation Cheap plastic fiber optic LED UFO from the Nickel Arcade in Portland, OR
Architecture
Adafruit Huzzah vs Adafruit Wiced Feather Huzzah Breakout Wiced ● 9 GPIO ● More GPIO ● No TLS 1.2 (i.e. no AWS IoT) ● TLS 1.2 (AWS IoT) ● FTDI cord required ($15) ● Micro USB ● $10 ($15 in Feather form factor) ● LIPO Battery charger built in ● $35
Raspberry Pi vs Adafruit Wiced Feather Raspberry Pi Wiced Feather ● Full Linux PC ● Single core/single thread Arduino ● Multi-core compatible ● Low power ● No interrupt-based OS--better for timing- ● Video out critical I/O ● $35!!! ● Lower power ● $35?!
UFO Demo
Code Walkthrough
Resources Adafruit: https://www.adafruit.com/ - American electronics manufacturer DXSOUL: http://www.dxsoul.com/ - Chinese electronics reseller AWS IoT: https://aws.amazon.com/iot/ - AWS IoT Nickel Arcade: http://www.wunderlandgames.com/ - UFO supplies Adafruit Feathers: https://www.adafruit.com/feather - Microcontrollers Adafruit NeoPixels: https://www.adafruit.com/category/168 - Chainable LEDs COLOURlovers API: http://www.colourlovers.com/api - Color name to values
Q&A
Thanks! jeff.ramsdale@gmail.com https://www.linkedin.com/in/jramsdale
Recommend
More recommend