SlideShare a Scribd company logo
1 of 33
 Introduction to arduino
 Architechture of arduino
 Pin configuration to arduino
 Serial communication
 Atmega 328-arduino pin mapping
Features
•High Performance, Low Power Atmel® AVR® 8-Bit
Microcontroller Family
•Advanced RISC Architecture – 131 Powerful
Instructions
–32 x 8 General Purpose Working Registers
• 32KBytes of In-System Self-Programmable Flash
program Memory
– 1KBytes EEPROM
– 2KBytes Internal SRAM
EEPROM – Data Retention: 20 years at 85°C/100 years
at 25°C(1) – Optional Boot Code Section with
Independent Lock Bits
Peripheral Features
•– Two 8-bit Timer/Counters with Separate Prescaler
and Compare Mode
•– One 16-bit Timer/Counter
•Temperature Measurement – 6-channel 10-bit ADC
•Two Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-
chip Oscillator
• Special Microcontroller Features
– Power-on Reset and Programmable Brown-out Detection
– External and Internal Interrupt Sources – Six Sleep
Modes: Idle, ADC Noise Reduction, Power-save, Power-
down, Standby, and Extended Standby
• I/O and Packages – 23 Programmable I/O Lines – 28-pin
PDIP,
• Operating Voltage: – 1.8 - 5.5V
• Temperature Range: – -40°C to 105°C
• Power Consumption at 1MHz, 1.8V, 25°C – Active Mode:
0.2mA – Power-down Mode: 0.1μA – Power-save Mode:
0.75μA (Including 32kHz RTC)
 VCC Digital supply voltage.
 GND Ground.
 Port B (PB[7:0]) XTAL1/XTAL2/TOSC1/TOSC2
Port B is an 8-bit bi-directional I/O port with
internal pull-up resistors (selected for each bit).
PB[7:6] is used as TOSC[2:1] input for the
Asynchronous Timer/Counter2
Port C (PC[5:0]) Port C is a 7-bit bi-directional I/O
port with internal pull-up resistors (selected for each
bit).
 PC6/RESET If the RSTDISBL Fuse is programmed,
PC6 is used as an I/O pin.
.Port D (PD[7:0]) Port D is an 8-bit bi-directional I/O
port with internal pull-up resistors (selected for each
bit).
AVCC is the supply voltage pin for the A/D Converter
AREF is the analog reference pin for the A/D
Converter.
 Serial communications provide an easy and flexible way for your Arduino
board to interact with your computer and other devices. This chapter
explains how to send and receive information using this capability.
 You can also send data from the Serial Monitor to Arduino by entering text
in the text box to the left of the Send button.
 Baud rate is selected using the drop-down box on the bottom right. You
can use the drop down labeled “No line ending” to automatically send a
carriage return or a combination of a carriage return and a line at the end of
each message sent when clicking the Send button.
 Your Arduino sketch can use the serial port to indirectly access (usually
via a proxy program written in a language like Processing) all the
resources (memory, screen, keyboard, mouse, network connectivity, etc.)
that your computer has. Your computer can also use the serial link to
interact with sensors or other devices connected to Arduino.
• Your sketch must call the Serial.begin() function before it
can use serial input or output.
• The function takes a single parameter: the desired
communication speed.
• You must use the same speed for the sending side and the
receiving side, or you will see gobbledygook (or nothing at
all) on the screen. This example and most of the others in
this book use a speed of 9,600 baud (baud is a measure of
the number of bits transmitted per second).
• The 9,600 baud rate is approximately 1,000 characters per
second. You can send at lower or higher rates (the range is
300 to 115,200), but make sure both sides use the same
speed.
int incomingByte = 0;  
void setup()
{
        Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps
}
void loop()
{
        // send data only when you receive data:
        if (Serial.available() > 0) {
                // read the incoming byte:
                incomingByte = Serial.read();
                // say what you got:
                Serial.print("I received: ");
                Serial.println(incomingByte, DEC);
        }
}
 
• I2C The two connections for the I2C bus are called SCL and
SDA.
• These are available on a standard Arduino board using
analog pin 5 for SCL, which provides a clock signal, and
analog pin 4 for SDL, which is for transfer of data (on the
Mega, use digital pin 20 for SDA and pin 21 for SCL).
• One device on the I2C bus is considered the master device.
Its job is to coordinate the transfer of information between
the other devices (slaves) that are attached.
• There must be only one master, and in most cases the
Arduino is the master, controlling the other chips attached
to it. Figure 13-1 depicts an I2C master with multiple I2C
slaves.
An I2C master with one or more I2C slaves
 SPI Recent Arduino releases (from release 0019)
