Questions tagged [python]

Python is a programming language. Use this tag for questions regarding how to use Python with your Arduino, or on using of pySerial or such software. Also consider using [programming] and other specific tags.

Python is a programming language. It is often used as a scripting language, but has many other uses.

Use this tag for questions regarding how to use Python with your Arduino, or on using of pySerial and other software that lets you use Python on an Arduino.

Also consider using and other tags more specific to your problem.

This page on the Arduino website should help you to get up and running using Python with an Arduino. The main way to use Python with an Arduino is by using pySerial. pySerial is a desktop program compatible with Windows, Linux and other OS's. It is used to execute Python commands on an Arduino.

188 questions
5
votes
1 answer

Problem sending string with Python to Arduino through serial port

I want to send string 50 to Arduino through serial port, the Arduino UNO seems it communicates with port COM25 but it doesnt receive the string properly: import serial # if you have not already done so ser = serial.Serial('COM25') ser.baudrate =…
floppy380
  • 245
  • 4
  • 10
2
votes
1 answer

share enum between python and arduino

I have created a gui in python that allows an arduino controlled mecanum wheel cart to move around. The cart allows for 8 different move directions and can rotate left and right. Commands are sent over a serial connection between the laptop(w10,…
juerg
  • 121
  • 2
2
votes
0 answers

Send Newline / Carriage return with python

With the Serial Monitor I have the Newline option: How can I send the same using python? I tried: 30\r\n 30\r 30\n import serial ser = serial.Serial('COM3', 115200) while True: numIn = input("enter delay value: ") …
clankill3r
  • 219
  • 2
  • 6
  • 12
2
votes
1 answer

Handle reading timing in Python using pySerial

I'm not sure about how to properly handle timing readings from serial inside a Python script. I need to read a value every 5 seconds. From Arduino I could do, Serial.println(value); delay(5000); // should I wait here? Inside Python script I could…
whitenoisedb
  • 177
  • 2
  • 2
  • 7
1
vote
0 answers

My servo wont follow my cam

So i am trying to make the servo follow my face which will end up my camera following my face But the servo isnt doing anything please look at this (Also im only using Horizontal because I would like to start off with that first) Question : how do i…
Darkziken
  • 11
  • 1
1
vote
1 answer

How to send data from an Arduino GPRS module to a Django application hosted on Heroku?

I have a Django web application hosted on a Heroku server. Currently I am using the free package for hosting. I want to send data from an Arduino using a SIM900L GPRS module to the web application. I want to know if it is possible. I have searched…
1
vote
1 answer

What is the difference between python and arduino programming?

I am a Python programmer and want to learn Arduino programming so want to know what are the main differences between Python and Arduino C++ programming? Is Arduino C++ more complex than Python programming? Are there any similarities that will help…
ShopiMacros
  • 37
  • 1
  • 5
1
vote
1 answer

Running Multiple Languages on Arduino

This is mostly a conceptual question. Is it possible to have two scripts running on an Arduino, where one is a Julia script, and one is a Python script or something like that?
0
votes
1 answer

Does Arduino Tian/LininoOS support Python 3?

I'm using an Arduino Yun running OpenWRT and it only runs Python 2.7. I need to find a microcontroller+processor+WiFi board that supports Python 3. Does the Arduino Tian work for this, or are there any others?
sscirrus
  • 177
  • 1
  • 10
0
votes
1 answer

Is it possible to run Python embedded in Arduino?

I know how to program in C but I'm more productive in python, so, I would like to know if there is a way to run a python code into arduino.
0
votes
1 answer

serial communication dead slow after a while

I'm workin on a node for blender to control an arduino. I notice it goes really slow after a while so I isolated the problem. It is good in maintaining 60 frames a second, then after around 40 seconds (pretty exact), it drops to a pretty exact 1 fps…
clankill3r
  • 219
  • 2
  • 6
  • 12