SlideShare a Scribd company logo
1 of 23
EMBEDDED SYSTEM AND ROBOTICS
A Industrial training report Submitted in Partial Fulfillment of the Requirement of the Degree
of
BACHELOR OF TECHNOLOGY
in
ELECTRONICS AND COMMUNICATION ENGINEERING
by
PALLAVI BHARTI
(REG NO.20130549)
Under the guidance of
MR.ROHAN SINGH
Training head
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
SIKKIM MANIPAL INSTITUTE OF TECHNOLOGY
MAJITAR, EAST SIKKIM-737136, December 2016
1
ACKNOWLEGEMENT
I am truly thankful to all the faculties who imparted the lectures on various subjects/topics and
took us to the plant in a guided study visit along with detailed explaining about the plant and
machinery. An Electronics student mainly focuses on practical applications of concepts learned
projects like this one provide us with an ideal opportunity to do the same .I acknowledge the
valuable inputs provided by Mr. ROHAN SINGH.
Last but not least, a big thanks to all my family members and friends, for timely cooperation
and support extended to me all the way.
CONTENTS
2
1.EMBEDDED SYSTEM
3
Si.No. Content
1. Overview of Embedded Systems
2. Introduction to Atmega16 microcontroller
3. Analog to Digital converter
4. Timers in Atmega16
5. 7 segment Interfacing
6. LCD Interfacing
7. DC Motor interfacing
8. IR Sensor Interfacing
9. LM35 Interfacing
10. Matrix keypad interfacing
11. DTMF interfacing
12 RGB LED interfacing
13 Relay interfacing
14 Touch screen interfacing
15 RF interfacing
16 Accelerometer interfacing
INTRODUCTION
Embedded system is a scaled down computer system which is designed toperform a specific task
or operation. The whole system is embedded into an appliance. This reduces human effort to a
great extent. A single chip contains both hardware and software.
Some important things to note about embedded systems:
1. Once an embedded hardware is programmed for a certain task, it is used forever for the same
task. Changing the firmware afterwards is not possible.
2. Such systems are limited in computational resources like memory, CPU processing speed, I/O
facilities but are still capable of performing the task given to them very efficiently.
3. Embedded systems can also be having a reduced functionality version of operating system
called RTOS (Real Time Operating System) for highly specialized applications.
4. Interacts with physical elements in our environment, viz. controlling and driving a motor,
sensing temperature, etc.
EMBEDDED SYSTEM IN DAILY
LIFE
Digital Clock Traffic Light
DVD Player Smart Phones
2.MICROCONTROLLER
4
A Microcontroller is a programmable digital processor with necessary peripherals.
Both microcontrollers and microprocessors are complex sequential digital circuits
meant to carry out job according to the program / instructions.
ATMEGA16 MICROCONTROLLER:
 We will be working on Atmega16 microcontroller, which is a 40-pin IC and belongs to
the MegaAVR category of AVR family.
 Some of the features of Atmega16 are:
 16KB of Flash memory
 1KB of SRAM
 512 Bytes of EEPROM
 Available in 40-Pin DIP
 8- Channel 10-bit ADC
 Two 8-bit Timers/Counters
 One 16-bit Timer/Counter
 4 PWM Channels
 Serial USART
 Digital to AnalogComparator
PIN DIAGRAM
5
I/O PORTS
Input Output functions are set by Three Registers for each PORT.
•DDRX ‐‐‐‐> Sets whether a pin is Input or Output of PORTX.
•PORTX ‐‐‐> Sets the Output Value of PORTX.
•PINX ‐‐‐‐‐> Reads the Value of PORTX.
(Where X= A, B, C or D)
DDRX (Data Direction Register)
Now to make a pin act as I/O we set its corresponding bit in its DDR register.
•To make Input set bit 0
•To make Output set bit 1
PORTX (PORTX Data Register)
• If a pin is set to be output, then by setting bit 1 we make output High that is +5V and by
setting bit 0, make output Low that is 0V.
• If a pin is set to be input, then by setting its corresponding bit in PORTX register will
make it asfollows, Set bit 0 ‐‐‐> Tri‐Stated Set bit 1 ‐‐‐> Pull Up.
• PORTX ‐‐‐‐> to set value of PORTX with a byte.
• PORTX.y ‐‐> to set value of yth pin of PORTX with a bit (works only with CVAVR).
PINX (Data Read Register)This register is used to read the value of a PORT. If a pin is set as
input then corresponding bit on PIN register is,
•0 for Low Input that is V < 2.5V
6
•1 for High Input that is V > 2.5V (Ideally, but actually 0.8 V ‐ 2.8 V is error zone!)
•PINX ‐‐‐‐> Read complete value of PORTX as a byte.
•PINX.y ‐‐> Read yth pin of PORTX as a bit (works only with CVAVR).
SOFTWARE
The software which support this hardware and can communicate with micro controller using
this circuit is‐
•AVR Studio 4
3. Analog to Digital Converters
 Microcontroller understands only digital language.
 To convert the analog output from the sensors to digital we need ADC.
 In AVR family of microcontroller we have inbuilt ADC on PORTA. Each
