LESSON 1: Using Python With Arduino

Today we are going to start a new series of lessons that will allow you to take your Arduino projects up to the next level. Hopefully you have been through my 20 lessons on using the Arduino. If you are not familiar with the Arduino, you should start with those lessons. If you are familiar with Arduino, you can just right into this series of Lessons.

One of the major limitations of the Arduino IDE is its limited ability to interact with the user.  You can print text to a simple serial monitor text box, or get text input from the user. You can open up a new world of possibilities by using the programming language python to interact with the Arduino. Python combined with Arduino is a powerful combination what will drastically increase the WOW factor of your projects.

The video above will show a cool project that will hopefully motivate you to undertake this series of lessons. Python is a really cool language, and now that you know Arduino, it will be a breeze to learn Python!

28 thoughts on “LESSON 1: Using Python With Arduino”

      1. I don’t have an arduino yet. I just heard about combining RPI with arduino then I though “Why I need for now a RPI? I can combine it with my computer”. And then I came across with these awesome tutorials. Can’t wait to buy Arduino.

  1. Hello sir your videos are just amazing.
    I want to know which led you have used the set of 4 led’s that are attached to arduino i want to know that and whats the use of that.


  2. You know, not every one is on a high speed broad band connection to view the YouTube videos. Plus, I can’t copy-paste code from videos. Call me old-fashioned; but, lessons exist on ‘pages’ not videos.

  3. Hello Mr.Paul McWhorter,

    First of all I want to congratulate you about this wonderful way In explanation ,which is very nice ,smooth ,understandable Way, but I want to ask why did you chose Python ?
    And the Python language is it good language to use with more Complex projects?

    Thanks a lot for this great effort and wish you all good luck
    Best regards

    1. Alaa,
      I chose Python for several reasons:
      1) It is free to anyone to download.
      2) It is easy to understand.
      3) It can be used to teach object oriented program with classes and objects.
      4) It is very easy and intuitive to manipulate strings
      5) It is easy to use python to create graphs and 3D visualizations
      6) It is different than C. The arduino language has a C feel to it. If you learn arduino and then later in college took C, I think you would be comfotable. Therefor for my high school students I wanted them to learn a C-like language, and then a non-C-like language.
      7) I know python, so therefor I can teach it.
      8) I am really trying to teach engineering and not computer science. As an engineer working on engineering projects, I am looking at software as something necessary to get my project working. Hence, I am not teaching formal computer science, but teaching Engineer-want-to-bes how to hack up a program that will make their project work.

      Thank you for your question. Hopefully it makes sense what I am trying to do.

      1. Hello Mr.Paul McWhorter,

        sure it makes sense …in a one word it is wonderful what you are doing and I’m by my self one of the biggest fans of yours

        best regards


  4. Hi to all,
    one question (as an Arduino starter): What do I need to buy to complete this course? Any starter kit available? Background: I am doing a course learning Python with refugees from Syria. To get mir practical I want to step to your lessons to have more fun.

      1. Sorry for my (stupid) question again: You are using a ultra-sonic sensor in your project. This seems not to be included in the kit. What additional parts do I need beside the inventors kit? I just want to make sure that I order everything to directly jumpstart into your lesson!

        1. Each lesson shows what equipment is needed. Besides the sparkfun kit, I can think of the Adafruit GPS board, the SD card reader and the ultrasonic sensor off the top of my head, but it really depends on which series of lessons you are going through.

  5. Wow, I am totally stun at the amount of information and the lessons that you have posted on your website. This is exactly what I was looking for – someone to take me by my arm and show me what all I can do with Ardunio, Raspberry PI and BEAGLEBONE especially when there are so many information out there about these devices. I have been looking everywhere on the Internet for some guidance in respect to these devices and now I found it. I have been looking at these devices for some time now and wanting to build or do something with them for self-learning and maybe build a product that will solve a problem or help someone in the world. Thank you again for your website and the lessons…. Now I have a reason to buy these hardware ASAP…. 🙂

  6. sir i want to speek with you sir really you are great because it is the very expansive project for me thanking to you for giving the project to the world. much more ideas will developed in this concept. once again thanking you sir.

  7. Please say im dum bcoz i tried to learn arduino code but found it hard..the best i understood was led group blink or fade or sensor maps to a servo..do u think its easier to learn Python..i have many great arduino ideas but stuck in my own retard head…plz advise.

  8. Hello sir!
    I am highly thankful to you for the arduino series.I have watched the whole series but sir you have broken your promise and that is to teach us how to make a space balloon/probe.I really wish to make one and require a guidance for a great teacher like you.Hoping an early reply from you.

  9. I just got into Arduino development and found this GEM of a website! Awesome stuff! Very excited to implement Python with my hardware! Thanks sir!!!

  10. Master
    you are great … it’s my dream since childhood that how my instrument work according to my program …you make my dream true…
    i really thanks to you from my bottom of my heart

  11. Hello Sir Paul,
    I am really grateful for your website and videos, I use it not only for my professional growth, but to teach my students as well. I am not only using your content, but even your approach in teaching as well. I am both a licensed electronics engineer and a licensed professional teacher here in the Philippines, and I really use your website regularly. Looking forward for more of your lessons here. God bless and more power!

  12. Hello is it possible to compile python codes on arduino nano, without writing any arduino codes??? Means arduino should be compiled only using python codes without writing C codes in arduino IDE. Can it be done.

Comments are closed.