V
V
Vladimir2015-06-09 22:51:54
Python
Vladimir, 2015-06-09 22:51:54

How to implement bi-directional communication between Raspberry PI and Arduino in python?

Part of the functionality is implemented on Arduino, a python program, runs on a Raspbury Pi and must receive / send data (integer from 0 to 255) from / to Arduino.
1) Is it possible to connect Arduino and Raspberry Pi via GPIO or just USB?
2)PySerial - can it work with GPIO on Raspbery Pi?
3) Where can I see examples of bidirectional exchange on PySerial or RPIO ( pythonhosted.org/RPIO/)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lamazavr, 2015-06-15
@Casufi

PySerial won't work with regular GPIO, only UART.
As an option, you can cling to SPI.

I
Ivan, 2015-06-10
@LiguidCool

To be honest, I didn’t work with Python, but in principle I don’t see any problems - Arduin should be displayed in the system as a COM port, and work with it. Consider text exchange.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question