pin in PORTA has an ADC circuit connected behind it. Thus we have 8
channels of ADC.
 The resolution of ADC output is 10 bit i.e. the output from the ADC is
any number between 0 to 1023
ADC registers:
 The inbuilt ADC of AVR microcontroller have three register which are
used for configuring the ADC. They are:
 ADMUX: it is used for selecting the ADC pin to be used for
connecting the Analog sensors. It is also used for setting the
reference value of the ADC.
 ADSCRA: it is used for controlling the ADC e.g. when should it start
the conversion? Should it repeat the conversion? Should interrupt be
generated after the conversion is complete? Etc.
 ADCH & ADCL: these are used for storing the ADC output values.
Both the registers are 8 bit wide and we require 10 bits for storing the
ADC value. Thus the two registers are used. The way of storing the
ADC value is configured using ADSCRA.
7
ADMUX
ADLAR:-This bit is setting the manner, the ADC result will be stored in
ADC data register.
ADLAR = 0
ADCH& ADCL
ADCSR
8
4.Timers in ATMega16
• In Atmega16, we have three timers:TIMER0 TIMER1 and TIMER2
• Out of these, TIMER0 and TIMER2 are 8 bit timer, while TIMER1 is a 16
bit timer.
• All the timers have three unique registers and two common registers.
• TIMER1 has a special register, called ICR(Input Capture Register).It has
two channels(channel A and channel B).
• TIMER2 has a special register known as ASSR, which is used two
generate PWM using asynchronous clock.
Timer Registers
• Each timer has three registers. They are:
 TCCR(Timer Counter Control Register)
 TCNT(Timer Counter),
 OCR (Output Compare Register).
