Can the Arduino be programmed in Python?
- Steven Belanger
- Oct 19, 2021
- 1 min read
Short answer, yes. Despite having its own language similar to C++, Arduino can be programmed in Python. As a matter of fact, Arduino works very well with Python language for uses that require integration and other physical devices. While it is possible, from the sounds of it, you would need some sort of interpreter for it to properly work.
There is a project on Github that seems to be in the works to accomplish this called the Python-Arduino-Prototyping-API (Links to an external site.). Primarily it would be used for simple projects and would provide very basic functionality such as digital I/O and analog I/O. As one user described on arduino.stackexchange.com (Links to an external site.), "This project is a bit of a hack at "programming" the board using the serial connection. It passes the commands over the serial connection to a sketch running on the board which then "executes" the Python command."
After hearing this, I'm excited that I took some time to read up on some Python programming books. Maybe it will be useful in our project moving forward.
Comments