SlideShare a Scribd company logo
Ardui no
DIGEL Systems
• Microcontroller
• Idea behind Arduino
• Inroduction to Arduino
• History
• Advantages
• Different Boards of Arduino
• Comparison
• ATmega328p Specifications
• Arduino Uno Board
• Download and Install software
• Writing programs
(μC, MCU)
• Computer on a single integrated chip
– Processor (CPU)
– Memory (RAM / ROM / Flash)
– I/O ports (USB, I2C, SPI, ADC)
• Common microcontroller families:
– Intel: 4004, 8008, etc.
– Atmel: AT and AVR
– Microchip: PIC
– ARM: (multiple manufacturers)
• Used in:
– Cell phones,
– Toys
– Household appliances
– Cars
– Cameras
EXAMPLE: ELECRTICAL GYSER
INPUT
BLACK BOX
OUTPUT
• Arduino is an open-source prototyping
platform based on easy-to-use hardware and
software
• Arduino is a set of development boards that
come with pre-tested hardware and software
libraries
•It means, you can buy an inexpensive
Arduino board and start developing your
project instantly
• Arduino started in 2005 as a
project for students at the
Interaction Design Institute
Ivrea Italy
• In memoir of this King
Arduino, there is this ‘Bar Di
Re Arduino’, a pub which was
frequently visited by Massimo
Banzi
•And he gave the name to this
low-cost microcontroller board
in honour of the place
5 core
members
Arduino
cross-
platform
Inexpensive
simple
open
source
software
open source
hardware
• Arduino Uno
• Arduino Leonardo
• Arduino LilyPad
• Arduino Mega
• Arduino Nano
• Arduino Mini
• Arduino Mini Pro
• Arduino BT
Ardui no
• High performance
low power AVR 8-bit
• Advanced RISC architecture –
131 powerful instruction
• Available in DIP package
• Up to 20 MHz clock
• 32kB flash memory
• 1 kB SRAM
• 23 programmable I/O
channels
• Six 10-bit ADC inputs
• Three timers/counters
• Six PWM outputs
Pin name Pin number
Special function
Microcontroller ATmega168/328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory
16 KB (ATmega168) or 32 KB (ATmega328) of which 2 KB
used by bootloader
SRAM 1 KB (ATmega168) or 2 KB (ATmega328)
EEPROM 512 bytes (ATmega168) or 1 KB (ATmega328)
Clock Speed 16 MHz
Ardui no
• Download Arduino compiler and development environment from:
http://arduino.cc/en/Main/Software
• Current version: 1.6.6
• Available for:
– Windows
– MacOX
– Linux
• No installer needed... just unzip to a convenient location
• Before running Arduino, plug in your board using USB cable
(external power is not necessary)
• When USB device is not recognized, navigate to and select the
appopriate driver from the installation directory
• Run Arduino
Before writing program
we have to first select board
Ardui no
• Compile –Before your program
“code” can be sent to the board, it
needs
to be converted into instructions that
the board understands. This process
is called compiling.
• Stop-This stops the compilation
process. (I have never used this button
and you probably won’t have a need to
either.)
• Create new Sketch-This opens a
New window to create a new sketch.
• Open Existing Sketch - This loads a
sketch from a file on your computer
• Save Sketch - This saves the changes to the sketch you are working on.
• Upload to Board - This compiles and then transmits over the USB cable
to your board.
• Serial Monitor -
• Tab Button - This lets you create multiple files in your sketch. This is
for
more advanced programming than we will do in this class.
• Sketch Editor -This is where you write or edit sketches
• Text Console - This shows you what the IDE is currently doing and is
also where error messages display if you make a mistake in typing your
program. (often called a syntax error)
• Line Number -This shows you what line number your cursor is on. It is
useful since the compiler gives error messages with a line number
Ardui no
• void setup()
– Will be executed
only when the
program begins
(or reset button
is pressed)
• void loop()
– Will be executed
repeatedly
1] LED Blink
A light-emitting
diode (LED) is a two-lead
semiconductor light source.
- It is a p–n junction diode,
which emits light when
forward biased.
- A resistor is connected in
series so as to limit current
flowing through the LED.
Ardui no
1] Make Port line “ 9 ” as a Output and repeat the
same program
2] Reduce and increase the delay and check the
Output
3] Make Light Pattern (Reduce delay and use
loop)
PUSH BUTTON
Pushing a button causes wires
under the button to be
connected, allowing current to
flow. (called closed) When the
button isn’t pressed, no current
can flow because the wires
aren’t touching (called open) .
Circuit Connections: Till now, We are just
doing LED ON and Off.
Now, lets do something a
little more exciting. Let
us make a circuit where
we can change the
brightness of an LED.
How do we change the
brightness of an LED?
It turns out there are two
ways.
1. Change the amount of current going through the LED
2. Take advantage of the persistence of vision - The more time that the LED is on in
a given period of time, the “brighter” we think it is. The more time it is off, the
“dimmer” we think it is.
- On this principle standard method is defined called Pulse Width Modulation
(PWM for short).
- The Arduino supports PWM (on certain pins marked with a tilde(~) on your
board - pins 3, 4,5,9,10 and 11) at 500Hz. (500 times a second.)
- You can give it a value between 0 and 255.
- To do this you make a call to analogWrite() with the value.
- The ratio of “ON” time to total time is called the “duty cycle”. A PWM output that
is ON .
- half the time is said to have a duty cycle of 50%.
output voltage = (on_time / cycle_time) * 5V
So far we have just been
playing with lights.
Now we will make simple
sounds and music.
In order to make a sound, we
turn the speaker on and off a
certain
number of times per second
1] Simply makes Speaker ON for some time.
2] Play some simple tone
3] Play Happy Birthday song
4] Play Song Melody
5] Playing One song Tone
For measuring the temperature
we have to consider following
parts
• Serial Monitor Serial
Monitor
• LM-35
The LM35 series are precision
integrated-circuit temperature
sensors, whose output voltage is
linearly proportional to the
Celsius (Centigrade)
temperature.
The LM35 thus has an advantage
over linear temperature sensors
calibrated in ˚ Kelvin, as the user
is not required to subtract a large
constant voltage from its output
to obtain convenient Centigrade
scaling.
• LCD stands
for Liquid
Crystal Display.
• We will refer
to it as either an
LCD or simply
a display
• A sensor is an object whose purpose is to detect events or changes in
its environment, and then provide a corresponding output
•Photo Cell (Light Sensor)
A photoresistor or
light-dependent resistor
(LDR) or photocell is a
light-controlled variable
resistor. Theresistance of a
photoresistor decreases with
increasing incident light
intensity.
Reed Switch (Magnetic Field Detector)
• The reed switch is
an electrical switch operated
by an applied magnetic field
• Normally it is open
• When magnetic field is
produced near it teds to
closed
Piezo buzzer
-Piezo buzzer is a vibration
Sensor
- Here we use a Piezo element
to detect sound, what will
allow us to use it as a knock
sensor.
- We are taking advantage of
the processors capability to
read analog signals through its
ADC - analog to digital
converter.
- These converters read a
voltage value and transform it
into a value encoded digitally.
Obstacle Detector Robot
1] Arduino
2] Motor Driver Shield
3] Ultrasonic Sensor
4] Dc Motors
Ardui no
Ardui no

