I'am trying to initiate a two way communication between Raspberry pi and Arduino. I worked with spidev library and directly using the SPDR register in the Arduino micro-controller without being able to achieve any form of communication between the two.

I even removed the MOSI pin of pi and connected it to MISO pin of the pi The received and transmitted data were different..... Is SPI communication Reliable..? What all other means can I use to establish a stable communication between the raspberry pi and Arduino

  • Show us your actual connections and code so we can help. Commented Nov 16, 2018 at 22:37

1 Answer 1


Of course SPI on the Pi is reliable.

There are a couple of things to note:

  1. the Pi always acts as the SPI bus master.
  2. All the Pi GPIO (including SPI) are 3V3 only. Arduinos are typically 5V. You must not expose a Pi GPIO to more than 3V3.
  • I used Pi as the bus master and used a logic level converter to connect pi and arduino Commented Nov 16, 2018 at 11:43
  • @jesvinpalatty You need to edit your question and provide clear photos of the connections if you want help. Many things could be wrong with the wiring. Software listings would be useful as well.
    – joan
    Commented Nov 16, 2018 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.