Programming An Arduino With A Raspberry Pi

Program arduino using raspberry pi

The Raspberry Pi is an extremely useful mini computer. The one I have (The Raspberry Pi 3 Model B) has 4 USB ports, an ethernet port, built in wifi, and HDMI out. It may not be the fastest computer around, but it’s definitely small and versatile. Today, I’ll show you how to use a cheap Raspberry Pi as a simple desktop computer to program an Arduino for robotics and other tech projects!


The Parts I Used

Monitor/TV not shown

1 x DFRobot Romeo V1 (Arduino Uno with built in motor drivers)

1 x Raspberry Pi 3 Model B and 16gb micro SD with NOOBS os preloaded.

To learn how to setup a raspberry pi read this article – Setting up a raspberry pi for the first time.

1 x USB keyboard and mouse

1 x HDMI compatible monitor or tv

1 x HDMI Cable

1 x USB “A” To “B” Cable

1 x 5.25v 2.4amp micro USB power adapter


The Process

  1. Insert the micro SD card into it’s slot on the bottom of the Raspberry Pi. The metal on the card should be face the Raspberry Pi.


2. Insert the bluetooth receiver or USB cables for the keyboard and mouse.


3. Insert the HDMI cable into the Raspberry Pi and the monitor or tv.

[vc_row][td_block_ad_box spot_id=”custom_ad_1″ spot_title=”- Advertisement -“][/vc_row]

4. Plug in the power adapter and the chip will start up.


5. To program an Arduino with the Raspberry Pi, you will need to download the Arduino IDE so you can upload code to the Arduino. Read this article to learn in-depth how to install Arduino IDE on raspberry pi and connecting various arduino devices to it.

You'll need internet connection to download the IDE


6. Click the terminal button to open the terminal. This is where you will type in the commands for downloading and installing the Arduino IDE.


7. Type “sudo apt-get install arduino” and press enter. Eventually, you will need to learn the commands used in the Terminal.

[vc_row][td_block_ad_box spot_id=”custom_ad_1″ spot_title=”- Advertisement -“][/vc_row]
8. Type “y” and then hit enter. You have plenty of space on the Raspberry Pi right now so this isn’t something you need to worry about yet.

9. Once that finishes, you are ready to upload code to the Arduino! Connect the Arduino and the Raspberry Pi together with the USB “A” to “B” cable.



10. Open Menu -> Programming -> Arduino IDE

11. Once the program has opened, go to Tools -> Serial Port -> and select what is there. There should be only one option right now. If there are multiple options, trial and error is ok.

[vc_row][td_block_ad_box spot_id=”custom_ad_1″ spot_title=”- Advertisement -“][/vc_row]

12. Next, go to Tools -> Board -> Arduino Uno. The DFRobot Romeo board I used is based on the Arduino Uno.


13. You can now upload code to the Arduino and test it out! I used the “Blink” example that came with the Arduino IDE.


14. If the code compiles, uploads, and works correctly then you are finished!


You don’t need much to make awesome stuff. With a few essential components on hand, you can create an infinite number of devices for various uses.

Go build something cool!

To learn how to setup a raspberry pi without a monitor. Read our article – Setting up a headless raspberry pi.

Published by

Stephen Hughes

I make cool stuff, I'm an aerospace student, and I can also play a mean bass guitar

Leave a Reply

Your email address will not be published. Required fields are marked *