Program Your Arduino From Your Raspberry Pi

Program Your Arduino From Your Raspberry Pi © GPL3+

What? Program an Arduino from your Raspberry Pi? It's possible, and super easy!

  • 2,740 views
  • 3 comments
  • 13 respects

Components and supplies

Apps and online services

About this project

Can't find the right computer to program your Arduino? Or are you running short on available computers around the house to use?

Well, worry no more, my friends. This will take very little time and will get your Raspberry Pi to program your Arduino.

Step 1: Boot up your Raspberry Pi

Connect your Raspberry Pi to a power source and a monitor. Once at the desktop, open up the Terminal.

Step 2: Install the IDE

Once you open up the terminal, type these commands:

sudo apt-get update
sudo apt-get install arduino

Step 3: Reboot

After everything has finished, type this into the Terminal:

sudo reboot

This will reboot your Raspberry Pi so your changes can take effect.

Step 4: Using the Arduino IDE

When your Raspberry Pi finishes rebooting, open the Raspberry Pi menu on the desktop. There should be a new section called "Electronics". In that section, there should be the Arduino IDE! Plug in your Arduino into your Raspberry Pi, open the Arduino IDE. Select the correct port, which should be /dev/tty/USB0.

To test that it works, try coding the classic Blink program attached to this post into the Arduino IDE. It should upload correctly, and it works!

Code

Classic blink programArduino
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);//turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);//turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Comments

Similar projects you might like

Arduino + Raspberry Pi + Ubidots Made Easy

Project tutorial by David Escobar

  • 13,094 views
  • 4 comments
  • 38 respects

Alexa Controlled LEDs Through Raspberry Pi

Project tutorial by vincent wong

  • 5,270 views
  • 5 comments
  • 23 respects

Web-Controlled LED Animations with Raspberry Pi and Arduino

Project tutorial by Bruno Portaluri

  • 12,030 views
  • 15 comments
  • 43 respects

Bridging the Raspberry Pi and the Arduino

by Daniel Porrey

  • 12,400 views
  • 10 comments
  • 38 respects
Add projectSign up / Login