Question: are arduino and raspberry pi compatible?
Answer: Interface a Raspberry Pi with an Arduino so the two boards can communicate with one another. Sometimes you may need to connect an Arduino to a Raspberry Pi. For example, if you have sensors, motors, and actuators, you can connect these to the Arduino and make the Arduino send values to and from the Raspberry Pi.