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

  Рет қаралды 58,119

WaveShapePlay

WaveShapePlay

Күн бұрын

Пікірлер: 41
@elosurfer6238
@elosurfer6238 18 күн бұрын
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
@RockRanchCowboy
@RockRanchCowboy 4 жыл бұрын
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)
@myviewspace
@myviewspace 2 жыл бұрын
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.
@WaveShapePlay
@WaveShapePlay 2 жыл бұрын
I am very grateful for your donation! Thank you, and I glad you find the tutorials useful!
@rluxon
@rluxon 4 жыл бұрын
easy to follow your lessons. thank you so much for taking the time to make the videos.
@WaveShapePlay
@WaveShapePlay 4 жыл бұрын
Thank you for watching Richard!
@MaheshKumar-kt5lv
@MaheshKumar-kt5lv 6 жыл бұрын
Nice way of explaining. Easy for beginners to understand.
@Jacno77
@Jacno77 5 ай бұрын
thanks for making these buddy
@tecnologiaelectrolichan9111
@tecnologiaelectrolichan9111 2 жыл бұрын
muchas gracias por tus videos. saludos desde peru
@Electheo
@Electheo 5 жыл бұрын
Great and helpful video! I used PyCharm to program so some things were a bit different. But you explain the functionality really well!
@DrZylvon
@DrZylvon Жыл бұрын
Thanks, very useful tutorial.
@charlesklein7232
@charlesklein7232 6 жыл бұрын
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"
@sermadreda399
@sermadreda399 6 жыл бұрын
very good explanation and good topic
@EunchanPark
@EunchanPark 6 жыл бұрын
I am happy that you made this video. Thank you !
@matheuscardoso1
@matheuscardoso1 4 жыл бұрын
Thank you! This is really helpful!
@rverm1000
@rverm1000 5 жыл бұрын
so good and simple
@DimPyProg
@DimPyProg 3 жыл бұрын
cool, great, nice
@MayankSingh-tk5vq
@MayankSingh-tk5vq 6 жыл бұрын
Exactly what i want to learn,Thankyou sir.
@Heron31415
@Heron31415 3 жыл бұрын
When l input character 'g' Arduino accepts it like iscii-code (103) and cannot compare it with the symbol 'g' in if-construction. Why?
@najninmansuri9346
@najninmansuri9346 Жыл бұрын
Heyy, Can we not defined the input pin commands in python only, like I don't want to use ide, Can I do that?
@vaughntaylor2855
@vaughntaylor2855 3 жыл бұрын
Thank you!
@markbowring151
@markbowring151 4 жыл бұрын
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
@WaveShapePlay
@WaveShapePlay 4 жыл бұрын
Hey Mark - I am using IDEL the default Python Integrated Development Environment (IDE). It comes with your python download. If you right click the .py file and select 'edit with IDEL' then you will have the option to run the script like I did in the video. It will launch the shell as well.
@amiramiri2845
@amiramiri2845 2 жыл бұрын
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 !
@Heron31415
@Heron31415 3 жыл бұрын
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?
@WaveShapePlay
@WaveShapePlay 3 жыл бұрын
Thank you for your question, and watching! Yes it is possible! You can customize the input/output data for real time data transfers. If you set up the request/read from the python/arduino code, you can set a predetermined rate to request/read data.
@Heron31415
@Heron31415 3 жыл бұрын
@@WaveShapePlay thank you so much! So I have to organize own request/read protocol.
@WaveShapePlay
@WaveShapePlay 3 жыл бұрын
Yes, that is the way to do it! The basics are outlined in this video series. Also, note you can add a time stamp, if you would like. See part 9: github.com/WaveShapePlay/ArduinoPySerial_LearningSeries/tree/master/Part9_AddingTimestamp)
@Heron31415
@Heron31415 3 жыл бұрын
@@WaveShapePlay 👍👍👍
@NguyenDat-sn2pb
@NguyenDat-sn2pb 5 жыл бұрын
how to convert it to int , when i use int(arduinoData) it call the error :: invalid literal for int() with base 10: ''
@acy1335
@acy1335 4 жыл бұрын
I have the exact problem
@niet5647
@niet5647 5 жыл бұрын
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?
@abdelmoumen6233
@abdelmoumen6233 4 жыл бұрын
thaaaank youuu siiir ♥
@wykonos
@wykonos 5 жыл бұрын
omg this video awesome thx
@maartenv.b.1476
@maartenv.b.1476 3 жыл бұрын
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?
@rajeshsingh3717
@rajeshsingh3717 5 жыл бұрын
Is it necessary to have a audrino code else than python code.
@rverm1000
@rverm1000 4 жыл бұрын
serial.Serial doesnt work?
@cgowthamraja548
@cgowthamraja548 5 жыл бұрын
iam getting this error pls help me to solve Get data point?y Traceback (most recent call last): File "ArduinoSerialCom.py", line 16, in userInput = input('Get data point?') File "", line 1, in NameError: name 'y' is not defined
@cubeur4261
@cubeur4261 5 жыл бұрын
I think you should just write 'y' instead of y in line 16. If you just write y, it thinks that it is a variable not a character.
@idilatac8177
@idilatac8177 5 жыл бұрын
I will try to do similar things with Basys3 board using vhdl instead of arduino. I am trying to make vhdl read data which python creates( the data is in the form of an array which consists of 6 columns and x rows) has anyone got related information. I would appreciate very much:)
@jcpole
@jcpole 5 ай бұрын
Just my usual comment - the name of the board is Arduino. It is NOT Ardrino. Please learn how to pronounce it correctly. Again, good content, but you really need to learn how to pronounce Arduino correctly.
Arduino and Python Serial Communication with PySerial Part 1
7:22
WaveShapePlay
Рет қаралды 158 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
How to Correctly Develop Python-Arduino Serial Communication - Complete Tutorial
18:31
Python Tutorial - How to Read Data from Arduino via Serial Port
11:51
Who is Smarter? Engineer vs Chinese 5th Grader
21:08
Cantomando
Рет қаралды 1 МЛН
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,9 МЛН
Why LaTeX?
9:44
Eitan Lees
Рет қаралды 226 М.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 552 М.
(pyserial) communicate to arduino through python
6:47
Tabletop Robotics
Рет қаралды 62 М.
Python Serial Port Commuincation
16:13
Amit Dhanawade
Рет қаралды 45 М.