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.
0
votes
2answers
40 views
Receiving 2byte int values over serial
I am using Python smbus write_word_data method to send int values from a Raspberry Pi to an arduino.
This seems to be the correct method.
When I send values from 0-255, I see the following in my ...
0
votes
0answers
10 views
Modifying smbus code to work with sending receiving 2bytes of data [migrated]
I have the following which works with sending and receiving a single byte of data.
But I need to send receive 2 byte values, ie numbers greater than 255. I'm trying to send data to my Arduino from my ...
1
vote
1answer
52 views
Debugging i2C from Mac OSX desktop
I have a raspberryPi and Arduino connected via i2C. On the RPi I have a python script that takes int values and simply sends them to the RPi, which in turn echoes them back. I am trying to debug this, ...
1
vote
0answers
27 views
i2C and lost connections with IO errors
Having issues troubleshooting IO errors using i2C . Running a Python script on a raspberry Pi as master talking to an Arduino slave.
The problem is that when making any change in my code that results ...
0
votes
0answers
12 views
RaspberryPi to Arduino(leonardo) avoiding latency [migrated]
I'm using a Python script via (TKinter)on the raspberryPi to capture mouse movement and events.
My goal is to send this data, in real time, to another connected Arduino device(Leonardo).
My first ...
-1
votes
1answer
69 views
Best way to interact arduino and python
So, i've worked with the pySerial module for python, where I communicated with my arduino via serial. However, this module only works for 32bits and I would like to make my project work on both ...
0
votes
3answers
271 views
Why does serial port stop sending data?
I'm using an Arduino Leonardo to interface with two pressure sensors and Python on my laptop, a MackBook Pro.
I'm using arduino IDE V. 1.5.4, Python V. 2.7.6, and OSX 10.8.5.
One pressure sensor is ...
4
votes
2answers
294 views
Arduino serial port reset in Serial monitor & Python
So am I using an Arduino with a shield to gain some voltage values for an ECG. I am then plotting that data in Python. However whenever I "observe" the serial port, be that through the Arduino serial ...
1
vote
1answer
73 views
How can I use Python from a sketch?
I'd like to be able to use Python from a sketch. According to the Arduino playground, one can use PySerial from a computer to talk with an Arduino via Python.
It looks like from that page you can ...
5
votes
3answers
186 views
Programming an Arduino using Python, rather than C/C++
I am not very skilled with the C Language and I was wondering if there is a way in which python could be used to program an Arduino. This would most likely require a different IDE in order to be able ...