include a library that allows communication with
SPI devices. SPI has separate input (labelled
“MOSI”) and output (labelled “MISO”) lines and a
clock line. These three lines are connected to the
respective lines on one or more slaves. Slaves are
identified by signalling with the Slave Select (SS)
line. Figure shows the SPI connections.
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION

More Related Content

What's hot

Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduinoBetsy Eng
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino unoRahat Sood
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino ProgrammingJames Lewis
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduinoSantosh Verma
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptDr.YNM
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoOmer Kilic
 
Introduction to Microprocessor and Microcontroller.pdf
Introduction to Microprocessor and Microcontroller.pdfIntroduction to Microprocessor and Microcontroller.pdf
Introduction to Microprocessor and Microcontroller.pdfEngineering Funda
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseElaf A.Saeed
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Moe Moe Myint
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded systemVikas Dongre
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 

What's hot (20)

Arduino
ArduinoArduino
Arduino
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
Ardui no
Ardui no Ardui no
Ardui no
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduino
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to Microprocessor and Microcontroller.pdf
Introduction to Microprocessor and Microcontroller.pdfIntroduction to Microprocessor and Microcontroller.pdf
Introduction to Microprocessor and Microcontroller.pdf
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino Course
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu Wi-Fi Esp8266 nodemcu
Wi-Fi Esp8266 nodemcu
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 

Similar to ARDUINO AND ITS PIN CONFIGURATION

ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxaartis110
 