• Thus, three registers for TIMER0 are TCCR0, TCNT0 and OCR0.
• Similarly for TIMER1 and TIMER2, we have TCCR1, TCNT1, OCR1 and
TCCR2, TCNT2 and OCR2.
• The three timers have two common registers. They are:
 TIMSK (Timer Interrupt Mask)
 TIFR (Timer Interrupt Flag Register
Register Function Description
• TCCR (Timer Counter Control Register): It is used for configuring the
timer i.e. modes and pre scale factor.
• TCNT: It stores the present value of the timer. It is used for monitoring
the status of the timer. After each incrementing in the timer value, this
register compares its value with the OCR register value.
• OCR(Output Compare Register): It is used for setting the required duty
Cycle
9
5. Seven Segment Display
Interfacing
• A seven-segment display can be used to display the decimal numbers 0-9 and
some alpha characters.
• A Seven-Segment Display (SSD) is simply a figure eight grouping of LEDs
{include a decimal point (DP)}.
• Each Segment is labeled (a) to (g).
• SSDs are available in two configurations
• Common Cathode (all LED cathodes are connected)
• Common Anode (all LED anodes are connected)
Fig: Interfacing with atmega16 fig: 7Segment display
6. LCD INTERFACING
• LCD’s are all around us so liquid crystal displays are very useful in these days.
• It is a kind of display that is made up of a special matter state formed using liquid
10
and crystal both , it’s a forth state of matter
• The most popular one is 16x2 LCD module. It has 2 rows & 16 columns.The
intelligent displays are two types:
 Text Display
 Graphics Display
PIN DESCRIPTION
Figure 4.1: pin configuration for 16 X 2 LCD
• 8 data pins D7:D0
Bi-directional data/command pins. Alphanumeric characters are sent in ASCII format.
• RS: Register Select
RS = 0 -> Command Register is selected
RS = 1 -> Data Register is selected
• R/W: Read or Write
0 -> Write, 1 -> Read
• E: Enable (Latch data)
11
Used to latch the data present on the data pins.
A high-to-low edge is needed to latch the data.
• VEE: contrast control.
• VDD & VSS: Power supply
VDD= +5V
VSS=GND
7. DC MOTOR INTERFACING
• The simplest DC rotating machine consists of a single loop of wire
rotating about a fixed axis. The magnetic field is supplied by the North
and South poles of the magnet.
• Rotor is the rotating part.Stator is the stationary part.
• We can reverse the motor direction the simply by reversing the power
supply connection of motor. It means motor is bipolar device.
Necessary Medium to Operate
• We are working on microcontroller and the maximum output current
that it can provide is 20mA.
• But our motor works on 1Amp current so to remove this problem we
will have to connect motor driver IC L293D in between the
microcontroller and motor.
12
Pin Description
Fig: L293D Fig: Interfacing with Atmega16
8. IR Sensor interfacing
• There are two part of the sensors:
1. Emitter
2. Receiver
• Emitterconverts the electrical current in the Infra-Red Radiation.
• Receiver receive the IR radiation when the radiation reflect back after
the collision from the obstacle and then this IR radiation is converted
into electrical current.
Operating Modes:
Our IR sensor can work in two modes:
 Analog Mode: - In this the output is continuously changes depending
upon the reflections from the objects.
 Digital Mode: - In this the output is constant either high or low
depending upon reflections.
How to use?
13
• Digital Mode:-In this mode you can directly connect the sensor to any
pin of the controller and can perform any task according to the condition
you mentioned in program.
• Analog Mode:-In this mode sensor will give analog value so you have to
use ADC because microcontroller works on digital
9.LM35 INTERFACING
• LM35 is a precision IC temperature sensor with its output proportional to the temperature
(in o
C). The sensor circuitry is sealed and therefore it is not subjected to oxidation and
other processes. With LM35, temperature can be measured more accurately than with a
thermistor. It also possess low self-heating and does not cause more than 0.1 o
C
temperature rise in still air.
• The operating temperature range is from -55°C to 150°C. The output voltage varies by
10mV in response to every o
C rise/fall in ambient temperature, i.e., its scale factor is
0.01V/o
C.
Pin Diagram
14
Digital clockDVD playerTraffic Light
Output
• Output of the temperature sensor is analog so we cannot measure it directly from the
controller because it works on a digital logic so we have to initialize ADC of the
controller.
• Give the output of analog sensor on PORTA
10. Interfacing matrix keypad
• The matrices are actually an interface technique. It can be used to interface
inputs like the PC keyboard keys, but also to control multiple outputs like LEDs.
According to this technique, the I/O are divided into two sections: the columns
and the rows.
• It is basically a two dimensional array. We are connected switched in a
fashion as shown in figure. This is 4x4 keypad matrix which is having
two four pin connector. One connector is connected with PORTC and
another is from PORTA. As there are only four pins so we can connect
these pins from lower or higher pins of the MCU PORTs
15
Pin No Function Name
1 Supply voltage;
5V (+35V to -2V)
Vcc
2 Output voltage (+6V to -1V) Output
3 Ground (0V) Ground
CONNECTION OF KEYPAD-
 Connect connectors from PORTs.
 Make one PORT as input and another as output (configuration of
DDR).
 Give ground to one connector’s pin using output configured
PORT and read the corresponding pin of input configured PORT.
11. DTMF Interfacing
• The invention of this is attributed to Western Electric and first used by the Bell
System in commerce.
• DTMF signals are the superposition of 2 sine waves with different frequencies.
• It is a signaling Technology used for communicating between two far away
devices.
• It uses frequency of speech signals.
16
• Only 12 tones are used by our mobile communication out of the 16 combination
that are possible.
• The DTMF is a popular signaling method between telephones and switching
centers.
DTMF Tone Generation
• EXAMPLE:-Pressing the key 1 will result in a sound composed of
both a 697 and a 1209 hertz (Hz) tone.
Decoding DTMF
• The CM-8870 is a full DTMF Receiver that integrates both band split filter and
decoder functions into a single18-pin DIP or SOIC package.
17
• If I am pressing a key let say 1, then it will give the combination of
Frequencies 1209 & 697, and this will directly be given to our sound
Converter IC, the output of that IC would be 0001(Q1, Q2, Q3, Q4),
Following table shows the output for remaining keys.
12. RGB LED interfacing
• It’s is similar to a normal LED but the difference is that it can emit every possible
color. As its name suggest that it has three LED’s inside it of Red, Green and
Blue color.
• It has Four LEGS, in which one is common and remaining three are for R, G and
B color.
13. RELAY INTERFACING
18
• A relay is a simple electromechanical switch made up of an electromagnet and
a set of contacts.
• Relays are used where it is necessary to control a circuit by a low-power signal
(with complete electrical isolation between control and controlled circuits), or
where several circuits must be controlled by one signal
• Provide a sufficient amount of current to this relay, an extra circuit is also require
because microcontroller is not capable of providing such current, that’s why
ULN2803 IC is used for this purpose.
14. Touch screen interfacing
• A Touch Screen is an electronic visual display that the user can control through
simple or multi-touch gestures by touching the screen with one or more fingers.
19
Some Touch Screen can also detect objects such as a stylus or ordinary or
specially coated gloves
Types of Touch Screen:
• Resistive Touch Screen
• Capacitive Touch Screen
• Infrared Touch Screen
• Surface Acoustic Wave
• Optical Imaging
Resistive Touch Screen
• Resistive touchscreen is a relatively new technology which utilizes two flexible
sheets that are separated by air gaps and coated by resistive material
• Pressure applied to the surface of the display by a finger or stylus causes the
layers to touch, which completes electrical circuits and tells the device where the
user is touching.
Detecting a Touch
• To know if the coordinate readings are valid, there must be a way to detect
whether the screen is being touched or not. This can be done by applying a
positive voltage (VCC) to Y+ through a pull up resistor and applying ground to
X–.
• When there is no touch, Y+ is pulled up to the positive voltage. When
there is a touch, Y+ is pulled down to ground as shown in Figure1. This
voltage-level change can be used to generate a pin-change interrupt.
20
How it works
• A uniform voltage gradient is applied to one sheet.whenever the second
sheet touches the other sheet, the second sheet measures the voltage
as a distance along the first sheet. This combinaton of voltage and
distance provides X cordinate.
• after the X cordinate is located, entire process repeats itself by applying
uniform voltage gradient to the second sheet inorder to find the Y
cordinate.this entire process happens in a matter of
milliseconds,oblivious to human eye.
• As it’s also a kind of sensing device so, will give the output in analog
form. Again we need to convert this form into digital form. That’s why we
need a ADC.
15.RF Interfacing
• An RF Module is a (usually) small electronic circuit used to transmit,
receive, or transceiver radio waves on one of a number of carrier
frequencies.
• To secure the data at both the end Encoding and decoding of data is
required.
21
• We will use RF434 module of wireless communication. RF stands for Radio
frequency. And 434 means this module operates on 434MHz of frequency.
• Since it would be serial communication, so we ll be needing an encoder &‟
decoder IC for communication, because at transmitter end we are doing parallel
communication with our kit but to transfer it at a long distance we have to send
serially, so we will use an encoder IC HT12E at the transmitter side, and the
same couple IC HT12D will be used at the receiver side to convert it back
parallel.
REFERENCES
22
• www.google.com
• www.wikipedia.com
Google images:
• http://www.embeddedsystem.com/
• http://robotics.nasa.gov/
• www.cmosexod.com
• www.best-microcontrollerprojects.com
23

More Related Content

What's hot

Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesigndestruck
 
Home Automation System using iot
Home Automation System using iotHome Automation System using iot
Home Automation System using iotKowshik Deb
 
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
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduinoSantosh Verma
 
Embedded systems and their applications in our daily routine
Embedded systems and their applications in our daily routineEmbedded systems and their applications in our daily routine
Embedded systems and their applications in our daily routineAsad Qayyum Babar
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training pptNishant Kayal
 
IR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNOIR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNOMln Phaneendra
 
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)Moe Moe Myint
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and RoboticsNIT Raipur
 
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
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVRUrvashi Khandelwal
 
