Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Arduino With Python: How to Get Started (Summary)

Microcontroller platforms are on the rise, thanks to the growing popularity of the Maker Movement and the Internet of Things. Platforms like Arduino are receiving a lot of attention in particular, as they allow developers just like you to use their skills and dive into electronic projects.

You learned how to:

  • Develop applications with Arduino and Python
  • Use the Firmata protocol
  • Control analog and digital inputs and outputs
  • Integrate sensors with higher-level Python applications

You also saw how Firmata may be a very interesting alternative for projects that demand a PC and depend on sensor data. Plus, it’s an easy way to get started with Arduino if you already know Python!

Download

Course Slides (.pdf)

23.7 MB

Download

Sample Code (.zip)

3.7 KB

Kevin Walsh on April 11, 2020

Thanks, i learned a lot. Will be ordering my supplies so that i can play around and continue to learn how to use Python in this manner. My son also has several applications on his small farm that he would like to automate if possible.

David Wright on April 17, 2020

Thank you for this very informative course. I enjoyed going through it and am excited about expanding on what I have learned.

avalidzy on April 19, 2020

Motivates me to acquire a couple of starter kits involving Arduino and RaspberryPi. Thanks Chis for your presentation! ;)

dmurph68 on May 15, 2020

totally awesome

stefanhofmann2 on June 1, 2020

Hi, nice Tutorial!

Question:

Can you explain how to configure an I2C device with pyfirmata or pyMata and develop a library for the ADS1015 ADC converter from Adafruit. How to deal with the datasheet. How to select the register pointers. That would be Mega! The goal should be to be able to independently develop a library for all I2C devices on the market using datasheets.

Chris Bailey RP Team on June 2, 2020

Hi @stefanhofmann2, Thanks! I’m glad you liked the tutorial. The short answer is unfortunately no. I had to actually google all of the things you were describing in your comment. I think you are referring to i2C, because I typed 12C first, and the Analog to Digital convertor I found on Adafruit. I think the Adafruit community and forums may be more likely to help you on your more advanced search. I think your goal is great, and there is a bunch of open source development going on in that space. The circuit python stuff is really great also, and worth checking out. You may also find some other members in the slack who are interested in deeper embedded electronics.

DW on June 9, 2020

Great introductory course! Many thanks.

byronnelson on July 26, 2020

First exposure to firmata interested in possibilities of having a Raspberry Pi controlling pins on the Arduino you have opened a new world of possibilities… Thanks!

Become a Member to join the conversation.