More Related Content

PPTX
Introduction to arduino
PDF
Arduino Workshop Day 1 - Basic Arduino
PPTX
Introduction to Arduino Hardware and Programming
PDF
Introduction to Arduino Programming
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
PPT
Arithmetic progression
PPTX
PPT ON Arduino
Introduction to arduino
Arduino Workshop Day 1 - Basic Arduino
Introduction to Arduino Hardware and Programming
Introduction to Arduino Programming
Arduino Workshop Day 2 - Advance Arduino & DIY
Arithmetic progression
PPT ON Arduino

What's hot (20)

PPT
Arduino
PPTX
Introduction to Arduino
PPT
Arduino presentation by_warishusain
PDF
Arduino presentation
PPS
What is Arduino ?
PPTX
Arduino Workshop
PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PPT
Intro to Arduino
PPTX
Different Arduino Boards
PDF
1. Introduction to Embedded Systems & IoT
PPTX
Introduction to Arduino
PPTX
Arduino slides
PPTX
Lesson sample introduction to arduino
PDF
Sensor Based Blind Stick
PPTX
Introduction to the Arduino
PDF
Esp8266 basics
PPTX
Arduino
PPS
Arduino Uno Pin Description
PPTX
Sensor Based Blind Stick
PDF
Embedded C programming based on 8051 microcontroller
Arduino
Introduction to Arduino
Arduino presentation by_warishusain
Arduino presentation
What is Arduino ?
Arduino Workshop
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Intro to Arduino
Different Arduino Boards
1. Introduction to Embedded Systems & IoT
Introduction to Arduino
Arduino slides
Lesson sample introduction to arduino
Sensor Based Blind Stick
Introduction to the Arduino
Esp8266 basics
Arduino
Arduino Uno Pin Description
Sensor Based Blind Stick
Embedded C programming based on 8051 microcontroller
Ad

Viewers also liked (14)

