KEMBAR78
IoT with Python | PDF
Internet of Things
Programming Framework
IOT Using Python
Dr. Sanjay Shitole
Associate Professor in Information Technology
Secretary-IEEE-GRSS Bombay Chapter
HOD-Department of Information Technology
Usha Mittal Institute of Technology
SNDT Women’s University, Mumbai.
12 December 2019
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant
monitoring
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Connecting every “thing” around us to the internet is the
fundamental idea of Internet of Things (IOT)
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Figure: IoT Architecture: Source :Opensource for you Sept 2018
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Figure: : Source :Opensource for you Sept 2019
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Figure: IoT India: : Source :Opensource for you Sept 2019
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Figure: IoT India: : Source :Opensource for you Sept 2018
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Figure: IoT India: : Source :Opensource for you Sept 2018
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Figure: Smart Devices Programming framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Figure: IoT gateway framework
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Figure: IoT tailored cloud solutions
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Functional Requirements for a specific solution
Multiple embedded platforms
Homogeneous developing environment: (Code Portability, )
Multiple communication protocols
Data processing support
Python satisfies all the above requirements, as Python-based
IoT tools can be exploited to implement all the IoT
components
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Quick Revision: Python
Python is a general-purpose high-level programming language
widely adopted in different contexts, e.g., data science,
embedded scripting, web programming.
According to Github: Popularity of Python is at number two,
Number one is Javascript.
Reasons fro popularity
Large collection of modules
Growing community
Easy to learn
Compact syntax
Object oriented Paradigms
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
for IoT: Python?
Python is not the language supporting the largest number of
embedded platforms
low-level languages such as C or C++ have been for long the
only viable option
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Source: Feature Article in IEEE by Giacoma Tanganelli et
al.: Rapid Prototyping of IoT
Summary: Why Python for IoT
“Python tools, which can be combined to build a complete IoT
system. In a highly competitive sector, like the IoT market, where
manufacturers compete to push their products, a reduced
time-to-market is crucial. Python, with its eco-system of libraries
and its simple and flexible structure, can help simplifying the
development process, reducing the time required for
implementation and reducing the skills needed by developers.”
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
https://micropython.org/
“MicroPython is a lean and efficient implementation of the
Python 3 programming language that includes a small subset of
the Python standard library and is optimised to run on
microcontrollers and in constrained environments.”
https://youtu.be/5LbgyDmRu9s
The MicroPython pyboard is a compact electronic circuit board
that runs MicroPython on the bare metal, giving you a low-level
Python operating system that can be used to control all kinds of
electronic projects.
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Pyboard
The pyboard is the official MicroPython microcontroller board with
full support for software features.
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
TJ5-ROBOT ESP32 BLE remote control
ESP32 is a low-cost, low-power system on a chip (SoC) series with
Wi-Fi and dual-mode Bluetooth capabilities
https://youtu.be/X4CmH5SQ_Cc
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Smart Thermostat: EPS32 based: Python Vs C
Figure: Rapid Protyping of IoT by Giacomo Tanganelli
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
Indoor air quality
Internet of Things Based Indoor Air Quality Improving System
https://ieeexplore.ieee.org/document/8529813
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
References
G. Tanganelli, C. Vallati and E. Mingozzi, ”Rapid Prototyping
of IoT Solutions: A Developer’s Perspective,” in IEEE Internet
Computing, vol. 23, no. 4, pp. 43-52, 1 July-Aug. 2019.
Opensource for you : September 2019
Opensource for you: September 2018
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
References
G. Tanganelli, C. Vallati and E. Mingozzi, ”Rapid Prototyping
of IoT Solutions: A Developer’s Perspective,” in IEEE Internet
Computing, vol. 23, no. 4, pp. 43-52, 1 July-Aug. 2019. doi:
10.1109/MIC.2019.2927202 keywords: Internet of
Things;Python;software prototyping;IoT solutions;commercial
IoT products;independent developers;development
tools;typical IoT architecture;rapid
Prototyping;Internet-of-things devices;do-it-yourself
solutions;programming languages;Python;Smart devices;Logic
gates;Java;Cloud computing;Internet of Things;Random
access memory;Python;Internet of Things;IoT
prototyping;CoAP,
Opensource for you : September 2019
Opensource for you: September 2018
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
Internet of Things
Programming Framework
Python for IoT
Micropython
Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori
All the best
Have a good day
Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com

