SlideShare a Scribd company logo
1 of 39
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
Arduino Microcontroller Guide for Beginners
Arduino Microcontroller Guide for Beginners

More Related Content

What's hot (20)

Arduino
ArduinoArduino
Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino Introduction (Blinking LED) Presentation (workshop #5)
Arduino  Introduction (Blinking LED)  Presentation (workshop #5)Arduino  Introduction (Blinking LED)  Presentation (workshop #5)
Arduino Introduction (Blinking LED) Presentation (workshop #5)
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino
ArduinoArduino
Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
 
Temperature based fan controller
Temperature based fan controllerTemperature based fan controller
Temperature based fan controller
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 
Arduino IDE
Arduino IDE Arduino IDE
Arduino IDE
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Getting started with arduino uno
Getting started with arduino unoGetting started with arduino uno
Getting started with arduino uno
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 

Viewers also liked

Mate International Rov Competition
Mate International Rov CompetitionMate International Rov Competition
Mate International Rov Competitionconnors934
 
Building an ROV Electronics System
Building an ROV Electronics SystemBuilding an ROV Electronics System
Building an ROV Electronics SystemSameh Galal
 
Arduino & Internet of Things - First Step
Arduino & Internet of Things - First StepArduino & Internet of Things - First Step
Arduino & Internet of Things - First StepAlessio Reggiani
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduinoJairaj Jangle
 
War Field Spying Robot with Fire Fighting Alarm.
War Field Spying Robot with Fire Fighting Alarm.War Field Spying Robot with Fire Fighting Alarm.
War Field Spying Robot with Fire Fighting Alarm.vansh_raheja
 
Arduino camera interfacing OV7670
Arduino camera interfacing OV7670Arduino camera interfacing OV7670
Arduino camera interfacing OV7670Somnath Sharma
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerSomnath Sharma
 
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTHAUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTHAbhinav Maggu
 
Metal Detector : A Working Model
Metal Detector : A Working ModelMetal Detector : A Working Model
Metal Detector : A Working ModelAtit Gaonkar
 
Simple Metal Detector Circuit Diagram and Working
Simple Metal Detector Circuit Diagram and WorkingSimple Metal Detector Circuit Diagram and Working
Simple Metal Detector Circuit Diagram and Workingelprocus
 
Underwater Robotics ROV information for WSCS
Underwater Robotics ROV information for WSCSUnderwater Robotics ROV information for WSCS
Underwater Robotics ROV information for WSCShagenteacher
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
 

Viewers also liked (14)

Mate International Rov Competition
Mate International Rov CompetitionMate International Rov Competition
Mate International Rov Competition
 
Building an ROV Electronics System
Building an ROV Electronics SystemBuilding an ROV Electronics System
Building an ROV Electronics System
 
Arduino & Internet of Things - First Step
Arduino & Internet of Things - First StepArduino & Internet of Things - First Step
Arduino & Internet of Things - First Step
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
 
War Field Spying Robot with Fire Fighting Alarm.
War Field Spying Robot with Fire Fighting Alarm.War Field Spying Robot with Fire Fighting Alarm.
War Field Spying Robot with Fire Fighting Alarm.
 
Arduino camera interfacing OV7670
Arduino camera interfacing OV7670Arduino camera interfacing OV7670
Arduino camera interfacing OV7670
 
OV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontrollerOV7670 Camera interfacing-with-arduino-microcontroller
OV7670 Camera interfacing-with-arduino-microcontroller
 
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTHAUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
AUTOMATED METAL DETECTOR ROBOTIC VEHICLE WITH MANUAL CONTROL USING BLUETOOTH
 
Metal Detector : A Working Model
Metal Detector : A Working ModelMetal Detector : A Working Model
Metal Detector : A Working Model
 
Metal detector
Metal detector Metal detector
Metal detector
 
Metal detectors
Metal detectors Metal detectors
Metal detectors
 
Simple Metal Detector Circuit Diagram and Working
Simple Metal Detector Circuit Diagram and WorkingSimple Metal Detector Circuit Diagram and Working
Simple Metal Detector Circuit Diagram and Working
 
Underwater Robotics ROV information for WSCS
Underwater Robotics ROV information for WSCSUnderwater Robotics ROV information for WSCS
Underwater Robotics ROV information for WSCS
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Similar to Arduino Microcontroller Guide for Beginners

Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptxaravind Guru
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino WebinarFragiskos Fourlas
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptxshivagoud45
 
Introduction Arduino uno
Introduction Arduino uno Introduction Arduino uno
Introduction Arduino uno Venkatkumar78
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1Felipe Belarmino
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfssusere5db05
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptxAkshat Bijronia
 
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptxAadilKk
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfHebaEng
 
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.pdfKadiriIbrahim2
 
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.pptxDinola2
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxethannguyen1618
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino FoundationsJohn Breslin
 
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 BasicsVic Fernandes
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advancedImran Sheikh
 

Similar to Arduino Microcontroller Guide for Beginners (20)

Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
Introduction Arduino uno
Introduction Arduino uno Introduction Arduino uno
Introduction Arduino uno
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
 
Arduino course
Arduino courseArduino course
Arduino course
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
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
 
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
 
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
 

Recently uploaded

Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

Arduino Microcontroller Guide for Beginners

  • 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