0% found this document useful (0 votes)
2 views

Arduino-Step by Step

The document is an industrial training presentation on Arduino, covering its components, programming, and various applications. It explains the Arduino Uno microcontroller, how to program it using the Arduino IDE, and showcases projects like blinking an LED, controlling brightness, and using sensors for distance measurement and motion detection. The conclusion highlights Arduino's affordability, ease of use, and its significance in various fields such as smart homes, defense, and medical applications.

Uploaded by

prernamn
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Arduino-Step by Step

The document is an industrial training presentation on Arduino, covering its components, programming, and various applications. It explains the Arduino Uno microcontroller, how to program it using the Arduino IDE, and showcases projects like blinking an LED, controlling brightness, and using sensors for distance measurement and motion detection. The conclusion highlights Arduino's affordability, ease of use, and its significance in various fields such as smart homes, defense, and medical applications.

Uploaded by

prernamn
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

AN INDUSTRIAL TRAINING PRESENTATION

ON

Arduino

Department of Electrical &Electronics Engineering


Contents
1. Introduction: Know your Arduino ……………………….…………………
Arduino Uno
The Arduino IDE and programming
2. Hello World of Arduino…………………………………………………….
Blinking LED with Arduino
Controlling brightness of LED
3. Detecting objects with the infrared motion sensor…………………………
Working of PIR Motion Sensor
Controlling PIR Motion Sensor using Arduino
4. Measuring distance…………………………………………………………
Introduction to the ultrasonic distance sensor
How to calculate distance
Introduction: Know Your
Arduino
Arduino Uno is a microcontroller board based
on 8-bit ATmega328P microcontroller. Along
with ATmega328P, it consists other components
such as crystal oscillator, serial communication,
voltage regulator, etc. to support the
microcontroller. Arduino Uno has 14 digital
input/output pins (out of which 6 can be used as
PWM outputs), 6 analog input pins, a USB
connection, A Power barrel jack and a reset
button.
Atmega328 microcontroller is placed on the
board that comes with a number of features
like timers, counters, interrupts, PWM, CPU,
I/O pins and based on a 16MHz clock that
helps in producing more frequency and
number of instructions per cycle.
General Pin Functions
Pin Category Pin Name Details
Power Vin, 3.3V, 5V, GND Vin: Input voltage to Arduino when using an external power
source.
5V: Regulated power supply used to power microcontroller
and other components on the board.
3.3V: 3.3V supply generated by on-board voltage regulator.
Maximum current draw is 50mA.
GND: ground pins.

Reset Reset Resets the microcontroller.


Analog Pins A0 – A5 Used to provide analog input in the range of 0-5V

Input/ Output Pins Digital Pins 0 - 13 Can be used as input or output pins.

Serial 0(Rx), 1(Tx) Used to receive and transmit TTL serial data.

Inbuilt LED 13 To turn on the inbuilt LED.


ARDUINO IDE
The Arduino Uno is programmed using the Arduino Software (IDE), our Integrated Development
Environment common to all our boards. It can be programmed using Arduino Programming
Language which works on the basics of C and C++ language , but is does have different syntax.
Select the board being attached to the PC

Select the correct PC port to which


your Arduino Board is attached.

To start with the basic , run the ‘Blink’


program
Hello World of Arduino: Blinking
LED
The simplest circuit that we can form using an Arduino Uno is Blinking of LED. We have used an
online simulator ‘TINKERCAD’ for demonstrating the output of the circuits formed.

Components Required:
1 × Arduino Uno R3
1 × LED
1 × 330Ω Resistor
2 × Jumper Wires
Arduino Code:

void setup()
{
pinMode(12, OUTPUT);
}

void loop()
{
digitalWrite(12, HIGH);
delay(1000); // Wait for 1000
millisecond(s)
digitalWrite(12, LOW);
delay(1000); // Wait for 1000
millisecond(s)
}
Controlling Brightness of LED
The brightness of LED can be controlled by using a
potentiometer. A potentiometer is a three-
terminal resistor with a sliding or rotating contact
Arduino Code:
void setup()
{
Serial.begin(9600); //baud rate
pinMode(6,OUTPUT);
}

void loop()
{ Potentiometer
Serial.println(analogRead(A0));
int potvalue=analogRead(A0);
int mappedvalue=map(potvalue,0,1023,0,255);
analogWrite(6,mappedvalue);
Introduction to Ultrasonic Distance Sensor
 An ultrasonic sensor can convert electrical energy
into acoustic waves and vice versa. The acoustic
wave signal is an ultrasonic wave traveling at a
frequency above 18kHz.m The famous HC SR04
ultrasonic sensor generates ultrasonic waves at
40kHz frequency.

 The HC-SR04 ultrasonic sensor uses SONAR to


determine the distance of an object just like the bats
do. It offers excellent non-contact range detection
with high accuracy and stable readings in an easy-
to-use package from 2 cm to 400 cm or 1” to 13
feet.
Arduino Code & Simulation
• When the distance is less than 100cm, red led glows. For distance
between 100 to 300 cm, green led glows.
• Any distance otherwise is “Out of Range”.
• The code involves the use of ‘Serial Monitor’ where the distance
recorded by the Ultrasonic Sensor is displayed.
Detecting Objects With The Infrared Motion
Sensor
A passive infrared sensor (PIR sensor) is an
electronic sensor that measures infrared (IR)
light radiating from objects in its field of view
The sensor converts the resulting change in
the incoming infrared radiation into a change
in the output voltage, and this triggers the
detection.
Wiring the PIR motion sensor to an Arduino is
pretty straightforward – the sensor has only 3
pins.

GND – connect to ground


OUT – connect to an Arduino digital pin
5V – connect to 5V
On activation of the circuit, sensor starts to warm up. After that, when
the sensor detects motion, the led turns ON and a “Motion Detected”
message is observed in the serial monitor. When the motion stops, the
led turns OFF.
SUMMARY Of ARDUINO APPLICATION AREAS
S. No. Area Applications

1. Smart Homes Motion sensors, outlet control, temperature sensors, blower control, garage
door control, air flow control, sprinkler control

2. Defence Arduino-based Ultrasonic Radar System


3. Aero Space Airplane flap model, Integration of RC Vehicles in a Robotic Arena

4. Automated Vehicle Control Control=system experimentation, strategies, and sensors

5. Traffic Signal Control Traffic Light Controller System

6. Medical Cancer Detection, Heart Beat Rate Measurement, Open source


EEG/ECG/EMG, Thermometer, Lilypad Slipper Automated Foot Massager

7. Data Mining Health care, Industries, Defence and other automation sectors

8. Body Control Hand Sight, Heart Rate Monitor, Muscle Activity, Temperature, Respiration,
Electrodermal Activity, Facial Expression, Eye Tracking
Project work
Conclusion
Arduino is the physical programmable board. Among all the other Arduino boards, Arduino UNO
is the commonly used board that is also known as classic Arduino

A wide array of sensors can be attached with this board and many third-party libraries can be
linking with an Arduino sketch. Arduino hardware components are cheaper in relation with other
controller architecture and programming language is easy. Arduino has greater academic
applications

Arduino boards are playing very important roles in many disciplines today.
Thank you

You might also like