WEBVTT

00:00.000 --> 00:05.000
Connecting Arduino to Raspberry Pi.

00:05.000 --> 00:07.000
In this video we'll learn about

00:07.000 --> 00:10.000
Introduction and Software Setup,

00:10.000 --> 00:12.000
Hardware Connection and Configuration,

00:12.000 --> 00:15.000
Opening and uploading the Blink program,

00:15.000 --> 00:22.000
and Modifying the Blink Speed.

00:22.000 --> 00:25.000
Introduction and Software Setup.

00:25.000 --> 00:28.000
To connect Arduino with the Raspberry Pi,

00:28.000 --> 00:31.000
first install the Arduino IDE.

00:31.000 --> 00:33.000
Open the terminal in Raspberry Pi

00:33.000 --> 00:35.000
and type the following commands.

00:35.000 --> 00:38.000
Sudo apt update,

00:38.000 --> 00:42.000
Sudo apt upgrade,

00:42.000 --> 00:46.000
Sudo apt install Arduino.

00:46.000 --> 00:49.000
To open Arduino IDE,

00:49.000 --> 00:54.000
type Arduino in the terminal,

00:54.000 --> 00:59.000
Hardware Connection and Configuration.

00:59.000 --> 01:05.000
Connect the Arduino Uno to the Raspberry Pi using a USB cable.

01:05.000 --> 01:07.000
In the Arduino IDE,

01:07.000 --> 01:09.000
go to Tools, then Board,

01:09.000 --> 01:12.000
and select Arduino Uno.

01:12.000 --> 01:15.000
Go to Tools, then Port,

01:15.000 --> 01:18.000
and select Slash Dev slash TTYACM0.

01:18.000 --> 01:23.000
This completes the setup of the Arduino IDE.

01:23.000 --> 01:27.000
Opening and uploading the Blink program,

01:27.000 --> 01:30.000
Open the Blink program by going to File,

01:30.000 --> 01:35.000
Examples, One, Basics, Blink.

01:35.000 --> 01:37.000
Click on Verify,

01:37.000 --> 01:38.000
and then click Upload button

01:38.000 --> 01:41.000
to send the program to the Arduino Uno.

01:41.000 --> 01:44.000
The LED connected to pin 13 of the Arduino board

01:44.000 --> 01:49.000
will start blinking.

01:50.000 --> 01:53.000
Modifying the Blink speed.

01:53.000 --> 01:55.000
You can change the blinking speed of the LED

01:55.000 --> 01:58.000
by modifying the delay values in the program.

01:58.000 --> 01:59.000
For example,

01:59.000 --> 02:01.000
changing the value to 1000,

02:01.000 --> 02:02.000
which is one second,

02:02.000 --> 02:05.000
makes the LED blink slow.

02:05.000 --> 02:07.000
And changing the value to 300 millisecond,

02:07.000 --> 02:09.000
which is 0.3 seconds,

02:09.000 --> 02:17.000
makes the LED blink faster.

02:17.000 --> 02:19.000
Now you've learned how to connect an Arduino Uno

02:19.000 --> 02:21.000
to a Raspberry Pi,

02:21.000 --> 02:23.000
install the Arduino IDE,

02:23.000 --> 02:24.000
upload the Blink program,

02:24.000 --> 02:27.000
and adjust the LED's blinking speed.

02:27.000 --> 02:29.000
This simple activity is a great introduction

02:29.000 --> 02:34.000
to combining hardware and software.

