The Arduino IDE connects to the Raspberry Pi through its USB cable to program it. ... You can now connect your Arduino to your Raspberry Pi. From the Tools menu, select Board and set the board type to Arduino Uno. Then, from the Serial Port option, select /dev/ttyACM0.