Password based door locking system
Password based door locking systemPassword based door locking system
Password based door locking systemArjun Singh
 
Chapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificChapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificMoe Moe Myint
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationFarhan Ahmed Rahee
 
Presentation on embedded system and robotics
Presentation on embedded system and roboticsPresentation on embedded system and robotics
Presentation on embedded system and roboticsArpit Upadhyay
 
Presentation on IoT Based Home Automation using android & NodeMCU
Presentation on IoT Based Home Automation using android & NodeMCUPresentation on IoT Based Home Automation using android & NodeMCU
Presentation on IoT Based Home Automation using android & NodeMCUSouvik Kundu
 

What's hot (20)

Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesign
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Home Automation System using iot
Home Automation System using iotHome Automation System using iot
Home Automation System using iot
 
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
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduino
 
Embedded systems and their applications in our daily routine
Embedded systems and their applications in our daily routineEmbedded systems and their applications in our daily routine
Embedded systems and their applications in our daily routine
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
IR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNOIR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNO
 
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
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
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVR
 
Report on VLSI
Report on VLSIReport on VLSI
Report on VLSI
 
Password based door locking system
Password based door locking systemPassword based door locking system
Password based door locking system
 
Chapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificChapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain Specific
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System Presantation
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
Presentation on embedded system and robotics
Presentation on embedded system and roboticsPresentation on embedded system and robotics
Presentation on embedded system and robotics
 
Presentation on IoT Based Home Automation using android & NodeMCU
Presentation on IoT Based Home Automation using android & NodeMCUPresentation on IoT Based Home Automation using android & NodeMCU
Presentation on IoT Based Home Automation using android & NodeMCU
 

Viewers also liked

project report 8051,eembedded system,pcb designing,electronic voting machine
project report 8051,eembedded system,pcb designing,electronic voting machineproject report 8051,eembedded system,pcb designing,electronic voting machine
project report 8051,eembedded system,pcb designing,electronic voting machineAyush Khurana
 
Gesture based vehicle movements control and alerting system .
Gesture based vehicle movements control and alerting system .Gesture based vehicle movements control and alerting system .
Gesture based vehicle movements control and alerting system .Vignan Munna
 
Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded SystemRoshan Mani
 
temperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollertemperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollerDeepak Yadav
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed controlSai Malleswar
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
Thesis - Voice Control Home Automation
Thesis - Voice Control Home AutomationThesis - Voice Control Home Automation
Thesis - Voice Control Home AutomationAbhishek Neb
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiMuhammad Abdullah
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemRkrishna Mishra
 
