Arduino and Python Serial Communication with PySerial Part 2 - Adding User Input

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

In Part 2 we go over how to add more control to our code we developed in Part 1. We add functionality to get a data only when we request it.

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

Thank you so much for this. Using pyserial is so much easier than using pyfirmata. This is going to help me with my every project

elosurfer
Автор

Helped me a lot, thanks for the tutorial!
Also, for other people learning programming, don't forget that ascii code is characters, not int's. I did, and couldn't figure out why python wasn't getting a response for hours (was checking for an integer not a char)

RockRanchCowboy
Автор

Excellent tutorials! Simple, clear, and very useful, not only the one on Serial Communication between Arduino and Python.

These tutorials help me a lot. I have to donate to this channel.

myviewspace
Автор

Nice way of explaining. Easy for beginners to understand.

MaheshKumar-ktlv
Автор

easy to follow your lessons. thank you so much for taking the time to make the videos.

rluxon
Автор

muchas gracias por tus videos. saludos desde peru

tecnologiaelectrolichan
Автор

consider writing a book! i have read a few and now am investigating "PROCESSING" language. your videos are better then the books. consider 3 dimensional "Vpython" or "processing"

charlesklein
Автор

Great and helpful video! I used PyCharm to program so some things were a bit different. But you explain the functionality really well!

Electheo
Автор

I am happy that you made this video. Thank you !

EunchanPark
Автор

Exactly what i want to learn, Thankyou sir.

MayankSingh-tkvq
Автор

Thank you for your examle and expanation. Is it possible to use such method for comunicate PC and Arduino for real time values monitoring tasks?

Heron
Автор

Heyy, Can we not defined the input pin commands in python only, like I don't want to use ide, Can I do that?

najninmansuri
Автор

I'm at the bottom of a very steep learning curve. Can you tell me which text editor you are using with the "Run" command on the ribbon, and does this automatically bring up Python 3.5.1 Shell

markbowring
Автор

how to convert it to int, when i use int(arduinoData) it call the error :: invalid literal for int() with base 10: ''

NguyenDat-snpb
Автор

Is it necessary to have a audrino code else than python code.

rajeshsingh
Автор

Everything works but only when i type 'y', only a y without the single quotations will result in an error. Any ideas on how to fix this?

niet
Автор

When l input character 'g' Arduino accepts it like iscii-code (103) and cannot compare it with the symbol 'g' in if-construction. Why?

Heron
Автор

I assume Serial.println() write the data to serial bus and then Python reads from there! but my python cannot do that because the port is alreadly busy !

amiramiri
Автор

Am I the only one that has to disconnect and reconnect the arduino after sending some code, otherwise it gives an error messege... Does somebody have a solution for this problem?

maartenv.b.
Автор

iam getting this error pls help me to solve

Get data point?y
Traceback (most recent call last):
File "ArduinoSerialCom.py", line 16, in <module>
userInput = input('Get data point?')
File "<string>", line 1, in <module>
NameError: name 'y' is not defined

cgowthamraja
welcome to shbcf.ru