PPTX
Mate International Rov Competition
ODP
Building an ROV Electronics System
PDF
Arduino & Internet of Things - First Step
PPTX
Interfacing bluetooth with arduino
PPTX
War Field Spying Robot with Fire Fighting Alarm.
PPTX
Arduino camera interfacing OV7670
DOC
OV7670 Camera interfacing-with-arduino-microcontroller
PPTX
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
DOCX
Metal Detector : A Working Model
PPTX
Metal detector
PPTX
Metal detectors
PPTX
Simple Metal Detector Circuit Diagram and Working
PPT
Underwater Robotics ROV information for WSCS
PDF
Study: The Future of VR, AR and Self-Driving Cars
Mate International Rov Competition
Building an ROV Electronics System
Arduino & Internet of Things - First Step
Interfacing bluetooth with arduino
War Field Spying Robot with Fire Fighting Alarm.
Arduino camera interfacing OV7670
OV7670 Camera interfacing-with-arduino-microcontroller
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
Metal Detector : A Working Model
Metal detector
Metal detectors
Simple Metal Detector Circuit Diagram and Working
Underwater Robotics ROV information for WSCS
Study: The Future of VR, AR and Self-Driving Cars
Ad

Similar to Ardui no (20)

PPTX
Arduino_Beginner.pptx
PPTX
Introduction to Arduino Webinar
PPTX
Basic arduino components and more things about arduino
PPTX
Arduino_Beginner.pptx
PPT
Introduction Arduino uno
PPTX
arduino and its introduction deep dive ppt.pptx
PDF
Lab2ppt
PPTX
Introduction to Arduino session and basically it depends how you us and where...
PPTX
Internet of Things prescribed by University
PDF
Arduino spooky projects_class1
PPTX
Arduino course
PDF
arduinocourse-180308074529 (1).pdf
PPTX
embedded_in_Arduino_with_basic_embedded.pptx
PPTX
Arduino intro.pptx
PPT
Introduction to Arduino - Basics programming
PPTX
Arduino basics & programming skill development
PPTX
Arduino Introduction PPT for school students
PPTX
Introduction to Arduino.pptx
PPTX
PPTX
Arduino.pptx
Arduino_Beginner.pptx
Introduction to Arduino Webinar
Basic arduino components and more things about arduino
Arduino_Beginner.pptx
Introduction Arduino uno
arduino and its introduction deep dive ppt.pptx
Lab2ppt
Introduction to Arduino session and basically it depends how you us and where...
Internet of Things prescribed by University
Arduino spooky projects_class1
Arduino course
arduinocourse-180308074529 (1).pdf
embedded_in_Arduino_with_basic_embedded.pptx
Arduino intro.pptx
Introduction to Arduino - Basics programming
Arduino basics & programming skill development
Arduino Introduction PPT for school students
Introduction to Arduino.pptx
Arduino.pptx

Recently uploaded (20)

PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Welding lecture in detail for understanding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Sustainable Sites - Green Building Construction
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
Internet of Things (IOT) - A guide to understanding
Model Code of Practice - Construction Work - 21102022 .pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Welding lecture in detail for understanding
Foundation to blockchain - A guide to Blockchain Tech
Lecture Notes Electrical Wiring System Components
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Lesson 3_Tessellation.pptx finite Mathematics
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
bas. eng. economics group 4 presentation 1.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Geodesy 1.pptx...............................................
Sustainable Sites - Green Building Construction
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CYBER-CRIMES AND SECURITY A guide to understanding

