This is the best video I've found on this subject, Very clear breakdown of how the data is generated/transferred/handled. Thanks a lot!
@AliG.G4 жыл бұрын
Indeed one of the best by far
@yoente4 жыл бұрын
True
@fibulacat50253 жыл бұрын
This is the best tutorial I've ever seen. Thumbs up.
@chrismartinez97355 жыл бұрын
This is an excellent series. Every module is well articulated. I learned a lot!
@yeshu99857 ай бұрын
quick tip: close ur serial monitor before u start ur python code or else u would end up getting an error
@soumyadipdutta17Ай бұрын
Thanks
@jackmanjls5 жыл бұрын
This is an excellent presentation. Clear, concise and enough detail to make this extremely useful. The only comment I would have is that the rate at which you poll the arduino. From what I roughly calc...The actual conversion took 4.58 µs for 12 bits in single conversion mode with a 2 MHz ADC clock. If you read any faster than that you may get inconclusive data. Any comments?
@markm817 Жыл бұрын
Sir, you said so clear that I can understand the knowledge, thank you wholeheartly.
@rsa45106 жыл бұрын
Absolutely great tutorial! A lot of times, people posting "how to" videos skip the basics in their explanations. This leaves the beginner confused and unable to enjoy the steps associated with learning. I fully understood this tutorial, and I have hope that it will let me debug a related issue I'm having with my own application. Thanks for your work.
@stefanopadoan86845 жыл бұрын
Fantastic! Simple, clear, useful! Thanks a lot!
@ArulFrances4 жыл бұрын
Great Explanation! Keep up the good work! Thanks for sharing the amazing information!
@WaveShapePlay4 жыл бұрын
Thank you for your kind feedback!
@rightdelo2 жыл бұрын
thanks for teaching and breaking it down into simple-to-understand terms. THANKS
@9205aidme4 жыл бұрын
Great work, keeps it really simple, but it works, gave me just the start I was looking for. Running Python 3.8.3
@WaveShapePlay4 жыл бұрын
Great to hear Gregory! That is definitely my goal. Thank you for the feedback!
@vyashas44835 жыл бұрын
bro this was the best video that i found on this topic thx buddy. you explained it very well.
@brandon_wallace4 жыл бұрын
This series on Pyserial is great and really helpful!
@HydeParkCAC4 жыл бұрын
Thank you for posting! It was very helpful to see your coding with explanations such as how to use the decode command.
@WaveShapePlay4 жыл бұрын
Thank you for the feedback Jenny! It is confusing at first, but once you get the hang of it it becomes more clear!
@n95832 жыл бұрын
thank you so much but i have a question can you use the arduino mega instead of the arduino
@SimoneIovane4 жыл бұрын
SerialException: could not open port 'COM3': PermissionError. Why?
@ruancastro59734 жыл бұрын
in my python version (3.7.6) i need to write ".decode('utf-8"')" instead .decode('ascii) . Great Video, thanks from Brazil for share the knowledge with us !
@WaveShapePlay4 жыл бұрын
Thank you for sharing Ruan!
@TyeDougherty4 жыл бұрын
Thank you sir I was wondering why the decode function was not working!
@alexoriginals3 жыл бұрын
Raun, tudo bem, será que você poderia me ajudar? você consegue converter estes valores em integer? a sintaxe valor=int(arduinoData) não funcionou no 3.8
@MilanKarakas3 жыл бұрын
Why it works sometime, and sometime not? Windows 10. Installed serial, but it complains that it is not installed. Once worked, then after changing parameters, does not work. Then again work... confusion.
@cmoulali48356 жыл бұрын
I like your videos on the Python ardiuno ,I excited Ooooo
@Swesh994 жыл бұрын
The first video that is realy helpful, thak you so much!
@darshanpanchal30464 жыл бұрын
Hello sir, can i use pyserial to collect and process data from power analyzer or this works only with arduino?......please answer my question
@WaveShapePlay4 жыл бұрын
If it uses the Serial protocol then yes. Perhaps look up the documentation for your power analyzer and see if there are existing examples.
@JNouveau3 жыл бұрын
is it possible to replace the integer with string?
@diegogomez16405 жыл бұрын
te mereces una medalla de oro al conocimiento, thank you by your aport
@mohamedjaveed13665 жыл бұрын
Thank you so much for this!! Very well explained 👍
@moshk64602 жыл бұрын
hey, why I get this error: serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)
@wisesoar4 жыл бұрын
Hi, Thanks for the video. Is there a video talking how to set up the hardware? Which pins did you use from the adruino to computer? Did you use a USB to serial (e.g. UART) adapter or just the USB cable to arduino? Thanks.
@WaveShapePlay4 жыл бұрын
Hey - I do not have a video for the Hardware setup, I can make one in the future. For this setup I am using standard USB interface for the Arduino UNO. It uses a USB cable type A/B to connect between the Arduino and the computer.
@paulramasco67696 жыл бұрын
This is cool, will be helpful for my data acquisition devices.
@prasadvaidya95634 жыл бұрын
I’m setting the timeout to 2 while creating the serial object. When I’m reading from serial port I’m checking wether data is present in input buffer by : if(obj.inWaiting>0) : If the data packets are interrupted it hangs in there.... I have given timeout value as 2 still it’s waiting indefinitely... why it’s not considering timeout value????
@halitekmekci83044 жыл бұрын
smooth exercise, thanks for that.
@lakshagajyothi2583 жыл бұрын
Hi sir, Is it possible to get the digital inputs and print them as the output using println?
@ManojKumar-pj8tr4 жыл бұрын
Thnx this is the best tutorial I have come across
@WaveShapePlay4 жыл бұрын
Awesome to hear! Thank you Manoj!
@CN-kc3em5 жыл бұрын
How to communication by Usb?
@fernandohood55424 жыл бұрын
what about parity ,stop bit and number of bits?
@thisunnishama42854 жыл бұрын
Hello!....what if i need my python program to give instructions to arduino to do something(like....switch on a specific LED?)
@rverm10006 жыл бұрын
how do you set it up?
@chinmaykulkarni78354 жыл бұрын
Can you explain why we declared ser for serial.Serial()
@waleedaiad34112 жыл бұрын
How can i use hc-12 with arduino using python language?.
@johnger3 жыл бұрын
Hello, I need make file pdf or excel with information of Serial
@perinoveriza16584 жыл бұрын
You are the best brother 👍
@kavyajohnson2253 жыл бұрын
The video is explained excellently .I have a doubt regarding the timeout value , will be it be delaying the whole data transmission. I am doing a data rate calculation. So my doubt is regarding the timeout parameter. It would be very helpful to if I get a reply
@shaider19824 жыл бұрын
Hi there. Will this also work if the python runs from a raspberry pi? Tnx.
@edwintoapanta19755 жыл бұрын
hi how can i send an excel file from the pc to the arduino
@elosurfer623817 күн бұрын
Really good stuff, thank you!
@charanmakkar77324 жыл бұрын
smooth exercise, thanks for it sir , awesome stuff and in best easy way
@WaveShapePlay4 жыл бұрын
Glad you liked it!
@controlautomation68755 жыл бұрын
Hi Good tutorial !!! Please how we can making python send a float or int data to arduino and arduino get it (not str only )???
@afettouchemassinissa91496 жыл бұрын
hello, thanks for the video : good explanation , but for me when I execute the code it returns to me an error : No module named 'serial' ;;;; what should I do
@thomasmarques80405 жыл бұрын
Hi, that was three months ago. Did you find the solution? I have the same error.
@sarthakdas8155 жыл бұрын
I solved it py pip install pyserial and use a conda environment
@sarthakdas8155 жыл бұрын
@@thomasmarques8040 I solved it py pip install pyserial and use a conda environment
@mayanmaster926 жыл бұрын
What if the arduino puts out strings and not bytes? Is there a way to get python to output those strings?
@TheCarloszoom30005 жыл бұрын
Hi, I'm getting the following error: AttributeError: module 'serial' has no attribute 'Serial' The libraries serial and py serial are already installed. Could it be that you have Python 2.7 and i have 3.7. If so, how different would the code be? Regards,
@sarthakdas8155 жыл бұрын
yep getting the same error
@sarthakdas8155 жыл бұрын
I solved it py pip install pyserial and use a conda environment
@lubanmahfuz82714 жыл бұрын
Sir I got error permission Denied problem
@Inkieto926 жыл бұрын
why dont you need the following code in your void setup? pinMode(analogPin, INPUT); don't you have to tell it that it's an input pin?
@mehmetfesli57753 жыл бұрын
This is a very good explanation!!
@joshuacanlas46794 жыл бұрын
great video. May I know the version of python that you are using there and the pyserial. Thanks.
@WaveShapePlay4 жыл бұрын
The version of Python was 3.7.
@kunalgoyal98665 жыл бұрын
Please can anyone tell how to compare this arduinodata to integer value please!!!!
@shaneebkottakkal34914 жыл бұрын
Can we upload python code into arduino
@DurgeshKumar-ui6jq5 жыл бұрын
I am getting the data from python , but there is significant gap can you help you that. Thanks in advance :)
@darminaxel58096 жыл бұрын
Is pit possible to print this to a webpage with cgi/python?
@leonhs14764 жыл бұрын
I get an error that says No module named 'serial'
@WaveShapePlay4 жыл бұрын
Hello - Did you download the pySerial model from the pySerial website? This is not a built-in module, it is from a 3rd party.
@cindyespindola49465 жыл бұрын
This video is great, easy to understeand and it works great. One question if someone can help me, is there a way to get the name of the connected port via script?
@ユンユン-b8y3 жыл бұрын
Thank you, this is really helpful to me!
@roflcopter6456 жыл бұрын
Thanks for making these videos.
@rverm10006 жыл бұрын
do you have a link to import serial?
@gracewood67685 жыл бұрын
Oh wow i didn't know this Library is commonly used in Arduino =). My thesis uses this library to communicate on Router =)
@acy13354 жыл бұрын
Where do I write this code in?
@WaveShapePlay4 жыл бұрын
You can write the python code in IDLE, which is the default Integrated Development Environment (IDE) for Python. For Arduino I would recommend downloading the IDE from their website.
@vaughntaylor28553 жыл бұрын
Very nice tutorial, Thank you!
@joecandoit53415 жыл бұрын
Nice and clear. Thank you! You have a sub.
@swaralipibose97314 жыл бұрын
Best on the best
@NguyenDat-sn2pb5 жыл бұрын
how to convert it to int , when i use int(arduinoData) it call the error :: invalid literal for int() with base 10: ''
@kevindrouglazet23795 жыл бұрын
I might be wrong but since the incoming information are bytes, I would assume that you need to use int.from_bytes() to convert the data from bytes to int .
@NguyenDat-sn2pb5 жыл бұрын
@@kevindrouglazet2379 thank you , i will try your code
@NEGOX475 жыл бұрын
Nguyen Dat worked?
@ishansmith5495 жыл бұрын
very good series
@punjabilog4 жыл бұрын
Thank you very much Sir, Its great video...
@ashabgaming82054 жыл бұрын
THX MAN IT WAS VERY HELPFUL!!! You goa like frome me!👍
@dawkos86314 жыл бұрын
error: module 'serial' has no attribute 'Serial' wtf
@dawkos86314 жыл бұрын
I find out, i installed "pip install serial", instead "pip install pyserial" :D
@WaveShapePlay4 жыл бұрын
Very good! Yup, pip is great but we have to be accurate!
@mrberry436 жыл бұрын
Many thanks this has helped a lot.
@rverm10005 жыл бұрын
so good and simple. Can you send me more info?
@reactorark4 жыл бұрын
Thanks a lot..!! best regads !!! great job,, SUSCRIBED.!
@idealzone36524 жыл бұрын
Im very interesting about this
@WaveShapePlay4 жыл бұрын
Great to hear, it really opens up a lot of applications for us!
@3Dprintingshorts3 жыл бұрын
I love your videos i hope you will make more advance tutorials regarding uart communication as well. Just sub to the channel.Love you bro
@user-sd9ff5yj2t4 жыл бұрын
Nice video. Thanks man!
@muhajirikhsanushabri96446 жыл бұрын
what version of your python?
@YosefYarinEdri6 жыл бұрын
i thing its python 3
@qvd35336 жыл бұрын
3.5.1 you can see it at the top of the screen
@idealzone36524 жыл бұрын
Amazing work
@ДаниилГалимзянов-э4л6 жыл бұрын
Thanks, very good video.
@baykus7903 жыл бұрын
amazing. it works..
@WaveShapePlay3 жыл бұрын
😎
@lazarocamargo4 жыл бұрын
Excellent tutorial!
@emreT_T3 жыл бұрын
If you're getting this error: arduinoData = ser.readline().decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte I found out first byte that coming from arduino is can't convert with decode, so i added a loop like this ; for _ in range (0,2): arduinoData = ser.readline() i am taking first two value and don't use them and added while loop right after this loop. Full code: import serial ser = serial.Serial("COM3", baudrate = 9600, timeout=1) for _ in range (0,2): #It's giving an error for first byte so with this loop we eliminate first two byte. arduinoData = ser.readline() while 1: arduinoData = ser.readline().decode() arduinoData = int(arduinoData) arduinoData = (arduinoData/1024)*5 print(arduinoData) Ps. Yep, my bad that i don't read the error but I have searched this problem for one our and couldn't find anything :')
@oscara.quirozbarrera73125 жыл бұрын
WHY? UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
@Alfayeeed5 жыл бұрын
i got the same errror. Any luck solving it?
@oscara.quirozbarrera73125 жыл бұрын
@@Alfayeeed I am trying with pyfirmata, so far is the best option.
@oscara.quirozbarrera73125 жыл бұрын
@@Alfayeeed try this: from pyfirmata import Arduino placa=Arduino('COM4') print("vamos a entrar al for") for i in range(12): placa.digital[13].write(1) placa.pass_time(3) placa.digital[13].write(0) placa.pass_time(1.5) print("primera conexion real",i)
@tarunkashyap85155 жыл бұрын
try this: arData = arData.decode('ISO-8859-1')
@gebrehiwotmengistu15906 жыл бұрын
This is Great! Thank you
@paulo.galvao6 жыл бұрын
arduinoString = arduinoData.readline().decode("utf-8") #read the line of text from the serial port dataArray = arduinoString.split(',') #Split it into an array called dataArray may be more easy... github.com/labF212/pyhton-arduino/blob/master/test2serial3.py
@EunchanPark6 жыл бұрын
it is a cool video! Thank you
@sacredinclinations3 жыл бұрын
great job thanks
@ShivamKumar-rp8kr4 жыл бұрын
thanks man
@banditboy64444 жыл бұрын
Have my thumbs up!
@WaveShapePlay4 жыл бұрын
You rock!
@emreakman50075 жыл бұрын
Thank you much
@dennisyildirim27084 жыл бұрын
Can I read data from this device; au.element14.com/amphenol-advanced-sensors/sm-uart-04l/ir-laser-dust-sensor-97ac8394/dp/3021584 By only using my computer, and python ? Without Arduino....
@idus11 ай бұрын
its not ardreno Thanks for the video.
@123hihoo4 жыл бұрын
KING!
@idealzone36524 жыл бұрын
Thankyou
@eliredpower96332 жыл бұрын
I love you bro
@charlesklein72326 жыл бұрын
im confused? clearly, your audience is more educated then me. im interested in how to do what you are talking about doing using arduino with "PYSERIAL" which is a program. in order to use python you need a program to run it. two are "ATOM" and "PYCHARM" however their is something called "PYSERIAL" would you consider doing a video on how to get these programs to work, how to install them! im running Ubuntu 16.04 on 64 bit and i have "pIP" but am confused about what to download from pyserial. sorry for my "BABBLING," clearly, im confused. it appears your are doing this manually probably using an "idle" notepad that comes with python.
@WaveShapePlay6 жыл бұрын
Hey Charles! Pyserial is a 'module'. A module is code that someone wrote, for the purpose of re-use. We can utilize modules that are already created, so we do not start our programs from scratch. PYCHARM is an integrated development environment (IDE). The IDE allows us to write programs and run them. We use a combination of our own code and existing modules to create a program, then run the program in the IDE.
@jaredjones6570Ай бұрын
Great tutorial!! But.. and I'm sorry, I can't help myself, Ar-dwee-no Not Ar-dree-no
@razinrafiqrinuddin13732 жыл бұрын
how about receiving from python and reading it on arduino?
@youtuberzp66654 жыл бұрын
when i try to run the code in python 3.7 idle why it is showing invalid syntax?