Password based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportPassword based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportChinaraja Baratam
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...manishpatel_79
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Rashmi
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerGaurav Verma
 
ANDROID BASED AUTOMATED SMART WHEELCHAIR
ANDROID BASED AUTOMATED SMART WHEELCHAIRANDROID BASED AUTOMATED SMART WHEELCHAIR
ANDROID BASED AUTOMATED SMART WHEELCHAIRshashank tiwari
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerUmar Shuaib
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051embdnew
 
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSORDUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSORSwetanshmani Shrivastava
 
Writing c code for the 8051
Writing c code for the 8051Writing c code for the 8051
Writing c code for the 8051Quản Minh Tú
 

Viewers also liked (20)

project report 8051,eembedded system,pcb designing,electronic voting machine
project report 8051,eembedded system,pcb designing,electronic voting machineproject report 8051,eembedded system,pcb designing,electronic voting machine
project report 8051,eembedded system,pcb designing,electronic voting machine
 
Gesture based vehicle movements control and alerting system .
Gesture based vehicle movements control and alerting system .Gesture based vehicle movements control and alerting system .
Gesture based vehicle movements control and alerting system .
 
Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded System
 
temperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollertemperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontroller
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
Thesis - Voice Control Home Automation
Thesis - Voice Control Home AutomationThesis - Voice Control Home Automation
Thesis - Voice Control Home Automation
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded System
 
Password based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportPassword based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final report
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Embedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontrollerEmbedded C programming based on 8051 microcontroller
Embedded C programming based on 8051 microcontroller
 
ANDROID BASED AUTOMATED SMART WHEELCHAIR
ANDROID BASED AUTOMATED SMART WHEELCHAIRANDROID BASED AUTOMATED SMART WHEELCHAIR
ANDROID BASED AUTOMATED SMART WHEELCHAIR
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
 
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSORDUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
 
Writing c code for the 8051
Writing c code for the 8051Writing c code for the 8051
Writing c code for the 8051
 

Similar to Industrial training report of embedded system and robotics

project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded systemram avtar
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTvasav2204
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering projectvasav2204
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 
Wireless fuel level sensor using rfid
Wireless fuel level sensor using rfidWireless fuel level sensor using rfid
Wireless fuel level sensor using rfidSriteja Rst
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolIJERA Editor
 
ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxaartis110
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptxnaveen088888
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Tawsif Rahman Chowdhury
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfidSaurabh Uniyal
 
IRJET- Design & Implementation of Black Box in Automobiles System
IRJET-  	  Design & Implementation of Black Box in Automobiles SystemIRJET-  	  Design & Implementation of Black Box in Automobiles System
IRJET- Design & Implementation of Black Box in Automobiles SystemIRJET Journal
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
Introduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfIntroduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfBereket Walle
 

Similar to Industrial training report of embedded system and robotics (20)

project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded system
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
embedded system
embedded systemembedded system
embedded system
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECT
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering project
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 
JamesEndl
JamesEndlJamesEndl
JamesEndl
 
Wireless fuel level sensor using rfid
Wireless fuel level sensor using rfidWireless fuel level sensor using rfid
Wireless fuel level sensor using rfid
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
 
ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptx
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
 
Final Presentation
Final PresentationFinal Presentation
Final Presentation
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
 
IRJET- Design & Implementation of Black Box in Automobiles System
IRJET-  	  Design & Implementation of Black Box in Automobiles SystemIRJET-  	  Design & Implementation of Black Box in Automobiles System
IRJET- Design & Implementation of Black Box in Automobiles System
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Introduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfIntroduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdf
 

Recently uploaded

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
 
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
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
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
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
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
 

Recently uploaded (20)

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
 
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
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
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...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
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...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
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
 

