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.
closed as off-topic by Anonymous Penguin Feb 19 '15 at 22:45
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be about Arduino, within the scope defined in the help center." – Anonymous Penguin
You will need PySerial to accomplish this. A tutorial on interfacing Arduino and the RPi using a usb can be found here
You would be better to ask this on http://raspberrypi.stackexchange.com
You can use program
minicom on the Pi; this is a terminal program like the serial monitor in the Arduino IDE, and of course you can use Arduino IDE on the Pi.
If you look at the Pi site you will see lots of Python serial communication programs.
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?