connecting PyBoard to other devices like RPi
connecting PyBoard to other devices like RPi
what is the best way (I2C, SPI, UART etc.) to connect PyBoard to device like RPi? It is planned to send data to RPi and get something from it too. RPi is being a "main" device while PyBoard is planned as a standalone slave that lives its own life most of the time.
Re: connecting PyBoard to other devices like RPi
I plug mine into the USB serial on the RPi. It behaves essentially identical to plugging it into my linux development machine.
Re: connecting PyBoard to other devices like RPi
and how do they send "data" to each other? any examples?dhylands wrote:I plug mine into the USB serial on the RPi. It behaves essentially identical to plugging it into my linux development machine.
Re: connecting PyBoard to other devices like RPi
I have an example here:
https://github.com/dhylands/json-ipc
which allows the host (RPi or linux PC) to send and receive packets containing JSON data. This happens to use JSON, but it could be anything.
I have other code for sending bioloid format packets of binary data as well if you're interested. It uses the same (or mostly the same) low level serial code as the JSON stuff.
https://github.com/dhylands/json-ipc
which allows the host (RPi or linux PC) to send and receive packets containing JSON data. This happens to use JSON, but it could be anything.
I have other code for sending bioloid format packets of binary data as well if you're interested. It uses the same (or mostly the same) low level serial code as the JSON stuff.