Python Tutorial - How to Read Data from Arduino via Serial Port

preview_player
Показать описание

These tutorials assume some basic understanding of Python syntax. If you are a beginner, there are plenty of resources available to quickly learn enough syntax to follow along.

Рекомендации по теме
Комментарии
Автор

It is so great when one of the fist things that look for is exactly the one you need. Thank you very very much for this video.

m.s.
Автор

Hey Andrew! Great tutorial! My guess is that you are new to python and have experience in either C/C++ or Java from your for loop. In python, you can iterate over a list (portList, in your case) with just add the below code after line 4.

for port in ports: # You could replace “ports” with serial.list_ports.comports() to remove line 3 in your code.
if port.startswith(“COM” + str(val)):
portVar = “COM” + str(val)

^this would eliminate the necessity of code from line 6 to line 16.
Kudos to you for helping me learn serial communication using Python.

cdhiva
Автор

After literally 3 hours of trying to install pyserial, your code finally came alive. 100% what I wanted. Now I just have to see how to write the data in a file, preferably .csv. As someone that has only coded minecraft blocks on a RPi3, how I find another video like this hahaha

Bularistano
Автор

Thanks a lot mate! Great tutorial, explained better than the actual documentation. 👍

clicksandbeeps
Автор

you are literally a God on earth. Thank's for saving me

hitterobr
Автор

It would be great if you make a complete video starting from how you setup the arduino and the temp sensor ^^.

subrotoxing
Автор

God please bless this guy with a lot of pizzas and money and grant his every single wish

tank_tales
Автор

Great explanation thank you, saved me ton of time.

engineering-problems
Автор

Thank you so much. This is great tutorial. Recommended!

usersb
Автор

Thanks a lot dude for this wonderful tutorial. It helps me a lot.☺✌

aarjudixit
Автор

Thank you for this, it was very helpful!

mohamednaimi
Автор

thnx dude.. this video really helped a lot!

devyani_t
Автор

thamks so much for this i apreciate it

nouirimohammedelmehdi
Автор

How to display for 2 values like temp, pressure???

lavanyau
Автор

Hello ! Thanks for the tuto ! Does it works with Linux on a raspberry pi ?

noe
Автор

Thanks a lot. This is what I want to learn.

pnthklk
Автор

Can you do the reverse send from python to serial monitor? I really need it

adeddy
Автор

Hello, very nice tutorial. I have been working on the opposite to this video content i.e. i have to send a list of integers from python to arduino. but i end overflowing the serial port and arduino going crazy. Please do a tutorial on that. THanks

syedfawad
Автор

Great video! Would you know how to read the same kind of data but coming from a WiFi connected Arduino such as the Arduino Uno R4 WiFi (not connected to a USB port)?

ferrari
Автор

Hello
I am looking for the equivalent of : in matlab .

benbenameur