SlideShare a Scribd company logo
1 of 56
Embedded Systems & Robotics Basics




Submitted to :                Submitted by:
Mr. Ritesh Saraswat (guide)   Sachin kr. Jain
Ms. Seema Sharma (co-guide)   Subhash choudhary
                              Vivek kr. gupta
Embedded Systems
A embedded system is a microprocessor
or microcontroller based electronic device
used for specific task.
      It is designed to perform operations
which minimize (or even completely
avoid) need of human control.
Types of embedded systems

1. Real time embedded system
    (a) Soft real time embedded system
    (b) Hard real time embedded system
2. Non real time embedded system
Applications of embedded system
•   Pen drives
•   Hard disk
•   Mouse
•   Calculators, electronics welding machine
•   Cell phones
•   Security system
•   Alarm system
•   Digital camera
•   Environment monitoring systems
Microcontroller
     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. Sometimes
analog input/output interface makes a part of microcontroller
circuit of mixed mode (both analog and digital nature).


Types:
 (a) RISC microcontroller
 (b) CISC microcontroller
     we have used ATmega16 in training
Features of Modern Microcontrollers
•   Built‐in Monitor Program
•   Built‐in Program Memory
•   Interrupts
•   Analog I/O
•   Serial I/O
•   Facility to Interface External Memory
•   Timers
Pin diagram of ATmega16
Features of ATMEGA16