IoT with Python

  • 1.
    Internet of Things ProgrammingFramework IOT Using Python Dr. Sanjay Shitole Associate Professor in Information Technology Secretary-IEEE-GRSS Bombay Chapter HOD-Department of Information Technology Usha Mittal Institute of Technology SNDT Women’s University, Mumbai. 12 December 2019 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 2.
    Internet of Things ProgrammingFramework Internet of Things Programming Framework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitoring Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 3.
    Internet of Things ProgrammingFramework Connecting every “thing” around us to the internet is the fundamental idea of Internet of Things (IOT) Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 4.
    Internet of Things ProgrammingFramework Figure: IoT Architecture: Source :Opensource for you Sept 2018 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 5.
    Internet of Things ProgrammingFramework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 6.
    Internet of Things ProgrammingFramework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 7.
    Internet of Things ProgrammingFramework Figure: : Source :Opensource for you Sept 2019 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 8.
    Internet of Things ProgrammingFramework Figure: IoT India: : Source :Opensource for you Sept 2019 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 9.
    Internet of Things ProgrammingFramework Figure: IoT India: : Source :Opensource for you Sept 2018 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 10.
    Internet of Things ProgrammingFramework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 11.
    Internet of Things ProgrammingFramework Figure: IoT India: : Source :Opensource for you Sept 2018 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 12.
    Internet of Things ProgrammingFramework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 13.
    Internet of Things ProgrammingFramework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 14.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Figure: Smart Devices Programming framework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 15.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Figure: IoT gateway framework Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 16.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Figure: IoT tailored cloud solutions Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 17.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Functional Requirements for a specific solution Multiple embedded platforms Homogeneous developing environment: (Code Portability, ) Multiple communication protocols Data processing support Python satisfies all the above requirements, as Python-based IoT tools can be exploited to implement all the IoT components Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 18.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Quick Revision: Python Python is a general-purpose high-level programming language widely adopted in different contexts, e.g., data science, embedded scripting, web programming. According to Github: Popularity of Python is at number two, Number one is Javascript. Reasons fro popularity Large collection of modules Growing community Easy to learn Compact syntax Object oriented Paradigms Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 19.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori for IoT: Python? Python is not the language supporting the largest number of embedded platforms low-level languages such as C or C++ have been for long the only viable option Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 20.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 21.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Source: Feature Article in IEEE by Giacoma Tanganelli et al.: Rapid Prototyping of IoT Summary: Why Python for IoT “Python tools, which can be combined to build a complete IoT system. In a highly competitive sector, like the IoT market, where manufacturers compete to push their products, a reduced time-to-market is crucial. Python, with its eco-system of libraries and its simple and flexible structure, can help simplifying the development process, reducing the time required for implementation and reducing the skills needed by developers.” Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 22.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori https://micropython.org/ “MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.” https://youtu.be/5LbgyDmRu9s The MicroPython pyboard is a compact electronic circuit board that runs MicroPython on the bare metal, giving you a low-level Python operating system that can be used to control all kinds of electronic projects. Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 23.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Pyboard The pyboard is the official MicroPython microcontroller board with full support for software features. Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 24.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori TJ5-ROBOT ESP32 BLE remote control ESP32 is a low-cost, low-power system on a chip (SoC) series with Wi-Fi and dual-mode Bluetooth capabilities https://youtu.be/X4CmH5SQ_Cc Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 25.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Smart Thermostat: EPS32 based: Python Vs C Figure: Rapid Protyping of IoT by Giacomo Tanganelli Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 26.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori Indoor air quality Internet of Things Based Indoor Air Quality Improving System https://ieeexplore.ieee.org/document/8529813 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 27.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori References G. Tanganelli, C. Vallati and E. Mingozzi, ”Rapid Prototyping of IoT Solutions: A Developer’s Perspective,” in IEEE Internet Computing, vol. 23, no. 4, pp. 43-52, 1 July-Aug. 2019. Opensource for you : September 2019 Opensource for you: September 2018 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 28.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori References G. Tanganelli, C. Vallati and E. Mingozzi, ”Rapid Prototyping of IoT Solutions: A Developer’s Perspective,” in IEEE Internet Computing, vol. 23, no. 4, pp. 43-52, 1 July-Aug. 2019. doi: 10.1109/MIC.2019.2927202 keywords: Internet of Things;Python;software prototyping;IoT solutions;commercial IoT products;independent developers;development tools;typical IoT architecture;rapid Prototyping;Internet-of-things devices;do-it-yourself solutions;programming languages;Python;Smart devices;Logic gates;Java;Cloud computing;Internet of Things;Random access memory;Python;Internet of Things;IoT prototyping;CoAP, Opensource for you : September 2019 Opensource for you: September 2018 Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com
  • 29.
    Internet of Things ProgrammingFramework Python for IoT Micropython Case Studies:ROBOT ESP32, Smart Thermostat, Plant monitori All the best Have a good day Dr. Sanjay Shitole, Secretary (IEEE-GRSS Bombay Chapter) www.sanjayshitole.com