python and the internet of things
TRANSCRIPT
Python and IoT
Using Python in the Internet of Things
Who Am I?Director of Engineering at LaunchKeyOrganizer of Las Vegas Python User GroupFounder/Co-Organizer of Las Vegas PHP UGCo-Organizer of Las Vegas Developer UGNational Junior Basketball Coach
Internet of ThingsA global infrastructure for the information society, enabling advanced services by interconnecting (physical and virtual) things based on existing and evolving interoperable information and communication technologies.
Global Standards Initiative on Internet of Things
Recommendation ITU-T Y.2060
My IoT Journey
LaunchKeyTwisted IoT Raspberry Pi Intel Edison
NodeBot DaySyn Shop Arduino
CouplaNodeJS Asynch I/O
Python Internet of ThingsPopular maker architectures allow for interaction via Python:• Arduino – Indirect via serial communication• Raspberry Pi – Directly via Raspbian Image• Intel Edison/Galileo – Directly
Low Level InteractionGeneral Purpose I/O (GPIO) is how the processor interacts with peripherals.Multiple GPIO libraries are available for each maker platform.For direct integration, you can simply access the GPIO directly via file descriptors.
CommunicationsCommunicating with IoT devices is commonly done using three protocols:
TCP/IPBluetooth – Standard or Low Energy (BLE)Near Field Communication (NFC)
Python has libraries for all three
Demo TimeSimple example of blinking an LED with Python.Demo uses:• Python 2.7• Intel Edison• Emutex Labs Wiring-x86
(https://github.com/emutex/wiring-x86/tree/master/examples)
http://spkr8.com/t/63851 (Slides and Rating)Example on GitHub: https://github.com/emutex/wiring-x86/tree/master/examples@adam_englander#launchkey on freenode.net#vegastech on [email protected]