How to make 2 way communication between Arduino and Raspberry

Hello guys, it's my first time using Arduino and I have to connect it to a Raspberry. The project was thought to use I2C protocol but in order to use it we will have to acquire a level converter (to not fry the raspberry), won't we?
Which other alternatives do we have apart from USB?

Uart spi I2c Bluetooth wifi canbus serial flashing lights etc

With a 3.3V Arduino, you can make a direct wired connection to the RPi.

UART serial is by far the easiest method to implement for data transfer. See the Serial Input Basics tutorial on this forum.

I2C will fry my raspberry , won't it? As my Arduino will give 5V to raspi

Thanks! I'll see it

Not when using a level converter with a 5V Arduino.

And is there any solution without a level converter?

If the processor supply voltages match, a level converter is not needed.

Sorry because I didn't indicated. My raspi use 3,3V and my Arduino one 5V, so the level converter would be necessary always. And if I connect them through USB?

USB is 5V (the data voltages aren't but that is a different issue).

Transferring data using a USB connection between two microprocessors is much, much more difficult than with UART serial. So the latter is the way to go, with a level converter.

What is the "raspi" you using, exactly?

Often a good idea to also tell the forum which Arduino you are using.

Good point. If you use a 3.3V Arduino, you won't need a level converter.

Logic Levels - learn.sparkfun.com

and
Taking It To Another Level: Making 3.3V Speak With 5V | Hackaday

Which Raspberry are you using?

as asked in reply #11. Maybe it's not a board, it's an actual fruit.

1 Like

Raspberry 4B

How many Bees would damage a Raspberry ?

1 Like

Arduino uno. I need it to feed a laser with 5V.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.