Python and the internet of things
-
Upload
adam-englander -
Category
Technology
-
view
1.458 -
download
0
Transcript of Python and the internet of things
![Page 1: Python and the internet of things](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/1.jpg)
Python and IoT
Using Python in the Internet of Things
![Page 2: Python and the internet of things](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/2.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/3.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/5.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/6.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/7.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/8.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061307/5883fa881a28ab884b8b49d9/html5/thumbnails/9.jpg)
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]