Communication between Raspberry and Arduino

Hello, my dear,

I’m doing a small project with a Rasperry Pi and an Arduino. My goal is to display data received by ultrasonic sensors using an Arduino program.

So I connected my Raspberry and I would like to launch the Arduino program to display the data directly on my tablet connected to my Raspberry.

Now, when I run Arduino with my Raspberry, the Arduino program does not return anything in the console while the program works well on Windows.

How do we do that? I checked and apparently you have to create a Python program that you then have to run on my Raspberry in order to "activate" the communication between my Arduino (where the sensors are connected and my Raspberry)

Thank you in advance!

I guess you are using, or attempting to use, serial communications protocol between the Arduino and the Pi (since you say it works on a PC). How are you interconnecting these two devices and using what pins?

I have used only SPI to talk between a Pi and an Arduino using the wiringPi C library on the
Pi. The PI must in this case be the SPI master and the Arduino was powered at 3.3 volts from the Pi. Sparkfun has a good tutorial on Pi/SPI if you choose to go this route, but it is not a trivial matter.

https://learn.sparkfun.com/tutorials/raspberry-pi-spi-and-i2c-tutorial/all