Ardui no

  • 3. • Microcontroller • Idea behind Arduino • Inroduction to Arduino • History • Advantages • Different Boards of Arduino • Comparison • ATmega328p Specifications • Arduino Uno Board • Download and Install software • Writing programs
  • 4. (μC, MCU) • Computer on a single integrated chip – Processor (CPU) – Memory (RAM / ROM / Flash) – I/O ports (USB, I2C, SPI, ADC) • Common microcontroller families: – Intel: 4004, 8008, etc. – Atmel: AT and AVR – Microchip: PIC – ARM: (multiple manufacturers) • Used in: – Cell phones, – Toys – Household appliances – Cars – Cameras
  • 6. • Arduino is an open-source prototyping platform based on easy-to-use hardware and software • Arduino is a set of development boards that come with pre-tested hardware and software libraries •It means, you can buy an inexpensive Arduino board and start developing your project instantly
  • 7. • Arduino started in 2005 as a project for students at the Interaction Design Institute Ivrea Italy • In memoir of this King Arduino, there is this ‘Bar Di Re Arduino’, a pub which was frequently visited by Massimo Banzi •And he gave the name to this low-cost microcontroller board in honour of the place 5 core members
  • 9. • Arduino Uno • Arduino Leonardo • Arduino LilyPad • Arduino Mega • Arduino Nano • Arduino Mini • Arduino Mini Pro • Arduino BT
  • 11. • High performance low power AVR 8-bit • Advanced RISC architecture – 131 powerful instruction • Available in DIP package • Up to 20 MHz clock • 32kB flash memory • 1 kB SRAM • 23 programmable I/O channels • Six 10-bit ADC inputs • Three timers/counters • Six PWM outputs Pin name Pin number Special function
  • 12. Microcontroller ATmega168/328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 16 KB (ATmega168) or 32 KB (ATmega328) of which 2 KB used by bootloader SRAM 1 KB (ATmega168) or 2 KB (ATmega328) EEPROM 512 bytes (ATmega168) or 1 KB (ATmega328) Clock Speed 16 MHz
  • 14. • Download Arduino compiler and development environment from: http://arduino.cc/en/Main/Software • Current version: 1.6.6 • Available for: – Windows – MacOX – Linux • No installer needed... just unzip to a convenient location • Before running Arduino, plug in your board using USB cable (external power is not necessary) • When USB device is not recognized, navigate to and select the appopriate driver from the installation directory • Run Arduino
  • 15. Before writing program we have to first select board
  • 17. • Compile –Before your program “code” can be sent to the board, it needs to be converted into instructions that the board understands. This process is called compiling. • Stop-This stops the compilation process. (I have never used this button and you probably won’t have a need to either.) • Create new Sketch-This opens a New window to create a new sketch. • Open Existing Sketch - This loads a sketch from a file on your computer
  • 18. • Save Sketch - This saves the changes to the sketch you are working on. • Upload to Board - This compiles and then transmits over the USB cable to your board. • Serial Monitor - • Tab Button - This lets you create multiple files in your sketch. This is for more advanced programming than we will do in this class. • Sketch Editor -This is where you write or edit sketches • Text Console - This shows you what the IDE is currently doing and is also where error messages display if you make a mistake in typing your program. (often called a syntax error) • Line Number -This shows you what line number your cursor is on. It is useful since the compiler gives error messages with a line number
  • 20. • void setup() – Will be executed only when the program begins (or reset button is pressed) • void loop() – Will be executed repeatedly
  • 21. 1] LED Blink A light-emitting diode (LED) is a two-lead semiconductor light source. - It is a p–n junction diode, which emits light when forward biased. - A resistor is connected in series so as to limit current flowing through the LED.
  • 23. 1] Make Port line “ 9 ” as a Output and repeat the same program 2] Reduce and increase the delay and check the Output 3] Make Light Pattern (Reduce delay and use loop)
  • 24. PUSH BUTTON Pushing a button causes wires under the button to be connected, allowing current to flow. (called closed) When the button isn’t pressed, no current can flow because the wires aren’t touching (called open) .
  • 25. Circuit Connections: Till now, We are just doing LED ON and Off. Now, lets do something a little more exciting. Let us make a circuit where we can change the brightness of an LED. How do we change the brightness of an LED? It turns out there are two ways.
  • 26. 1. Change the amount of current going through the LED 2. Take advantage of the persistence of vision - The more time that the LED is on in a given period of time, the “brighter” we think it is. The more time it is off, the “dimmer” we think it is. - On this principle standard method is defined called Pulse Width Modulation (PWM for short). - The Arduino supports PWM (on certain pins marked with a tilde(~) on your board - pins 3, 4,5,9,10 and 11) at 500Hz. (500 times a second.) - You can give it a value between 0 and 255. - To do this you make a call to analogWrite() with the value. - The ratio of “ON” time to total time is called the “duty cycle”. A PWM output that is ON . - half the time is said to have a duty cycle of 50%.
  • 27. output voltage = (on_time / cycle_time) * 5V
  • 28. So far we have just been playing with lights. Now we will make simple sounds and music. In order to make a sound, we turn the speaker on and off a certain number of times per second
  • 29. 1] Simply makes Speaker ON for some time. 2] Play some simple tone 3] Play Happy Birthday song 4] Play Song Melody 5] Playing One song Tone
  • 30. For measuring the temperature we have to consider following parts • Serial Monitor Serial Monitor
  • 31. • LM-35 The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage over linear temperature sensors calibrated in ˚ Kelvin, as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling.
  • 32. • LCD stands for Liquid Crystal Display. • We will refer to it as either an LCD or simply a display
  • 33. • A sensor is an object whose purpose is to detect events or changes in its environment, and then provide a corresponding output •Photo Cell (Light Sensor) A photoresistor or light-dependent resistor (LDR) or photocell is a light-controlled variable resistor. Theresistance of a photoresistor decreases with increasing incident light intensity.
  • 34. Reed Switch (Magnetic Field Detector) • The reed switch is an electrical switch operated by an applied magnetic field • Normally it is open • When magnetic field is produced near it teds to closed
  • 35. Piezo buzzer -Piezo buzzer is a vibration Sensor - Here we use a Piezo element to detect sound, what will allow us to use it as a knock sensor. - We are taking advantage of the processors capability to read analog signals through its ADC - analog to digital converter. - These converters read a voltage value and transform it into a value encoded digitally.
  • 37. 1] Arduino 2] Motor Driver Shield 3] Ultrasonic Sensor 4] Dc Motors