Python for Arduino - Guide for Begginers

PYTHON FOR ARDUINO
IN THIS TOPIC WE WILL DISCUSS ONLY PYTHON FOR ARDUINO (UNO, MEGA and ETC.)
First you need to install Python 3 on your computer.
Then install pySerial through PIP.
Finally, enter this code to test:

import serial
port = serial.Serial('com4', 9600)
port.write(b'5')

And then check your Arduino for lighting TX/RX lights. If they are lighting it means that everything is fine! :slight_smile:

Python - Arduino demo
Python GUI demo

They may need a little modification for Python 3 as they were written with 2.7

And see Serial Input Basics - simple reliable ways to receive data on an Arduino.

...R

Robin2, yeah! Thanks!

IN THIS TOPIC WE WILL DISCUSS ONLY PYTHON FOR ARDUINO (UNO, MEGA and ETC.)

Please let me know when you publish any Python code for the Arduino

UKHelliBob, I will publish codes of various software every Saturday.

bloodyfellow:
UKHelliBob, I will publish codes of various software every Saturday.

The point @UKHeliBob was making is that it is not possible to run the Python interpreter on an Arduino. Arduinos are programmed with C++.

How about taking 10 or 20 lines to explain exactly why you started this Thread and what it is you hope it will achieve. At the moment it is not far short of "bloody nonsense"

...R

@Robin2, I am newbie)) And don't know English perfectly :frowning:

CircuitPython will run on an Arduino Zero.
(Also on a variety of other ARM and ESP8266 boards that are "arduino-like" even if they're not official Arduinos.)

bloodyfellow:
@Robin2, I am newbie)) And don't know English perfectly :frowning:

On the basis of your username I had assumed you are a native (or very fluent) English speaker.

And I don't believe that the problem here is your ability with language. It seems to me it is your unwillingness to explain yourself.

If language really is a problem then maybe you would prefer to use on the sections of the Forum for other languages.

...R