•   It is a 40 pin Ic
•   Advanced RISC Architecture
•   16K Bytes of In‐System Self‐Programmable Flash
•    512 Bytes EEPROM
•    1K Byte Internal SRAM
•    32 Programmable I/O Lines
•    In‐System Programming by On‐chip Boot Program
Programming
Programmer basically consists of two parts:
  • Software (to open .hex file on your computer)
  • Hardware (to connect microcontroller

   Hardware depends on the communication port you are using on
the computer (Serial, Parallel or USB).
There are 2 good software which support this hardware and can
communicate with micro controller using this circuit. They are,
• Pony Prog
• At‐Prog
Serial Programmer's Circuit
         (Hardware)
At-Prog(software)
USB Programmer
Code Vision AVR (CVAVR)

   Atmel Microcontrollers are very famous as they are
    very easy to use. First of all we need an easy IDE
    (Integrated      Development    Environment)    for
    developing code. We used CVAVR (Code Vision
    AVR)
   It has limitation of code size.
   It works on computers with Windows platform that is
    Windows XP & Vista.
Code Vision AVR (CVAVR)
Code Vision AVR (CVAVR)
Code Vision AVR (CVAVR)
Code Vision AVR (CVAVR)
Code Vision AVR (CVAVR)
I/O functions Register
Input Output functions are set by Three Registers for
each PORT.

DDRX ‐‐‐‐> Sets whether a pin is Input or Output of
            Port X.

PORTX ‐‐‐> Sets the Output Value of Port X.

PINX ‐‐‐‐‐> Reads the Value of Port X.
LCD & LED
LCD vs. LED
• Since Timer works independently of CPU it can be
  used to measure time accurately.
• As we know a timer is an 8 bit register that keeps on
  increasing its value, so one of the basic conditions is
  the situation when timer register OVERFLOWS i.e. it
  has counted up to its maximum value (255 for 8 BIT
  timers) and rolled back to 0. In this situation timer
  can issue an interrupt and we must write an Interrupt
  Service Routine (ISR) to handle the event.
Timers in Atmega16

  Atmega 16 has following timers:-

 Timer 0 - It is an 8-bit timer and for this pin no. 4
              (PB3) is used.
 Timer 1 - It is 16 –bit timer, It has two types
                      OC1A(8-bit) at pin no 19 and
                      OC1B(8-bit) at pin no 18.
 Timer 2 - It is also an 8-bit timer and pin no 21
             (OC2) is used for this.
Modes of Timers

There are four modes of timers, are as:
 Normal mode
 CTC mode
 Fast PWM mode
 Phase correct PWM mode
Normal Mode
CTC Mode
Fast PWM Mode
Phase Correct PWM Mode
SETTING UP TIMERS IN CVAVR
SETTING UP TIMERS IN CVAVR
SETTING UP TIMERS IN CVAVR
SETTING UP TIMERS IN CVAVR
SPI: Serial Peripheral Interface

• Serial Peripheral Interface Bus or SPI bus is a
  synchronous serial data link used to communicate
  between two or more microcontroller and devices
  supporting SPI mode data transfer.
• In this mode, devices communicate in master/slave
  mode where the master device initiates the dataframe.
  Multiple slave devices are allowed with individual
  slave select (chip select) lines.
SPI: Serial Peripheral Interface
• SPI communication protocol consists of following
  pins:-
   – MOSI : Master Out Slave In (Tx for Master and
     Rx           for Slave)
   – MISO : Master In Slave Out (Rx for Master Tx for
           Slave)
   – SCK : Serial Clock (Clock line)
   – SS      : Slave Select (To select Slave chip) (if
                  given 0 device acts as slave)
SPI: Serial Peripheral Interface




MOSI:-Channel where the master sends the
data to the slave and the slave receives it.

 MISO:-Channel where the slave sends the data
 and the master receives it.
SPI: Serial Peripheral Interface




SCK:-Clock is send by the master.

SS:-Slave select when the master wants to
send data to a particular slave it makes its SS
pin low, sends the data and then again makes it
high.
UART

In the UART protocol, the transmitter and the receiver
do not share a clock signal. That is, a clock signal does
not emanate from one UART transmitter to the other
UART receiver. Due to this reason the protocol is said
to be asynchronous
Serial Port of Computer
• Serial Port is used for communication between the uC
  and the computer.
• A serial port has 9 pins.
• For laptop, most probably there wont be a serial port.
  In such case, we use a USB to serial Converter.
• For transmitting one byte of data, the serial port will
  transmit 8 bits as one bit at a time.
Serial Port of Computer

• Pin 3 is the Transmit (TX) pin, pin 2 is the Receive
  (RX) pin and pin 5 is Ground pin.
• Other pins are used for controlling data
  communication in case of a modem.
• For the purpose of data transmission, only the pins 3
  and 5 are required.
Motors
Device used to convert electrical energy into mechanical
energy is called a motor.
Some Motors used in embedded systems and robotics
are described as below:

i.   Stepper motors


ii. Servo motors


iii. Geared DC Motors
Motors

We used Gear motors during Training.

•   Gear motors are motors with an integrated gearbox.


•   Geared motors have a variety of applications. Some
    of its uses are as in wheelchairs, stair wheels etc.
H- Bridge
Motor Driver ICs: Pin Diagram
Sensors
A sensor is a device that measures a physical quantity
and converts it into a signal which can be read by an
observer or by an instrument.

We can use different types of sensor like,

1. Temperature sensor:
   We use LM35 IC as
   temperature sensor.
Sensors
2. Light Dependent Resistor (LDR):
   LDR is basically a resistor whose resistance varies
   with intensity of light. More intensity less its
   resistance (i.e, in black it offers high resistance and
   in white it offers less resistance).
Sensors
TSOP:
TSOP 1738 Sensor is a digital IR Sensor; It is logic 1
(+5V) when IR below a threshold is falling on it and
logic 0 (0V) when it receives IR above threshold.

It does not respond to any stray IR,
 it only responds to IR falling on it
 at a pulse rate of 38 KHz.
Sensors
IR- Sensor:
Sensors
IR-Sensor:
In this we use three main components IR-LED, Photo
diode & LM358 IC.
From any “non black body” obstacle IR reflects and
falls on photo diode.
Hence Photo diode become forward bias, and it turn
on the IC LM358 that gives the output.
Embedded systems and robotics by scmandota

More Related Content

What's hot

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
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVRDaksh Raj Chopra
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsPallavi Bharti
 
Embedded system by owais
Embedded system by owaisEmbedded system by owais
Embedded system by owaisOwais Mushtaq
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded systempradeep rana
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerMohamed Ali
 
Applications of microcontroller
Applications of microcontrollerApplications of microcontroller
Applications of microcontrollerbabak danyal
 
What is a Microcontroller ?
What is a Microcontroller ?What is a Microcontroller ?
What is a Microcontroller ?ShrutiVij4
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Mahmoud Sadat
 
Embedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsEmbedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsVibrant Technologies & Computers
 
AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR MicrocontrollerÖzcan Acar
 

What's hot (20)

embedded system
embedded systemembedded system
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
 
Embedded Systems
Embedded SystemsEmbedded Systems
Embedded Systems
 
iot1&2.pdf
iot1&2.pdfiot1&2.pdf
iot1&2.pdf
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Training report on embedded sys_AVR
Training report on embedded sys_AVRTraining report on embedded sys_AVR
Training report on embedded sys_AVR
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
Embedded system demo
Embedded system demoEmbedded system demo
Embedded system demo
 
Embedded system by owais
Embedded system by owaisEmbedded system by owais
Embedded system by owais
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded system
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Applications of microcontroller
Applications of microcontrollerApplications of microcontroller
Applications of microcontroller
 
embedded system bye Sj
embedded system bye Sjembedded system bye Sj
embedded system bye Sj
 
What is a Microcontroller ?
What is a Microcontroller ?What is a Microcontroller ?
What is a Microcontroller ?
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Embedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsEmbedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripherals
 
Introduction in microcontroller
Introduction in microcontrollerIntroduction in microcontroller
Introduction in microcontroller
 
AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR Microcontroller
 

Similar to Embedded systems and robotics by scmandota

Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
One-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfOne-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfshamtekawambwa1
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
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
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptxSKUP1
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamshiva kumar cheruku
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamshiva kumar cheruku
 
Hp embedd system and basic obotics
Hp embedd system and basic oboticsHp embedd system and basic obotics
Hp embedd system and basic oboticsPallavi Bharti
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advancedImran Sheikh
 
Hp embedd and_robotics
Hp embedd and_roboticsHp embedd and_robotics
Hp embedd and_roboticsPallavi Bharti
 
ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxaartis110
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home AutomationApoorv Gupta
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptxaravind Guru
 

Similar to Embedded systems and robotics by scmandota (20)

Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Embedded systemsc
Embedded systemscEmbedded systemsc
Embedded systemsc
 
Assembler4
Assembler4Assembler4
Assembler4
 
One-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfOne-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdf
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
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
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptx
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue team
 
Zigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue teamZigbee based metal detecting robot to assist bomb detection and rescue team
Zigbee based metal detecting robot to assist bomb detection and rescue team
 
Serial Busses.pptx
Serial Busses.pptxSerial Busses.pptx
Serial Busses.pptx
 
Hp embedd system and basic obotics
Hp embedd system and basic oboticsHp embedd system and basic obotics
Hp embedd system and basic obotics
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 
Hp embedd and_robotics
Hp embedd and_roboticsHp embedd and_robotics
Hp embedd and_robotics
 
Lab3
Lab3Lab3
Lab3
 
ATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptxATmegaMicrocontrollerArchitecturenotes.pptx
ATmegaMicrocontrollerArchitecturenotes.pptx
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home Automation
 
Arduino_Beginner.pptx
Arduino_Beginner.pptxArduino_Beginner.pptx
Arduino_Beginner.pptx
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 

Embedded systems and robotics by scmandota

  • 1. Embedded Systems & Robotics Basics Submitted to : Submitted by: Mr. Ritesh Saraswat (guide) Sachin kr. Jain Ms. Seema Sharma (co-guide) Subhash choudhary Vivek kr. gupta
  • 2. Embedded Systems A embedded system is a microprocessor or microcontroller based electronic device used for specific task. It is designed to perform operations which minimize (or even completely avoid) need of human control.
  • 3.
  • 4. Types of embedded systems 1. Real time embedded system (a) Soft real time embedded system (b) Hard real time embedded system 2. Non real time embedded system
  • 5. Applications of embedded system • Pen drives • Hard disk • Mouse • Calculators, electronics welding machine • Cell phones • Security system • Alarm system • Digital camera • Environment monitoring systems
  • 6. Microcontroller 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. Sometimes analog input/output interface makes a part of microcontroller circuit of mixed mode (both analog and digital nature). Types: (a) RISC microcontroller (b) CISC microcontroller we have used ATmega16 in training
  • 7. Features of Modern Microcontrollers • Built‐in Monitor Program • Built‐in Program Memory • Interrupts • Analog I/O • Serial I/O • Facility to Interface External Memory • Timers
  • 8. Pin diagram of ATmega16
  • 9. Features of ATMEGA16 • It is a 40 pin Ic • Advanced RISC Architecture • 16K Bytes of In‐System Self‐Programmable Flash • 512 Bytes EEPROM • 1K Byte Internal SRAM • 32 Programmable I/O Lines • In‐System Programming by On‐chip Boot Program
  • 10. Programming Programmer basically consists of two parts: • Software (to open .hex file on your computer) • Hardware (to connect microcontroller Hardware depends on the communication port you are using on the computer (Serial, Parallel or USB). There are 2 good software which support this hardware and can communicate with micro controller using this circuit. They are, • Pony Prog • At‐Prog
  • 14. Code Vision AVR (CVAVR)  Atmel Microcontrollers are very famous as they are very easy to use. First of all we need an easy IDE (Integrated Development Environment) for developing code. We used CVAVR (Code Vision AVR)  It has limitation of code size.  It works on computers with Windows platform that is Windows XP & Vista.
  • 15.
  • 16. Code Vision AVR (CVAVR)
  • 17. Code Vision AVR (CVAVR)
  • 18.
  • 19.
  • 20.
  • 21. Code Vision AVR (CVAVR)
  • 22. Code Vision AVR (CVAVR)
  • 23. Code Vision AVR (CVAVR)
  • 24.
  • 25. I/O functions Register Input Output functions are set by Three Registers for each PORT. DDRX ‐‐‐‐> Sets whether a pin is Input or Output of Port X. PORTX ‐‐‐> Sets the Output Value of Port X. PINX ‐‐‐‐‐> Reads the Value of Port X.
  • 28. • Since Timer works independently of CPU it can be used to measure time accurately. • As we know a timer is an 8 bit register that keeps on increasing its value, so one of the basic conditions is the situation when timer register OVERFLOWS i.e. it has counted up to its maximum value (255 for 8 BIT timers) and rolled back to 0. In this situation timer can issue an interrupt and we must write an Interrupt Service Routine (ISR) to handle the event.
  • 29. Timers in Atmega16 Atmega 16 has following timers:-  Timer 0 - It is an 8-bit timer and for this pin no. 4 (PB3) is used.  Timer 1 - It is 16 –bit timer, It has two types  OC1A(8-bit) at pin no 19 and  OC1B(8-bit) at pin no 18.  Timer 2 - It is also an 8-bit timer and pin no 21 (OC2) is used for this.
  • 30. Modes of Timers There are four modes of timers, are as:  Normal mode  CTC mode  Fast PWM mode  Phase correct PWM mode
  • 35. SETTING UP TIMERS IN CVAVR
  • 36. SETTING UP TIMERS IN CVAVR
  • 37. SETTING UP TIMERS IN CVAVR
  • 38. SETTING UP TIMERS IN CVAVR
  • 39. SPI: Serial Peripheral Interface • Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link used to communicate between two or more microcontroller and devices supporting SPI mode data transfer. • In this mode, devices communicate in master/slave mode where the master device initiates the dataframe. Multiple slave devices are allowed with individual slave select (chip select) lines.
  • 40. SPI: Serial Peripheral Interface • SPI communication protocol consists of following pins:- – MOSI : Master Out Slave In (Tx for Master and Rx for Slave) – MISO : Master In Slave Out (Rx for Master Tx for Slave) – SCK : Serial Clock (Clock line) – SS : Slave Select (To select Slave chip) (if given 0 device acts as slave)
  • 41. SPI: Serial Peripheral Interface MOSI:-Channel where the master sends the data to the slave and the slave receives it. MISO:-Channel where the slave sends the data and the master receives it.
  • 42. SPI: Serial Peripheral Interface SCK:-Clock is send by the master. SS:-Slave select when the master wants to send data to a particular slave it makes its SS pin low, sends the data and then again makes it high.
  • 43. UART In the UART protocol, the transmitter and the receiver do not share a clock signal. That is, a clock signal does not emanate from one UART transmitter to the other UART receiver. Due to this reason the protocol is said to be asynchronous
  • 44. Serial Port of Computer • Serial Port is used for communication between the uC and the computer. • A serial port has 9 pins. • For laptop, most probably there wont be a serial port. In such case, we use a USB to serial Converter. • For transmitting one byte of data, the serial port will transmit 8 bits as one bit at a time.
  • 45.
  • 46. Serial Port of Computer • Pin 3 is the Transmit (TX) pin, pin 2 is the Receive (RX) pin and pin 5 is Ground pin. • Other pins are used for controlling data communication in case of a modem. • For the purpose of data transmission, only the pins 3 and 5 are required.
  • 47. Motors Device used to convert electrical energy into mechanical energy is called a motor. Some Motors used in embedded systems and robotics are described as below: i. Stepper motors ii. Servo motors iii. Geared DC Motors
  • 48. Motors We used Gear motors during Training. • Gear motors are motors with an integrated gearbox. • Geared motors have a variety of applications. Some of its uses are as in wheelchairs, stair wheels etc.
  • 50. Motor Driver ICs: Pin Diagram
  • 51. Sensors A sensor is a device that measures a physical quantity and converts it into a signal which can be read by an observer or by an instrument. We can use different types of sensor like, 1. Temperature sensor: We use LM35 IC as temperature sensor.
  • 52. Sensors 2. Light Dependent Resistor (LDR): LDR is basically a resistor whose resistance varies with intensity of light. More intensity less its resistance (i.e, in black it offers high resistance and in white it offers less resistance).
  • 53. Sensors TSOP: TSOP 1738 Sensor is a digital IR Sensor; It is logic 1 (+5V) when IR below a threshold is falling on it and logic 0 (0V) when it receives IR above threshold. It does not respond to any stray IR, it only responds to IR falling on it at a pulse rate of 38 KHz.
  • 55. Sensors IR-Sensor: In this we use three main components IR-LED, Photo diode & LM358 IC. From any “non black body” obstacle IR reflects and falls on photo diode. Hence Photo diode become forward bias, and it turn on the IC LM358 that gives the output.

Editor's Notes

  1. Pin diagram of ATmega16