So I am new to Python but not new to coding. And I am working on a project that involves controlling an Arduino via serial. So far I was able to use the Arduino to send a serial print to Python and have Python print it. But i need to be able to send command from Python. And every time I use the serial.write("xxx") I get an error. I caint find any good code on google for this. So basically I need a bare min. script. I have pyserial installed. I can post my code but I really don't have anything I really dont have anything. If someone has code for this that would be great!! Thanks
Serial to Arduino Help
Serial to Arduino Help
|
Feb-09-2017, 05:11 AM
Checkout https://pypi.python.org/pypi?%3Aaction=s...mit=search
you'll find a bunch of packages that do what you need
Feb-10-2017, 05:03 AM
Perfect thanks man.
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
pyserial/serial "has no attribute 'Serial' " | gowb0w | 9 | 3,301 |
Aug-24-2023, 07:56 AM Last Post: gowb0w |
|
Pyserial not reading serial.readline fast enough while using AccelStepper on Arduino | MartyTinker | 4 | 3,857 |
Mar-13-2023, 04:02 PM Last Post: deanhystad |
|
serial connection to Arduino | Jack9 | 4 | 2,419 |
Oct-22-2021, 10:18 AM Last Post: Jack9 |
|
Serial loopback with Arduino doesn't work | ThomasS | 3 | 2,711 |
Sep-19-2020, 12:47 PM Last Post: deanhystad |
|
Can't transmit serial fast Python to Arduino pyserial | mRKlean | 0 | 2,319 |
Mar-29-2020, 08:12 PM Last Post: mRKlean |
|
assign the variable to every value received serial from Arduino | barry76 | 4 | 3,284 |
Feb-01-2019, 10:19 AM Last Post: barry76 |
|
Not receiving serial data from arduino | dinoel_cool | 4 | 3,635 |
Aug-26-2018, 06:16 PM Last Post: j.crater |
|
Serial Python and Arduino | delfar | 7 | 15,904 |
Mar-23-2017, 02:23 AM Last Post: Larz60+ |
Users browsing this thread: 2 Guest(s)