Python Programming for IIoT
Learning outcome:
1. Install Python and write your first program
2. Describe the basics of the Python programming language
3. Use variables to store, retrieve and calculate information
4. Utilize core programming tools such as functions and loops
5. Explain the principles of data structures & how they are used
6. Create programs that are able to read and write data from files
7. Store data as key/value pairs using Python dictionaries
8. Accomplish multi-step tasks like sorting or looping using tuples
9. Use regular expressions to extract data from strings
10. Describes the basic functionality of the Raspberry Pi B+ board
11. Learn Linux basics and get an overview of Raspian Linux distribution.
12. Set up the pins, apply digital voltages, and use the Tkinter Python library.
Learning Objective:
This course aims to teach everyone Python programming needed for the IoT devices and the
IR 4.0 industrial automation, electronic, and electric. The course starts with teaching the
basics of Python, and then it moves to design and develop fun and practical IoT devices. In
addition, students will learn how to set up up the Raspberry Pi environment, get a Linux
operating system running, and write and execute some basic Python code on the Raspberry
Pi. Students will also learn how to use Python-based IDE (integrated development
environments) for the Raspberry Pi and how to trace and debug Python code on the device.
Also, they will learn how to set up the pins, apply digital voltages, and generate Pulse Width
Modulated signals.
Course content:
NO. CONTENT / ACTIVITIES HOURS
• Introduction and Python installation 7
1. • Expressions and Conditional
• Functions
Quiz
2. • Loops & Iterations 7
• Strings
• Lists, Dictionaries, and Tuples
Quiz
• Respberry Pi board, processor 7
• Respberry Pi Vs Arduino
3. • Respberry Pi setup, configuration, and overclocking.
• Linux login, accessing files, and permissions.
• Linux Graphic user interface
Quiz
• Input/output pins 7
• Use the GPIO Python library to access the GPIO pins
4. • Tkinter Python library and how it can be used to access pins
Quiz
Hardware Requirements:
A Raspberry Pi B+ board
An HDMI cable,
A USB keyboard and mouse,
A USB WiFi adapter.
CanaKit Raspberry Pi 2 Complete Starter Kit with WiFi Adapter.
1 breadboard
6 wires with female leads, 24 AWG (or 2 servo cables)
8 wires which can fit a breadboard (24 AWG)
3 LEDs
2 pushbuttons which can be mounted onto a breadboard
3 1 KOhm resistors
2 10 KOhm resistors