SlideShare a Scribd company logo
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
• 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
• 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
• 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
• 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.
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
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf

More Related Content

Similar to arduinoworkshop-160204051621.pdf

Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
SanthanaMari11
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
Akshat Bijronia
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Arduino
ArduinoArduino
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
AadilKk
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Arduino-101-Workshop (Introduction to Arduino and motor driver)
Arduino-101-Workshop (Introduction to Arduino and motor driver)Arduino-101-Workshop (Introduction to Arduino and motor driver)
Arduino-101-Workshop (Introduction to Arduino and motor driver)
ShirazimMunir
 
SKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdfSKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdf
KadiriIbrahim2
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Dinola2
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
John Breslin
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Arduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond BasicsArduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond Basics
Vic Fernandes
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
Imran Sheikh
 
Notes arduino workshop_15
Notes arduino workshop_15Notes arduino workshop_15
Notes arduino workshop_15
Faiz Lazim
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
Md. Nahidul Islam
 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring System
INDRANILSAIN
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
scmandota
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
AditiBhushan3
 

Similar to arduinoworkshop-160204051621.pdf (20)

Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Arduino
ArduinoArduino
Arduino
 
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
 
Arduino-101-Workshop (Introduction to Arduino and motor driver)
Arduino-101-Workshop (Introduction to Arduino and motor driver)Arduino-101-Workshop (Introduction to Arduino and motor driver)
Arduino-101-Workshop (Introduction to Arduino and motor driver)
 
SKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdfSKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdf
 
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptxInternet of Things Unit 3 notes-Design and Development and Arduino.pptx
Internet of Things Unit 3 notes-Design and Development and Arduino.pptx
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond BasicsArduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond Basics
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 
Notes arduino workshop_15
Notes arduino workshop_15Notes arduino workshop_15
Notes arduino workshop_15
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring System
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 

More from AbdErrezakChahoub

330415853-Oximetro-Ri-fox-n.pdf
330415853-Oximetro-Ri-fox-n.pdf330415853-Oximetro-Ri-fox-n.pdf
330415853-Oximetro-Ri-fox-n.pdf
AbdErrezakChahoub
 
21375011.pdf
21375011.pdf21375011.pdf
21375011.pdf
AbdErrezakChahoub
 
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdfCours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
AbdErrezakChahoub
 
147135.ppt
147135.ppt147135.ppt
147135.ppt
AbdErrezakChahoub
 
EEG_circut.ppt
EEG_circut.pptEEG_circut.ppt
EEG_circut.ppt
AbdErrezakChahoub
 
Les-théories-de-la-communication-1.pptx
Les-théories-de-la-communication-1.pptxLes-théories-de-la-communication-1.pptx
Les-théories-de-la-communication-1.pptx
AbdErrezakChahoub
 
Les-théories-de-la-communication (1).pptx
Les-théories-de-la-communication (1).pptxLes-théories-de-la-communication (1).pptx
Les-théories-de-la-communication (1).pptx
AbdErrezakChahoub
 
Le-Maroc-est-la-5e-puissance-d-Afrique.pdf
Le-Maroc-est-la-5e-puissance-d-Afrique.pdfLe-Maroc-est-la-5e-puissance-d-Afrique.pdf
Le-Maroc-est-la-5e-puissance-d-Afrique.pdf
AbdErrezakChahoub
 

More from AbdErrezakChahoub (8)

330415853-Oximetro-Ri-fox-n.pdf
330415853-Oximetro-Ri-fox-n.pdf330415853-Oximetro-Ri-fox-n.pdf
330415853-Oximetro-Ri-fox-n.pdf
 
21375011.pdf
21375011.pdf21375011.pdf
21375011.pdf
 
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdfCours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
Cours Technologie et maintenance des appareils Radiologiques-Partie 2-.pdf
 
147135.ppt
147135.ppt147135.ppt
147135.ppt
 
EEG_circut.ppt
EEG_circut.pptEEG_circut.ppt
EEG_circut.ppt
 
Les-théories-de-la-communication-1.pptx
Les-théories-de-la-communication-1.pptxLes-théories-de-la-communication-1.pptx
Les-théories-de-la-communication-1.pptx
 
Les-théories-de-la-communication (1).pptx
Les-théories-de-la-communication (1).pptxLes-théories-de-la-communication (1).pptx
Les-théories-de-la-communication (1).pptx
 
Le-Maroc-est-la-5e-puissance-d-Afrique.pdf
Le-Maroc-est-la-5e-puissance-d-Afrique.pdfLe-Maroc-est-la-5e-puissance-d-Afrique.pdf
Le-Maroc-est-la-5e-puissance-d-Afrique.pdf
 

Recently uploaded

Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 

Recently uploaded (20)

Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 

arduinoworkshop-160204051621.pdf

  • 1.
  • 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
  • 10.
  • 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
  • 13.
  • 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
  • 16.
  • 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
  • 19.
  • 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.
  • 22.
  • 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