Рет қаралды 5,709
The topic of today's movie will be serial connection known as Serial, UART, COM, RS232, RS485.
This communication standard has long been known in various types of devices,
but in recent years it has been popularized even more thanks to Arduino and all kinds of microcontrollers,
such as STM32, ESP8266, MSP430, AVR etc.
On the example of two devices: STM32 and RF8000 Power Meter (RF-Power8000), I will show you how to write dedicated libraries for this type of equipment.
I will provide you with basic theoretical knowledge, information about the necessary libraries that you must have.
We will also go through the application development process.
Many viewers of this channel were waiting for this material.
The content of the material will refer to the previous episodes of the #WesołyPython series
- if you haven't seen them - catch up.
• Python #1 - Jak napisa...
I invite you to the material, comments and sharing.
Table of Contents :
00:00 Admission to the Film
01:01 Channel intro
01:35 A quick theoretical introduction to serial connection
03:15 The first test device
04:12 How to install Python libraries - pip install - for serial port
05:24 A description of the basic functionality of the Serial library
05:50 How to find the COM port name in the system
07:37 Sample implementation for numerical data - with an overview
09:09 Try & Except - that is, performing error-sensitive operations
10:26 Methods of sending data over Serial
10:48 Application tests for the first device
11:26 Bytearray - what it is - what it looks like
13:02 How to create a thread for one function, not an entire class
13:52 RF-Power8000 - as the second test device
14:55 How to write a library for RF-Power8000 module
17:14 What is the Split function for
18:02 What is the Replace function?
19:44 Summary of Material and announcement of the next episodes