I am trying to connect an Arduino and Raspberry Pi over USB. I would like to send serial commands, just like the serial monitor in the Arduino IDE. I know how to do this on the Arduino end but I'm not sure how to send/receive serial communication on the Pi end. Ideally the solution would utilize Python.
Take the 2-minute tour
×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.
closed as off-topic by Annonomus Penguin♦ Feb 19 at 22:45This question appears to be off-topic. The users who voted to close gave this specific reason:
|
|||||
|
You will need PySerial to accomplish this. A tutorial on interfacing Arduino and the RPi using a usb can be found here |
|||||
|
Why do you want to use the USB port on the Pi? Isn't it easier to connect the Arduino directly to the UART pins (Pins 8 and 10) on the PI and then read out the UART in your python programme? |
|||||||||||||||||
|
You would be better to ask this on http://raspberrypi.stackexchange.com You can use program If you look at the Pi site you will see lots of Python serial communication programs. |
|||||
|