Introduction: Programming Your Arduino Using Raspberry Pi

Picture of Programming Your Arduino Using Raspberry Pi

In this tutorial, We will learn how to put and program Arduino and Raspberry Pi together , over USB and serial communication by installing the Arduino IDE on your Raspberry Pi so that you can write and upload programs into an Arduino! Let's get started.

Hardware components :
1. Raspberry Pi 3

2. Arduino Uno

3. Breadboard

4. Led

5. 220 Ohms resistor

6. Wires

Software components :

1. Arduino IDE

Step 1: Installing Arduino IDE on the Raspberry Pi

Picture of Installing Arduino IDE on the Raspberry Pi

The perfect way to install Arduino IDE is from the terminal.

Before that we should being sure that Raspian jessie (Operating System of the Raspberry) is up to date so :

sudo apt-get update
sudo apt-get upgrade

Then we move on to installing the Arduino IDE :

sudo apt-get install arduino

Note: you must have an internet connection.

Step 2: Watch the Video for More Details

Step 3: Connect the Arduino

Picture of Connect the Arduino

Start by programming the Arduino by connecting the USB Cable to your Raspberry Pi and opening the IDE,As you know the one of the basic project to start is with blinking an led using an Arduino Uno.

First,you need to determine what kind of Arduino you have and what port you are using.

Then,go to File > Example > Basics > Blink

int led = 13;

// the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); }

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

Finally,we should upload the code to the Arduino.

Step 4: For Support

Picture of For Support

You can subscribe to the my YouTube channel for more tutorials and projects. Subscribe for support.

Thank you.

Go to my YouTube Channel -link https://goo.gl/EtQ2mp

Comments

About This Instructable

785views

30favorites

License:

Bio: For more project and tutorial visit my YouTube Channel Smart Technology
More by Smart Technology:Control Home Appliances Using NodeMCU(ESP8266) and Blynk AppControl Arduino Using Smartphone Via USB With Blynk AppThe Perfect Automatic Lighting System Using Arduino + LDR + PIR
Add instructable to: