SlideShare a Scribd company logo
 Introduction to arduino
 Architechture of arduino
 Pin configuration to arduino
 Serial communication
 Atmega 328-arduino pin mapping
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
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)
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 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.
 ARDUINO AND ITS PIN  CONFIGURATION
 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.
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
• 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.
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
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);
        }
}
 
 ARDUINO AND ITS PIN  CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION
• 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 (20)

PPTX
Introduction to arduino ppt main
eddy royappa
 
PDF
Low power vlsi design ppt
Anil Yadav
 
PPTX
Atmel and pic microcontroller
Tearsome Llantada
 
PPTX
8051 Microcontroller ppt
Rahul Kumar
 
PPT
Serial Peripheral Interface(SPI)
Dhaval Kaneria
 
PPT
Arduino
vipin7vj
 
PPT
VLSI routing
Naveen Kumar
 
PPTX
Arduino and its hw architecture
Zeeshan Rafiq
 
PPTX
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
PPTX
Interrupts in 8051
Sudhanshu Janwadkar
 
PPT
Adc interfacing
Monica Gunjal
 
PPT
Memory organization of 8051
Muthu Manickam
 
PPT
8051 block diagram
DominicHendry
 
PPTX
Serial Communication in 8051
Sudhanshu Janwadkar
 
PPT
Verilog hdl
Muhammad Uzair Rasheed
 
PPTX
Target hardware debugging
Shriya Shankar
 
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
PDF
VLSI Fresher Resume
vikas kumar
 
PPTX
8051 io interface
Abhinav Shubham
 
Introduction to arduino ppt main
eddy royappa
 
Low power vlsi design ppt
Anil Yadav
 
Atmel and pic microcontroller
Tearsome Llantada
 
8051 Microcontroller ppt
Rahul Kumar
 
Serial Peripheral Interface(SPI)
Dhaval Kaneria
 
Arduino
vipin7vj
 
VLSI routing
Naveen Kumar
 
Arduino and its hw architecture
Zeeshan Rafiq
 
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Interrupts in 8051
Sudhanshu Janwadkar
 
Adc interfacing
Monica Gunjal
 
Memory organization of 8051
Muthu Manickam
 
8051 block diagram
DominicHendry
 
Serial Communication in 8051
Sudhanshu Janwadkar
 
Target hardware debugging
Shriya Shankar
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
VLSI Fresher Resume
vikas kumar
 
8051 io interface
Abhinav Shubham
 

Similar to ARDUINO AND ITS PIN CONFIGURATION (20)

PPTX
ATmegaMicrocontrollerArchitecturenotes.pptx
aartis110
 
PPTX
UNI T 6- SPI_I2C_Lecture8.pptx
naveen088888
 
PPTX
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
PPTX
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
PPTX
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
PDF
communication interfaces-Embedded real time systems
Raghunath reddy
 
DOCX
digital clock atmega16
Arcanjo Salazaku
 
PPTX
arduino and its introduction deep dive ppt.pptx
SruSru1
 
PPTX
Arduino
LetzkuLetz Castro
 
PPTX
Peripherals and interfacing
RAMPRAKASHT1
 
PPTX
Arduino Programming Familiarization
Amit Kumer Podder
 
PPTX
Arduino Foundations
John Breslin
 
PPTX
Embedded system design using arduino
Santosh Verma
 
DOCX
Avr report
NITISH KUMAR
 
PPTX
Basics of open source embedded development board (
Dhruwank Vankawala
 
PPTX
Basics of open source embedded development board (
Dhruwank Vankawala
 
PPTX
Arduino_Beginner.pptx
aravind Guru
 
DOCX
The arduino uno is a microcontroller board based on the
Pramod Kumar
 
PPT
atmega 128 and communication protocol
Rashmi Deoli
 
ATmegaMicrocontrollerArchitecturenotes.pptx
aartis110
 
UNI T 6- SPI_I2C_Lecture8.pptx
naveen088888
 
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
embedded system on board communication.pptx
BEVARAVASUDEVAAP1813
 
communication interfaces-Embedded real time systems
Raghunath reddy
 
digital clock atmega16
Arcanjo Salazaku
 
arduino and its introduction deep dive ppt.pptx
SruSru1
 
Peripherals and interfacing
RAMPRAKASHT1
 
Arduino Programming Familiarization
Amit Kumer Podder
 
Arduino Foundations
John Breslin
 
Embedded system design using arduino
Santosh Verma
 
Avr report
NITISH KUMAR
 
Basics of open source embedded development board (
Dhruwank Vankawala
 
Basics of open source embedded development board (
Dhruwank Vankawala
 
Arduino_Beginner.pptx
aravind Guru
 
The arduino uno is a microcontroller board based on the
Pramod Kumar
 
atmega 128 and communication protocol
Rashmi Deoli
 
Ad

Recently uploaded (20)

PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PDF
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
PPTX
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
PPTX
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Distribution reservoir and service storage pptx
dhanashree78
 
3rd International Conference on Machine Learning and IoT (MLIoT 2025)
ClaraZara1
 
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Ad

ARDUINO AND ITS PIN CONFIGURATION

  • 1.  Introduction to arduino  Architechture of arduino  Pin configuration to arduino  Serial communication  Atmega 328-arduino pin mapping
  • 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)
  • 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.
  • 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.
  • 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.
  • 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);         } }  
  • 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.