UNI T 6- SPI_I2C_Lecture8.pptx
UNI                    T 6- SPI_I2C_Lecture8.pptxUNI                    T 6- SPI_I2C_Lecture8.pptx
UNI T 6- SPI_I2C_Lecture8.pptxnaveen088888
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemsRaghunath reddy
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming FamiliarizationAmit Kumer Podder
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino FoundationsJohn Breslin
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (Dhruwank Vankawala
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (Dhruwank Vankawala
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptxaravind Guru
 
The arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on theThe arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on thePramod Kumar
 
atmega 128 and communication protocol
atmega 128 and communication protocolatmega 128 and communication protocol
atmega 128 and communication protocolRashmi Deoli
 
Embedded & pcb design
Embedded & pcb designEmbedded & pcb design
Embedded & pcb designTanveer Behl
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 

Similar to ARDUINO AND ITS PIN CONFIGURATION (20)

ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptx
 
UNI T 6- SPI_I2C_Lecture8.pptx
UNI                    T 6- SPI_I2C_Lecture8.pptxUNI                    T 6- SPI_I2C_Lecture8.pptx
UNI T 6- SPI_I2C_Lecture8.pptx
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systems
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Arduino
ArduinoArduino
Arduino
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
 
Avr report
Avr reportAvr report
Avr report
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
 
Basics of open source embedded development board (
Basics of open source embedded development board (Basics of open source embedded development board (
Basics of open source embedded development board (
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 
The arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on theThe arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on the
 
atmega 128 and communication protocol
atmega 128 and communication protocolatmega 128 and communication protocol
atmega 128 and communication protocol
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Assembler4
Assembler4Assembler4
Assembler4
 
iot1&2.pdf
iot1&2.pdfiot1&2.pdf
iot1&2.pdf
 
Embedded & pcb design
Embedded & pcb designEmbedded & pcb design
Embedded & pcb design
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 

Recently uploaded

Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsAlirezaBagherian3
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfNainaShrivastava14
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSsandhya757531
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 

Recently uploaded (20)

Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal Compressors
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMSHigh Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
High Voltage Engineering- OVER VOLTAGES IN ELECTRICAL POWER SYSTEMS
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 

ARDUINO AND ITS PIN CONFIGURATION

  • 1.  Introduction to arduino  Architechture of arduino  Pin configuration to arduino  Serial communication  Atmega 328-arduino pin mapping
  • 2.
  • 3.
  • 4. Features •High Performance, Low Power Atmel® AVR® 8-Bit Microcontroller Family •Advanced RISC Architecture – 131 Powerful Instructions –32 x 8 General Purpose Working Registers • 32KBytes of In-System Self-Programmable Flash program Memory – 1KBytes EEPROM – 2KBytes Internal SRAM EEPROM – Data Retention: 20 years at 85°C/100 years at 25°C(1) – Optional Boot Code Section with Independent Lock Bits
  • 5. Peripheral Features •– Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode •– One 16-bit Timer/Counter •Temperature Measurement – 6-channel 10-bit ADC •Two Master/Slave SPI Serial Interface – Programmable Watchdog Timer with Separate On- chip Oscillator
  • 6. • Special Microcontroller Features – Power-on Reset and Programmable Brown-out Detection – External and Internal Interrupt Sources – Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power- down, Standby, and Extended Standby • I/O and Packages – 23 Programmable I/O Lines – 28-pin PDIP, • Operating Voltage: – 1.8 - 5.5V • Temperature Range: – -40°C to 105°C • Power Consumption at 1MHz, 1.8V, 25°C – Active Mode: 0.2mA – Power-down Mode: 0.1μA – Power-save Mode: 0.75μA (Including 32kHz RTC)
  • 7.
  • 8.
  • 9.
  • 10.  VCC Digital supply voltage.  GND Ground.  Port B (PB[7:0]) XTAL1/XTAL2/TOSC1/TOSC2 Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit).
  • 11. PB[7:6] is used as TOSC[2:1] input for the Asynchronous Timer/Counter2 Port C (PC[5:0]) Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for each bit).  PC6/RESET If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. .Port D (PD[7:0]) Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). AVCC is the supply voltage pin for the A/D Converter AREF is the analog reference pin for the A/D Converter.
  • 12.
  • 13.  Serial communications provide an easy and flexible way for your Arduino board to interact with your computer and other devices. This chapter explains how to send and receive information using this capability.  You can also send data from the Serial Monitor to Arduino by entering text in the text box to the left of the Send button.  Baud rate is selected using the drop-down box on the bottom right. You can use the drop down labeled “No line ending” to automatically send a carriage return or a combination of a carriage return and a line at the end of each message sent when clicking the Send button.  Your Arduino sketch can use the serial port to indirectly access (usually via a proxy program written in a language like Processing) all the resources (memory, screen, keyboard, mouse, network connectivity, etc.) that your computer has. Your computer can also use the serial link to interact with sensors or other devices connected to Arduino.
  • 14.
  • 15.
  • 16.
  • 17. • Your sketch must call the Serial.begin() function before it can use serial input or output. • The function takes a single parameter: the desired communication speed. • You must use the same speed for the sending side and the receiving side, or you will see gobbledygook (or nothing at all) on the screen. This example and most of the others in this book use a speed of 9,600 baud (baud is a measure of the number of bits transmitted per second). • The 9,600 baud rate is approximately 1,000 characters per second. You can send at lower or higher rates (the range is 300 to 115,200), but make sure both sides use the same speed.
  • 18.
  • 19.
  • 20.
  • 21. int incomingByte = 0;   void setup() {         Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps } void loop() {         // send data only when you receive data:         if (Serial.available() > 0) {                 // read the incoming byte:                 incomingByte = Serial.read();                 // say what you got:                 Serial.print("I received: ");                 Serial.println(incomingByte, DEC);         } }  
  • 22.
  • 23.
  • 24. • I2C The two connections for the I2C bus are called SCL and SDA. • These are available on a standard Arduino board using analog pin 5 for SCL, which provides a clock signal, and analog pin 4 for SDL, which is for transfer of data (on the Mega, use digital pin 20 for SDA and pin 21 for SCL). • One device on the I2C bus is considered the master device. Its job is to coordinate the transfer of information between the other devices (slaves) that are attached. • There must be only one master, and in most cases the Arduino is the master, controlling the other chips attached to it. Figure 13-1 depicts an I2C master with multiple I2C slaves.
  • 25. An I2C master with one or more I2C slaves
  • 26.  SPI Recent Arduino releases (from release 0019) include a library that allows communication with SPI devices. SPI has separate input (labelled “MOSI”) and output (labelled “MISO”) lines and a clock line. These three lines are connected to the respective lines on one or more slaves. Slaves are identified by signalling with the Slave Select (SS) line. Figure shows the SPI connections.