All Questions
Tagged with programming python
17 questions
1
vote
1
answer
96
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
0
votes
1
answer
291
views
Using pyFirmata with a 360° servo; how do I stop it?
I am testing out pyFirmata. I have a 360° servo, and know how to change its direction, but I dont't know how to stop it.
What command, like servo.write(), would work to make it stop moving until ...
2
votes
1
answer
323
views
What is the difference when an arduino has been unplugged vs when a serial port connection was closed?
Using python code for a serial port connection to an arduino, it sends a value to the arduino, which then starts printing values to serial. The python code will print the value on the first or second ...
1
vote
1
answer
4k
views
Why do I need to use latin-1 instead of utf-8 when using python with arduino?
When reading and writing with a python serial port connection to arduino, if I don't use latin-1 ('ISO-8859-1'), the results are not as expected. Like if I have
int outP = 5;
//...
int outV = Serial....
0
votes
4
answers
150
views
How to link a computer processor to an Arduinno on a board? [closed]
I am completely new to Arduinno, so please forgive if the question is stupid.
Here is the problem: I have a project where I want an Arduino (or similar microchip board) to handle some sensors and ...
2
votes
1
answer
104
views
The arduino can't seem to output correctly
i am a beginner at python and I am average at Arduino and I had the idea of using both of them together for a project. I have been trying to make a Arduino + Python car which I can control with my ...
1
vote
0
answers
172
views
Serial communication problem NodeMCU
this is my first post here. Before I ask you my problem, I'm sorry if I'm wrong to write but my English is bad.
So, my problem is this: I'm developing a "client-server" system with serial ...
0
votes
1
answer
9k
views
How to send an integer through pyserial with Python to an Arduino and get back the same result?
There has been similar questions all over the internet but none of them seem to answer my question, so can anybody tell me what is wrong with this code and how I can fix it?
Python code:
import ...
0
votes
2
answers
189
views
Showing chronometer on PC controlling the begining and end of time by Arduino
I'm really new on this Arduino thing, so I don't know whether what I'm gona ask is feasible or not.
I'd like to make a chronometer in the computer but the controlling button (beginning and end of ...
0
votes
1
answer
318
views
Trying to Serial.write RAW code properly
I have a SIM800L Module connected to my arduino Nano. I want to open a TCP connection from the sim800l module to my own server and send a text string. The connection is working however I am not able ...
0
votes
3
answers
1k
views
Installing Pyserial
I will be running my CNC Via Arduino UNO R3, so i have found out that it runs on GRBL and that i need to load Python and Pyserial and a graphic interface.
Loaded Python 3.5.2, no problems, opened dos ...
0
votes
3
answers
121
views
Sketch behaves differently when motor driver is added
I have written a simple sketch that takes values via serial communication through a Python script.
Here's the code-
#define LEDPin 13
void setup() {
Serial.begin(9600);
pinMode(LEDPin, OUTPUT);
...
3
votes
1
answer
16k
views
Graph plotting on Python using Tkinter Canvas
I'm trying to plot a graph with python using the canvas widget, I'm currently sending data in from an arduino sensor sketch ..does anyone have an idea on how I can plot this graph in real time on ...
1
vote
2
answers
15k
views
Send multiple int values from Python to Arduino using pySerial
I'm trying to send 3 ints in the range of 0-180 from Python to the Arduino Uno device using pySerial (py3K). I have managed to send 1 int by using python's struct lib (not sure if it's the best or ...
0
votes
3
answers
3k
views
Can I program Arduino with Python? [closed]
I know that I can program Arduino with python but is it possible to make every project, which can be completed by normal IDE?