Introduction to Arduino IDE Software-1.pptx

ssuser377420 0 views 31 slides May 10, 2025
Slide 1
Slide 1 of 31
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31

About This Presentation

Gg


Slide Content

Experiment No: 2   Title: Introduction to Arduino IDE Software Robotics and Automation – EGCO4110 Done by: MS. Sara Alabri

Agenda - What is Arduino - Popular Arduino Types (UNO and Mega) Introduction 01 Parts of the IDE main screen Arduino IDE Software 02 Arduino with LED -Traffic light Activity 1 03 Servo Motor controlled by potentiometer Servo Motor (Knob and Sweep) Experiment 3 04 Ultrasonic Distance Sensor using Arduino Experiment 4 05

Objective To be Familiarization with Arduino IDE Software To know how to Setup and Configuration Arduino IDE Software To know how to Writing and Compiling Code

Introduction

What is Arduino Arduino is an open-source hardware and software platform. It consists of a microcontroller board with input and output pins that can be programmed.

What is Microcontroller A microcontroller is a very small computer that has digital electronic devices built into it that helps it control things. It is an “embedded computer system” that continuously repeats software (programming) commands Examples: Arduino Uno, Raspberry Pi, etc.

Popular Arduino Types (UNO and MEGA)

Arduino UNO

Arduino MEGA

Arduino IDE Software

Arduino programs can be divided in three main parts: Structure, Values (variables and constants), and Functions. In this tutorial, we will learn about the Arduino software program, step by step, and how we can write the program without any syntax or compilation error. Arduino IDE Software

Arduino IDE Interface

  Software structure consist of two main functions PURPOSE − The setup () function is called when a sketch starts. Use it to initialize the variables, pin modes, start using libraries, etc. The setup function will only run once, after each power up or reset of the Arduino board. PURPOSE − After creating a setup () function, which initializes and sets the initial values, the loop () function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board.

Breadboards

Activity 1: This Activity shows the simplest thing you can do with an Arduino to see physical output: it blinks the on-board LED.   Circuit: Arduino Board LED 220 ohm resistor Breadboard Jumper Wire Hardware Required

Activity 1: Code:

Activity 2: Traffic Light using Arduino Circuit: Arduino Board LED 220 ohm resistor Breadboard Jumper Wire Hardware Required

Activity 2: Code:

Experiment No: 3   Title: Servo Motor controlled by potentiometer Robotics and Automation – EGCO4110 Done by: MS. Sara Alabri

Experiment 3

- Servo are small motors that can precisely angle their arms to positions between 0 and 180 degrees. - Potentiometers are variable resistors and act as sensors that provide us with a voltage that varies depending on the rotation of the device around its shaft. Servo Motor controlled by potentiometer

Components Required:   Arduino Uno Servo Motor potentiometer Breadboard Arduino Software Jumper Wires  USB Cable Servo Motor controlled by potentiometer

Connections: Servo Arduino Red wires +5V Brown wires GND Yellow wires Pin 9 potentiometer Arduino VCC +5V OUTPUT A0 GND GND

Project 1: Servo Motor (Knob) Code:

Project 2: Servo Motor (Sweep) Code:

Experiment No: 4   Title: Ultrasonic Distance Sensor using Arduino Robotics and Automation – EGCO4110 Done by: MS. Sara Alabri

Experiment 4

Components Required:   Arduino Uno Ultrasonic sensor Breadboard Arduino Software Jumper Wires  USB Cable Ultrasonic Distance Sensor using Arduino

Connections: Ultrasonic Sensor Arduino VCC +5V GND GND Trig Pin 7 Echo Pin 6 LED Arduino LED 1 Pin 4 LED 2 Pin 3 LED 3 Pin 2

Project 1: Connect the Ultrasonic Sensor to the LED Circuit Code:

THANK YOU
Tags