Using an Arduino with Python LESSON 3: Passing Data From Arduino to Python

preview_player
Показать описание
In this video I show how to pass data from the arduino to a PC using Python. This will allow us to animate stunning 3D models and graphics with data coming from the Arduino. In this class, we will be using an Elegoo Super Starter Kit, available below (affiliate link):

With this kit, we will will both be working on the same hardware which will make your life and my life easier.

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

#Python
#Tutorial
#Arduino

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

Damn man. I subscribed this channel 5-6 years ago and today this video appeared in my feed. It gave me a flashback of when I was scared to even touch an arduino. Yours were the first ever tutorial videos I followed and learned a heck of a lot. Fast forward to today, I can confidently create programs, softwares and electonics. It's been a hell of a ride. Just wanna say thank you for the amazing work you do.

vigilante_stark
Автор

I did this on a Mac:

1. Load the program into the Arduino IDE and check: 1 Mississippi...
2. Close the Arduino IDE (very important!) - Close the IDE, but keep the Arduino connected to the Mac.
3. Find your USB port using Terminal: Type ls /dev/tty.* to see your USB port (mine is /dev/tty.usbserial-1110).
4. Correct the syntax in the line: Remove the parentheses and change while( arduinoData.in_waiting()==0): to while arduinoData.in_waiting == 0:.
Thank you, Paul, for this video. I will follow your guidance.

Stanislav
Автор

In a small town in Northern Ireland we learnt to count using "1 Hippopotamus, 2 Hippopotamus, etc.", which seems like a more fitting methodology for where you made this video! Really appreciate all the hard work that goes into your tutorials, have learnt so much over the years that supplemented an otherwise lackluster academic experience, thank you!

TheMightyWej
Автор

A really great tutorial, it has encouraged me to go back to the previous tutorials. Regarding counting when i was a lad (I am 71 now) we didn't have stopwatch enabled phones with us at all times. So if we wanted to measure, for example, a time of about 3seconds we would count "1 Mississippi, 2 Mississippi, 3 Mississippi" .

johndraper
Автор

hey paul, long time no see. Just wanted to thank you. I'm a aerospace student from Brasil and you really helped me get through the undergrad. You rule. I watched almost all of your lessons and you're just the best. Hope you are happy and everything is fine. Wish you all the best.

augustopozzebon
Автор

The image you chose for this episode..is classic! It's really..."All we need to know." 😏

nerdwerx
Автор

Thank you for posting these videos, they have helped me ALOT with my hobbies.

cubesjdd
Автор

Hi Paul. We counted in Mississippi's before you could rush the QB playing touch football at recess. The 80s in southern California. Thanks for another great lesson.

martinlewis
Автор

Yes, I've done my homework, and it looks good. This is my first time with Python, and Visual Studio Code. Getting updated python code to run became much easier when I learnt to make sure that the Terminal window was in use, and pressing CTRL-C to terminate the execution, so I could execute the updated code. Looking forward to learning more. Many thanks for this new series.

keyboardlearning
Автор

You have students from Uzbekistan. We respect you!

RapperKingable
Автор

Mr. McWhorter, thank you for clearing up the "download" versus "upload" terminology!

michaelandvaleriezahirsky
Автор

I learnt to count in "Einundzwanzig, zweiundzwanzig, dreiundzwanzig ..."
Thank you for your amazing videos!

basicallybored
Автор

Wonderful Lecture. I have never come across a better teacher.

harigoogle
Автор

Took a side step and did the entire Python and vPython 3d classes.... I AM IN AGAIN!

PhilipStanway
Автор

It worked with my esp32 and a different version of python. Wonderful tutorial! Love your channel Paul.

Lwiz_Gustavo
Автор

Good tip on the problem with accessing the COM port when the serial monitor / plotter is running. When I first got into Arduino / Python, that used to drive me crazy (I even thought there was something wrong with my Arduino), until I finally figured it out (after much headbanging against a concrete wall... 🤕).

gordonspond
Автор

To quote you at about the 31:42 mark in this video "This is pretty cool!" This was a very enjoyable and informative lesson! Thank you again for being so inspiring. This is going to be fun to learn and play with. I like it!

pokerface
Автор

We counted our Mississippi’s in New York so it is not a southern thing. We also know our Gozintas. 2 gozinta 4 twice. I’m afraid to say that I am folding up like a cheap Walmart lawn chair on these different versions of Python and the virtual environments. I could not import serial! When I did pip install pyserial it said it was already there. I went back to the video for AI virtual environments and it finally clicked. Once I was able to import serial everything went fine. Since I’m at the beginning of visual Python I was not able to create a gauge but I at least created a cylinder that changes length. Can’t wait for next Tuesday!
The safe has attempted 7000 combinations so far. Still no luck. There are 28000 possibilities left to try. I’m trying to land on every third number. Maybe I should have gone every other number. That would have increased my database tremendously. I’m trying to make a video. You make it look so easy!

warrenscorner
Автор

I learned to count in Mississippi! (I grew up on the Gulf Coast of MS)

cassettte
Автор

Thank You Paul for All the Great lessons you have given the world and Hope you will Continue!

larryplatzek