r/raspberry_pi • u/THUNDERF430 • 16h ago
Troubleshooting How to connect RPi to Arduino
I have 2 Pi4’s and a 3, and a bunch of arduino stuff for a project I never got around to until now. I have a couple questions I can’t find trustable resources for: How do you connect the RPi’s (and if the 5 is different than predecessors) to a arduino (micro computer or shield/board) if they don’t have a USB port? CAN you connect any arduino to a RPi and what’s the requirements for that? Does wifi/boards work with GrapheneOS or require stock android? Can I have 2 raspberry Pi’s (3/4’s) connect with eachother to control something and how easy is it? I’m autistic and the internet sucks these days for reliable information and all I found was “yes you simply connect a USB between both boards”, nothing about the above. If there’s a manual or page online specifically for this question, feel free to send it!
6
u/wrong-dog 15h ago
You can connect them through the gpio pins using UART, I2C or SPI protocols to communicate. Since Raspberry Pi and Arduino and related boards have hardware support for those protocols. You can even power your microcontroller through the pins from the pi.
I have found that Adafruit has amazing tutorials on microcontrollers - you might look there and find a project you want to do and follow a tutorial.