Industrial training report of embedded system and robotics

  • 1. EMBEDDED SYSTEM AND ROBOTICS A Industrial training report Submitted in Partial Fulfillment of the Requirement of the Degree of BACHELOR OF TECHNOLOGY in ELECTRONICS AND COMMUNICATION ENGINEERING by PALLAVI BHARTI (REG NO.20130549) Under the guidance of MR.ROHAN SINGH Training head DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING SIKKIM MANIPAL INSTITUTE OF TECHNOLOGY MAJITAR, EAST SIKKIM-737136, December 2016 1
  • 2. ACKNOWLEGEMENT I am truly thankful to all the faculties who imparted the lectures on various subjects/topics and took us to the plant in a guided study visit along with detailed explaining about the plant and machinery. An Electronics student mainly focuses on practical applications of concepts learned projects like this one provide us with an ideal opportunity to do the same .I acknowledge the valuable inputs provided by Mr. ROHAN SINGH. Last but not least, a big thanks to all my family members and friends, for timely cooperation and support extended to me all the way. CONTENTS 2
  • 3. 1.EMBEDDED SYSTEM 3 Si.No. Content 1. Overview of Embedded Systems 2. Introduction to Atmega16 microcontroller 3. Analog to Digital converter 4. Timers in Atmega16 5. 7 segment Interfacing 6. LCD Interfacing 7. DC Motor interfacing 8. IR Sensor Interfacing 9. LM35 Interfacing 10. Matrix keypad interfacing 11. DTMF interfacing 12 RGB LED interfacing 13 Relay interfacing 14 Touch screen interfacing 15 RF interfacing 16 Accelerometer interfacing
  • 4. INTRODUCTION Embedded system is a scaled down computer system which is designed toperform a specific task or operation. The whole system is embedded into an appliance. This reduces human effort to a great extent. A single chip contains both hardware and software. Some important things to note about embedded systems: 1. Once an embedded hardware is programmed for a certain task, it is used forever for the same task. Changing the firmware afterwards is not possible. 2. Such systems are limited in computational resources like memory, CPU processing speed, I/O facilities but are still capable of performing the task given to them very efficiently. 3. Embedded systems can also be having a reduced functionality version of operating system called RTOS (Real Time Operating System) for highly specialized applications. 4. Interacts with physical elements in our environment, viz. controlling and driving a motor, sensing temperature, etc. EMBEDDED SYSTEM IN DAILY LIFE Digital Clock Traffic Light DVD Player Smart Phones 2.MICROCONTROLLER 4
  • 5. A Microcontroller is a programmable digital processor with necessary peripherals. Both microcontrollers and microprocessors are complex sequential digital circuits meant to carry out job according to the program / instructions. ATMEGA16 MICROCONTROLLER:  We will be working on Atmega16 microcontroller, which is a 40-pin IC and belongs to the MegaAVR category of AVR family.  Some of the features of Atmega16 are:  16KB of Flash memory  1KB of SRAM  512 Bytes of EEPROM  Available in 40-Pin DIP  8- Channel 10-bit ADC  Two 8-bit Timers/Counters  One 16-bit Timer/Counter  4 PWM Channels  Serial USART  Digital to AnalogComparator PIN DIAGRAM 5
  • 6. I/O PORTS Input Output functions are set by Three Registers for each PORT. •DDRX ‐‐‐‐> Sets whether a pin is Input or Output of PORTX. •PORTX ‐‐‐> Sets the Output Value of PORTX. •PINX ‐‐‐‐‐> Reads the Value of PORTX. (Where X= A, B, C or D) DDRX (Data Direction Register) Now to make a pin act as I/O we set its corresponding bit in its DDR register. •To make Input set bit 0 •To make Output set bit 1 PORTX (PORTX Data Register) • If a pin is set to be output, then by setting bit 1 we make output High that is +5V and by setting bit 0, make output Low that is 0V. • If a pin is set to be input, then by setting its corresponding bit in PORTX register will make it asfollows, Set bit 0 ‐‐‐> Tri‐Stated Set bit 1 ‐‐‐> Pull Up. • PORTX ‐‐‐‐> to set value of PORTX with a byte. • PORTX.y ‐‐> to set value of yth pin of PORTX with a bit (works only with CVAVR). PINX (Data Read Register)This register is used to read the value of a PORT. If a pin is set as input then corresponding bit on PIN register is, •0 for Low Input that is V < 2.5V 6
  • 7. •1 for High Input that is V > 2.5V (Ideally, but actually 0.8 V ‐ 2.8 V is error zone!) •PINX ‐‐‐‐> Read complete value of PORTX as a byte. •PINX.y ‐‐> Read yth pin of PORTX as a bit (works only with CVAVR). SOFTWARE The software which support this hardware and can communicate with micro controller using this circuit is‐ •AVR Studio 4 3. Analog to Digital Converters  Microcontroller understands only digital language.  To convert the analog output from the sensors to digital we need ADC.  In AVR family of microcontroller we have inbuilt ADC on PORTA. Each pin in PORTA has an ADC circuit connected behind it. Thus we have 8 channels of ADC.  The resolution of ADC output is 10 bit i.e. the output from the ADC is any number between 0 to 1023 ADC registers:  The inbuilt ADC of AVR microcontroller have three register which are used for configuring the ADC. They are:  ADMUX: it is used for selecting the ADC pin to be used for connecting the Analog sensors. It is also used for setting the reference value of the ADC.  ADSCRA: it is used for controlling the ADC e.g. when should it start the conversion? Should it repeat the conversion? Should interrupt be generated after the conversion is complete? Etc.  ADCH & ADCL: these are used for storing the ADC output values. Both the registers are 8 bit wide and we require 10 bits for storing the ADC value. Thus the two registers are used. The way of storing the ADC value is configured using ADSCRA. 7
  • 8. ADMUX ADLAR:-This bit is setting the manner, the ADC result will be stored in ADC data register. ADLAR = 0 ADCH& ADCL ADCSR 8
  • 9. 4.Timers in ATMega16 • In Atmega16, we have three timers:TIMER0 TIMER1 and TIMER2 • Out of these, TIMER0 and TIMER2 are 8 bit timer, while TIMER1 is a 16 bit timer. • All the timers have three unique registers and two common registers. • TIMER1 has a special register, called ICR(Input Capture Register).It has two channels(channel A and channel B). • TIMER2 has a special register known as ASSR, which is used two generate PWM using asynchronous clock. Timer Registers • Each timer has three registers. They are:  TCCR(Timer Counter Control Register)  TCNT(Timer Counter),  OCR (Output Compare Register). • Thus, three registers for TIMER0 are TCCR0, TCNT0 and OCR0. • Similarly for TIMER1 and TIMER2, we have TCCR1, TCNT1, OCR1 and TCCR2, TCNT2 and OCR2. • The three timers have two common registers. They are:  TIMSK (Timer Interrupt Mask)  TIFR (Timer Interrupt Flag Register Register Function Description • TCCR (Timer Counter Control Register): It is used for configuring the timer i.e. modes and pre scale factor. • TCNT: It stores the present value of the timer. It is used for monitoring the status of the timer. After each incrementing in the timer value, this register compares its value with the OCR register value. • OCR(Output Compare Register): It is used for setting the required duty Cycle 9
  • 10. 5. Seven Segment Display Interfacing • A seven-segment display can be used to display the decimal numbers 0-9 and some alpha characters. • A Seven-Segment Display (SSD) is simply a figure eight grouping of LEDs {include a decimal point (DP)}. • Each Segment is labeled (a) to (g). • SSDs are available in two configurations • Common Cathode (all LED cathodes are connected) • Common Anode (all LED anodes are connected) Fig: Interfacing with atmega16 fig: 7Segment display 6. LCD INTERFACING • LCD’s are all around us so liquid crystal displays are very useful in these days. • It is a kind of display that is made up of a special matter state formed using liquid 10
  • 11. and crystal both , it’s a forth state of matter • The most popular one is 16x2 LCD module. It has 2 rows & 16 columns.The intelligent displays are two types:  Text Display  Graphics Display PIN DESCRIPTION Figure 4.1: pin configuration for 16 X 2 LCD • 8 data pins D7:D0 Bi-directional data/command pins. Alphanumeric characters are sent in ASCII format. • RS: Register Select RS = 0 -> Command Register is selected RS = 1 -> Data Register is selected • R/W: Read or Write 0 -> Write, 1 -> Read • E: Enable (Latch data) 11
  • 12. Used to latch the data present on the data pins. A high-to-low edge is needed to latch the data. • VEE: contrast control. • VDD & VSS: Power supply VDD= +5V VSS=GND 7. DC MOTOR INTERFACING • The simplest DC rotating machine consists of a single loop of wire rotating about a fixed axis. The magnetic field is supplied by the North and South poles of the magnet. • Rotor is the rotating part.Stator is the stationary part. • We can reverse the motor direction the simply by reversing the power supply connection of motor. It means motor is bipolar device. Necessary Medium to Operate • We are working on microcontroller and the maximum output current that it can provide is 20mA. • But our motor works on 1Amp current so to remove this problem we will have to connect motor driver IC L293D in between the microcontroller and motor. 12
  • 13. Pin Description Fig: L293D Fig: Interfacing with Atmega16 8. IR Sensor interfacing • There are two part of the sensors: 1. Emitter 2. Receiver • Emitterconverts the electrical current in the Infra-Red Radiation. • Receiver receive the IR radiation when the radiation reflect back after the collision from the obstacle and then this IR radiation is converted into electrical current. Operating Modes: Our IR sensor can work in two modes:  Analog Mode: - In this the output is continuously changes depending upon the reflections from the objects.  Digital Mode: - In this the output is constant either high or low depending upon reflections. How to use? 13
  • 14. • Digital Mode:-In this mode you can directly connect the sensor to any pin of the controller and can perform any task according to the condition you mentioned in program. • Analog Mode:-In this mode sensor will give analog value so you have to use ADC because microcontroller works on digital 9.LM35 INTERFACING • LM35 is a precision IC temperature sensor with its output proportional to the temperature (in o C). The sensor circuitry is sealed and therefore it is not subjected to oxidation and other processes. With LM35, temperature can be measured more accurately than with a thermistor. It also possess low self-heating and does not cause more than 0.1 o C temperature rise in still air. • The operating temperature range is from -55°C to 150°C. The output voltage varies by 10mV in response to every o C rise/fall in ambient temperature, i.e., its scale factor is 0.01V/o C. Pin Diagram 14 Digital clockDVD playerTraffic Light
  • 15. Output • Output of the temperature sensor is analog so we cannot measure it directly from the controller because it works on a digital logic so we have to initialize ADC of the controller. • Give the output of analog sensor on PORTA 10. Interfacing matrix keypad • The matrices are actually an interface technique. It can be used to interface inputs like the PC keyboard keys, but also to control multiple outputs like LEDs. According to this technique, the I/O are divided into two sections: the columns and the rows. • It is basically a two dimensional array. We are connected switched in a fashion as shown in figure. This is 4x4 keypad matrix which is having two four pin connector. One connector is connected with PORTC and another is from PORTA. As there are only four pins so we can connect these pins from lower or higher pins of the MCU PORTs 15 Pin No Function Name 1 Supply voltage; 5V (+35V to -2V) Vcc 2 Output voltage (+6V to -1V) Output 3 Ground (0V) Ground
  • 16. CONNECTION OF KEYPAD-  Connect connectors from PORTs.  Make one PORT as input and another as output (configuration of DDR).  Give ground to one connector’s pin using output configured PORT and read the corresponding pin of input configured PORT. 11. DTMF Interfacing • The invention of this is attributed to Western Electric and first used by the Bell System in commerce. • DTMF signals are the superposition of 2 sine waves with different frequencies. • It is a signaling Technology used for communicating between two far away devices. • It uses frequency of speech signals. 16
  • 17. • Only 12 tones are used by our mobile communication out of the 16 combination that are possible. • The DTMF is a popular signaling method between telephones and switching centers. DTMF Tone Generation • EXAMPLE:-Pressing the key 1 will result in a sound composed of both a 697 and a 1209 hertz (Hz) tone. Decoding DTMF • The CM-8870 is a full DTMF Receiver that integrates both band split filter and decoder functions into a single18-pin DIP or SOIC package. 17
  • 18. • If I am pressing a key let say 1, then it will give the combination of Frequencies 1209 & 697, and this will directly be given to our sound Converter IC, the output of that IC would be 0001(Q1, Q2, Q3, Q4), Following table shows the output for remaining keys. 12. RGB LED interfacing • It’s is similar to a normal LED but the difference is that it can emit every possible color. As its name suggest that it has three LED’s inside it of Red, Green and Blue color. • It has Four LEGS, in which one is common and remaining three are for R, G and B color. 13. RELAY INTERFACING 18
  • 19. • A relay is a simple electromechanical switch made up of an electromagnet and a set of contacts. • Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits), or where several circuits must be controlled by one signal • Provide a sufficient amount of current to this relay, an extra circuit is also require because microcontroller is not capable of providing such current, that’s why ULN2803 IC is used for this purpose. 14. Touch screen interfacing • A Touch Screen is an electronic visual display that the user can control through simple or multi-touch gestures by touching the screen with one or more fingers. 19
  • 20. Some Touch Screen can also detect objects such as a stylus or ordinary or specially coated gloves Types of Touch Screen: • Resistive Touch Screen • Capacitive Touch Screen • Infrared Touch Screen • Surface Acoustic Wave • Optical Imaging Resistive Touch Screen • Resistive touchscreen is a relatively new technology which utilizes two flexible sheets that are separated by air gaps and coated by resistive material • Pressure applied to the surface of the display by a finger or stylus causes the layers to touch, which completes electrical circuits and tells the device where the user is touching. Detecting a Touch • To know if the coordinate readings are valid, there must be a way to detect whether the screen is being touched or not. This can be done by applying a positive voltage (VCC) to Y+ through a pull up resistor and applying ground to X–. • When there is no touch, Y+ is pulled up to the positive voltage. When there is a touch, Y+ is pulled down to ground as shown in Figure1. This voltage-level change can be used to generate a pin-change interrupt. 20
  • 21. How it works • A uniform voltage gradient is applied to one sheet.whenever the second sheet touches the other sheet, the second sheet measures the voltage as a distance along the first sheet. This combinaton of voltage and distance provides X cordinate. • after the X cordinate is located, entire process repeats itself by applying uniform voltage gradient to the second sheet inorder to find the Y cordinate.this entire process happens in a matter of milliseconds,oblivious to human eye. • As it’s also a kind of sensing device so, will give the output in analog form. Again we need to convert this form into digital form. That’s why we need a ADC. 15.RF Interfacing • An RF Module is a (usually) small electronic circuit used to transmit, receive, or transceiver radio waves on one of a number of carrier frequencies. • To secure the data at both the end Encoding and decoding of data is required. 21
  • 22. • We will use RF434 module of wireless communication. RF stands for Radio frequency. And 434 means this module operates on 434MHz of frequency. • Since it would be serial communication, so we ll be needing an encoder &‟ decoder IC for communication, because at transmitter end we are doing parallel communication with our kit but to transfer it at a long distance we have to send serially, so we will use an encoder IC HT12E at the transmitter side, and the same couple IC HT12D will be used at the receiver side to convert it back parallel. REFERENCES 22
  • 23. • www.google.com • www.wikipedia.com Google images: • http://www.embeddedsystem.com/ • http://robotics.nasa.gov/ • www.cmosexod.com • www.best-microcontrollerprojects.com 23