001- Using Python to read Serial data from Arduino / STM32 using threading and curses libraries

preview_player
Показать описание
Welcome to this new WeeW - Stack tutorial,

A new video for the Python library, where the code is from scratch.

If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel

In this tutorial we are going to learn and setup from scratch the communication with Python and a Serial data from a microcontroller (Arduino, STm32, PIC, ...) using the threading library so we can keep the main thread not busy

This tutorial is divided into 7 steps and the topic will be as bellow:

00:00 - Where we go

01:22 - Tutorial Overview

03:21 - Quick circuit & program review

05:00 - Get The serial data

08:18 - Build the Curses

14:55 - Add the Threading

24:34 - Make the sampling

tutorials to get data from STM32F1:
Рекомендации по теме
Комментарии
Автор

Dude this is the only explanation on like the entire internet that made any sense to me. Thank you very much.

gundamassassin
Автор

Hi, I was going to make a final project with the same principle as yours. I wanna ask you a few question to clear up things, as a design desicion, why do you use UART communication instead of USB in STM32? By any chance can I talk to you through another social media? Thanks

ffnook
Автор

Thanks a lot, can you share with us how to send data from stm32 to serial correctly?
i did it but it keeps printing empty lines between values

khaledgamal
Автор

Hi! I'm using a STM32MP157F-DK2, a board that has a microprocessor and a microcontroller. That means that the device it's not going to use an external computer, all the processing goes by itself.

Can I run this code on a STM32MP1? It is because I set the pins for voltage reading and for an Analogical to Digital Conversion with the microprocessor, not with the microcontroller, because of an STM32 employee recomendation.

For me it's kinda weird because the same device will be using the pins and reading the data, that means that I'm not using a serial port because I'm not using an external computer, so how do I set that in the code? Can I write specifically the pins on the code because the Analogical and Digital Conversion has already been made?

Thanks in advance.

andresbonillavega
visit shbcf.ru