spi communication between arduino and raspberry pi

Hello everyone,

I want to communicate between Arduino and Raspberry pi over SPI communication. I am using Arduino mega (slave) and RPI4 (master). Libraries I am using; for RPI spidev in python, for arduino SPI. I want to send data from RPI to Arduino that I tried and it is working well. But now I want some feedback from Arduino to RPI. I have tried readbytes(spidev python) in RPI but it is not working. Is there anyone can help with something (I am new).

I already posted this question in RPI stack but the people said it is arduino question so I am writing it here again.

Thank you.

I want to communicate between Arduino and Raspberry pi over SPI communication. I am using Arduino mega (slave) and RPI4 (master). Libraries I am using; for RPI spidev in python, for arduino SPI. I want to send data from RPI to Arduino that I tried and it is working well. But now I want some feedback from Arduino to RPI. I have tried readbytes(spidev python) in RPI but it is not working. Is there anyone can help with something (I am new).

You probably damaged the Raspberry Pi. The two boards have different voltage levels. The Arduino Mega 2560 runs on 5V, the Raspberry Pi on 3.3V which is not only the core voltage but also the voltage used on the SPI bus. If you use short wires the 3.3V of the Raspi are enough to change the levels on the Arduino but the Arduino's response (on the MISO pin) will probably damage the corresponding pin on the Raspi side (as the Raspberry Pi isn't 5V tolerant).