Arduino/C4/Arduino-Programming-with-Python/English-timed

From Script | Spoken-Tutorial
Revision as of 13:00, 22 August 2022 by PoojaMoolya (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


TIME NARRATION
00:01 Welcome to the Spoken tutorial on Arduino Programming with Python.
00:07 In this tutorial, we will learn about
00:11 Arduino - Python toolbox
00:14 Interfacing Arduino with Python
00:18 To record this tutorial, I’m using
00:22 Ubuntu Linux OS version 18.04
00:27 Arduino Shield and Arduino UNO Board
00:32 To follow this tutorial, you should go through the below Arduino spoken tutorial.
00:39 Getting ready for Arduino FLOSS.
00:43 In the above tutorial, you will learn
00:47 How to download the e-book and code files required for the experiments.
00:53 How to upload and compile Arduino programs in Arduino IDE.
00:59 About FLOSS Firmware
01:02 If you are not familiar with Python, go through the Python spoken tutorials on this website.
01:10 I have downloaded Microcontroller Programming with Arduino and Python ebook on my Desktop.
01:18 Refer to chapter 3 in the book.
01:22 Follow the steps and do the installation of Arduino IDE and Python depending upon your OS.
01:31 Installation steps are given for Windows and Linux OS.
01:38 The experiments that are covered in the book are tested in Ubuntu Linux 18.04 and Windows 10 OS.
01:48 Connect the Arduino UNO board with Arduino shield to the USB port of the computer
01:56 Note the below points:
01:59 1. Launch Arduino IDE
02:02 2. Check the port
02:04 3. Upload the FLOSS firmware

That is, in the Arduino IDE, upload the file available at Origin slash tools slash floss hyphen firmware slash floss hyphen firmware dot ino

02:21 As discussed in the earlier tutorial, the above steps have to be done before proceeding further.
02:29 By default, Python does not have the capability to communicate with Arduino.
02:36 We have created a package that makes use of the functions available in pyserial.
02:43 These functions are required to run various experiments on the Arduino UNO board.
02:50 It also establishes a serial communication with Arduino.
02:56 We have to run the Python script to check whether the firmware is properly installed or not.
03:04 It is available at Origin slash tools slash python slash test underscore firmware dot py.
03:14 Open the terminal by pressing Ctrl+Alt+T keys.
03:20 I have already installed Arduino IDE and Python 3.5 in my Linux system as specified in the book.
03:30 Go to the python folder where test_firmware.py is saved as shown.
03:39 Let us test the working of the Python - Arduino toolbox in python.
03:45 Type python3 test underscore firmware dot py to execute the Python code.
03:54 You will see three "ok" messages.
03:58 This shows that the floss firmware and Python toolbox are working properly.
04:05 Next let us run the Python program in chapter 4. That is, Interfacing a Light Emitting Diode
04:14 This program will turn ON the blue LED.
04:19 Switch back to the terminal.
04:22 Let us go to the folder where the led-blue.py program is saved.
04:30 To execute the program, type, python3 led hyphen blue dot py
04:39 Observe the blue LED is turned ON the shield.
04:44 It denotes the Python toolbox and FLOSS firmware are working.
04:50 Do the other Python experiments as specified in the book.
04:56 Points to remember:

Whenever you plug the Arduino UNO board into the computer, check for the port.

05:05 Then execute the commands required for read-write permission
05:11 Don’t upload any Arduino program after uploading the FLOSS firmware to Arduino UNO board.
05:19 This would overwrite the FLOSS firmware.
05:23 Check if the Python test_firmware.py is properly running or not.
05:31 With this we come to the end of this tutorial. Let us summarize.
05:37 In this tutorial, we learnt about

Arduino Python toolbox

05:44 Interfacing Arduino with Python
05:48 The video at the following link, summarizes the Spoken Tutorial project.

Please download and watch it.

05:57 The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

06:08 Please post your timed queries on this forum.
06:12 Spoken Tutorial project is funded by the Ministry of Education (MoE), Govt. of India.
06:19 This is Nirmala venkat from Spoken Tutorial Project, IIT Bombay signing off.

Thanks for joining.

Contributors and Content Editors

PoojaMoolya