O'Reilly logo

Python Programming for Arduino by Pratik Desai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Method 2 – using Python and Firmata

In the previous chapter, we discussed the benefits of using Python programming that is assisted by Firmata over using native Arduino sketches. The Python-based programming approach provides tangible experience when performing any algorithmic or parametric changes. In this section, we are going to explore these benefits and also learn important Python programming paradigms.

The project setup

Let's make sure that you have done the following before we go ahead with Python programming:

  • Made sure that the hardware components are set up, as described in the system design
  • Connected the Arduino to your computer using a USB cable
  • Uploaded the StandardFirmata sketch back to Arduino
  • Made sure that you have Python and the Python ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required