python and the internet of things

9
Python and IoT Using Python in the Internet of Things

Upload: adam-englander

Post on 14-Apr-2017

1.458 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Python and the internet of things

Python and IoT

Using Python in the Internet of Things

Page 2: Python and 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

Page 3: Python and the internet of things

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

Page 4: Python and the internet of things

My IoT Journey

LaunchKeyTwisted IoT Raspberry Pi Intel Edison

NodeBot DaySyn Shop Arduino

CouplaNodeJS Asynch I/O

Page 5: Python and the internet of things

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

Page 6: Python and the internet of things

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.

Page 7: Python and the internet of things

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

Page 8: Python and the internet of things

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)

Page 9: Python and the internet of things

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]