SlideShare une entreprise Scribd logo
1  sur  28
A
Seminar
on
Embedded Systems
in
Robotics
(An initiative of Electronics Hobby Club)

by
Akash Deep Singh
B.E 7th Semester (Power Electronics & Instrumentation)
Jorhat Institute of Science & Technology
“A system is an arrangement in
which all its units assemble and
work together according to the
plan or program.”
It is a time display SYSTEM
Parts: Hardware, Needles, Battery, Dial,
Chassis and Strap

Rules
1.All needles move clockwise only
2.A thin needle rotates every second
3.A long needle rotates every minute
4.A short needle rotates every hour
5.All needles return to the original position after 12 hours
It is an automatic clothes washing SYSTEM
Parts: Status display panel, Switches & Dials,
Motor, Power supply & control unit, Inner
water level sensor and solenoid valve.
Rules
1.Wash by spinning
2.Rinse
3.Drying
4.Wash over by blinking
5.Each step display the process stage
6.In case interruption, execute only the remaining
It is a computing based system.
Or
“A computer inside a product”
Parts: Input Unit, Microcontroller(or
Microprocessors), Application
Software, Additional Mechanical Parts,
Output Unit
Rule:
1. Runs on the specified application
software
2.Has specific requirements and
perform predefined task.
An Embedded System is one that has
computer hardware with software embedded
in it as one of its important components.

SOFTWARE PROGRAM
#include <16f876a.h>
#use delay (clock=20000000)
#byte PORTB=6
main()
{
set_tris_b(0);
portb=255;
//decimal
delay_ms(1000);
portb=0x55;
//hexadecimal
delay_ms(1000);
portb=0b10101010; //binary
delay_ms(500);
}
And many more………….
Why do we require such systems???

Real-time operation
size
cost
time
reliability
safety
energy
security
CENTRE OF STUDY???
PRODUCT : ROBOT
1. Sensors: In order to sense the environment
2. Actuators : For movement of robots and its parts
3. Control: Controller/Processor as a brain of the robot
4. Intelligence: User written command to perform desired set
of action
5. Power: A necessity for making a system work
6. Communication: Robot can talk to another robot/PC
In human analogy: “SENSE ORGANS”


What is a sensor?

In common parlance,
“Anything that can sense a change”

In electronics,
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.
1. IR Sensors

IR sensor works on the principle of
2. Position encoders emitting IR rays and receiving the
reflected ray by a receiver (Photo
3. Ultrasonic Sensors
Diode).
4. Accelerometers
IR source (LED) is used in forward
5. Gyroscope
bias.
IR
6. Infrared TSOP Receiver Receiver (Photodiode) is used in
reverse bias.
7. Motion Sensor
8. GPS
In human analogy: “Response”

Actuators are the final control elements (F.C.E) used in all kinds
of control systems.

D.C Motor
D.C Geared Motor
Servo Motor
Stepper Motor
The actual manifestation of an embedded system…
Microcontrollers manufacturers:
INTEL
8031,8032,8051,8052,8751,8752

PIC

AVR Architecture
8-bit PIC16, PIC18,
16-bit DSPIC33 / PIC24,
PIC16C7x
 Architecture developed by Brogen & Wollan

 American based industry est.. In the year 1984
 AVR stands for Alf & Vegard’s RISC processor
Motorola
 Later developed by ATMEL in the year 1996
 MC68HC11
Focus on embedded systems build around
microcontrollers

Atmel  ATMEL stands for “Advanced Technology for Memory &
Logic
AtMEGA 8,16,32,64,128,256 etc
AT90S2333
PROGRAMMING THE MICROCONTROLLER FOR SPECIFIED TASK
1. What is AVR Atmega 8 microcontroller
1. What are ports?

2. Basic idea of C programming
Junctions where peripherals
are Use of embedded C to create a small
3. connected.
This program can be
peripherals
a. Input units
b. Output units

4. Run the program on the bot.

2. Ports in Atmega8
 Atmega8 is a 28 pin micro.
 23 pins can be used as both
input and output pins.
 PINS are grouped together
as PORTS
 Atmega8

has Two 8-bit Input/Output Ports

PORTx;

‘x’ is subscript and could be either

of B,D
 Atmega8 has One 6-bit Input/Output port

PORTC
 All ports can be configured individually as input/ouput
 How to access the port?
Each port has three registers associated with it
1. DDRx
2. PORTx
3. PINx
DDRx Register
1. DDR stands for “Data Direction Register”
2. Purpose: To set PORT Pins as input or output
DDRx=0; // PORTx is defined as INPUT
DDRx=1; // PORTx is defined as OUTPUT
Example: Let us make PORTB upper nibble as output and lower nibble as input

Hex conversion of first nibble: F
Hex conversion of second nibble: 0
PINx Register:
 The purpose of this register is to read the value from the input device connected to the
PORT.
Or
To read data present on PORTx
Example: Read data from PortC (PLEASE NOTE: PORTC HAS BEEN DEFINED AS INPUT PORT)

PINC=0xF0;
Or we can also create a variable
such that
x=PINC
x=0xF0
PORTx Register
 This register works in two different ways depending on the way in which the port is defined
Case1: When portx is defined Output
The purpose will be to output data present on the Portx pin to the output device
Example: Here we define PortB as output by assigning
DDRB=0xFF

Let the data present on the PortB be 0xFF
Therefore we write

Case2: When portx is defined as input , it is used to activate or deactivate
the pull-up resistor
AVR Programming Tools
 Software Required

ATMEL STUDIO 6
1. Integrated Development Environment (IDE)

2. Supports Developing and Debugging of AVR and ARM based
microcontroller application

WE WILL WRITE THE C PROGRAM AND COMPILE IT IN ATMEL
STUDIO TO GENERATE HEX FILE (MACHINE LANGUAGE
UNDERSTANDABLE BY THE MICROCONTROLLER)
Hardware Required

HEX FILE CAN BE LOADED INTO THE MICROCONTROLLER USING
BOOTLOADER or AVR PROGRAMMERS
Embedded systems and programming (including my work at Eyantra (IIT Bombay))
Embedded systems and programming (including my work at Eyantra (IIT Bombay))
Embedded systems and programming (including my work at Eyantra (IIT Bombay))
Embedded systems and programming (including my work at Eyantra (IIT Bombay))

Contenu connexe

Tendances

electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfidSaurabh Uniyal
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp portTeju Kotti
 
itft-Microcontriller 8051
itft-Microcontriller 8051itft-Microcontriller 8051
itft-Microcontriller 8051Shifali Sharma
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded systemram avtar
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandotascmandota
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
Embedded systems and its ports
Embedded systems and its portsEmbedded systems and its ports
Embedded systems and its portsnitin kumar
 
Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollersDr.YNM
 
An Introduction to Robotics and Embedded System
An Introduction to Robotics and Embedded SystemAn Introduction to Robotics and Embedded System
An Introduction to Robotics and Embedded SystemPeeyush Sahu CAPM®
 
Pin diagram 8085 microprocessor(For College Seminars)
Pin diagram 8085 microprocessor(For College Seminars)Pin diagram 8085 microprocessor(For College Seminars)
Pin diagram 8085 microprocessor(For College Seminars)Naman Joshi
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEr. Raju Bhardwaj
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONsoma saikiran
 
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded SystemFPGA Design and Implementation of Electrocardiogram Biomedical Embedded System
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded Systemns risman
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijayVijay Kumar
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Rashmi
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description Vijay Kumar
 

Tendances (20)

electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
 
itft-Microcontriller 8051
itft-Microcontriller 8051itft-Microcontriller 8051
itft-Microcontriller 8051
 
Pin 8085
Pin 8085Pin 8085
Pin 8085
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded system
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Interrupts
InterruptsInterrupts
Interrupts
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Embedded systems and its ports
Embedded systems and its portsEmbedded systems and its ports
Embedded systems and its ports
 
Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollers
 
An Introduction to Robotics and Embedded System
An Introduction to Robotics and Embedded SystemAn Introduction to Robotics and Embedded System
An Introduction to Robotics and Embedded System
 
Pin diagram 8085 microprocessor(For College Seminars)
Pin diagram 8085 microprocessor(For College Seminars)Pin diagram 8085 microprocessor(For College Seminars)
Pin diagram 8085 microprocessor(For College Seminars)
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower Bot
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
 
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded SystemFPGA Design and Implementation of Electrocardiogram Biomedical Embedded System
FPGA Design and Implementation of Electrocardiogram Biomedical Embedded System
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
 

En vedette

Embedded system and development
Embedded system and developmentEmbedded system and development
Embedded system and developmentRajani Bhandari
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systemsApurva Zope
 
Lectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionLectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionrama52
 

En vedette (8)

Linkers in compiler
Linkers in compilerLinkers in compiler
Linkers in compiler
 
Embedded system and development
Embedded system and developmentEmbedded system and development
Embedded system and development
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Linkers
LinkersLinkers
Linkers
 
Lectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisitionLectute instrumentation and process control data acquisition
Lectute instrumentation and process control data acquisition
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 

Similaire à Embedded systems and programming (including my work at Eyantra (IIT Bombay))

ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYEldhose George
 
Introduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdfIntroduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdfAkashBhagat32
 
Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharShivnaresh Likhar
 
Introduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfIntroduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfBereket Walle
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayVijay Kumar
 
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
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorAnuja Gunale
 
Navigation of Robot Vehicle using RF with Landmine Detection
Navigation of Robot Vehicle using RF with Landmine DetectionNavigation of Robot Vehicle using RF with Landmine Detection
Navigation of Robot Vehicle using RF with Landmine DetectionVeena Rani
 
robotics and its components
robotics and its componentsrobotics and its components
robotics and its componentsAmandeep Kaur
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Shiv smart door ppt
Shiv smart door pptShiv smart door ppt
Shiv smart door pptMahesh Patil
 
Microcontroller based speedo meter cum odometer
Microcontroller based speedo meter cum odometerMicrocontroller based speedo meter cum odometer
Microcontroller based speedo meter cum odometerNexus
 
Introducttion to robotics and microcontrollers
Introducttion to robotics and microcontrollersIntroducttion to robotics and microcontrollers
Introducttion to robotics and microcontrollersSandeep Kamath
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor withijcseit
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitIOSR Journals
 

Similaire à Embedded systems and programming (including my work at Eyantra (IIT Bombay)) (20)

ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
 
Introduction to Arduino & Robotics
Introduction to Arduino & Robotics Introduction to Arduino & Robotics
Introduction to Arduino & Robotics
 
Introduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdfIntroduction to EMBEDDED SYSTEM.pdf
Introduction to EMBEDDED SYSTEM.pdf
 
Smart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likharSmart door project ppt shivnaresh likhar
Smart door project ppt shivnaresh likhar
 
Introduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdfIntroduction_to_Mechatronics_Chapter4.pdf
Introduction_to_Mechatronics_Chapter4.pdf
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijay
 
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
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Navigation of Robot Vehicle using RF with Landmine Detection
Navigation of Robot Vehicle using RF with Landmine DetectionNavigation of Robot Vehicle using RF with Landmine Detection
Navigation of Robot Vehicle using RF with Landmine Detection
 
robotics and its components
robotics and its componentsrobotics and its components
robotics and its components
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Shiv smart door ppt
Shiv smart door pptShiv smart door ppt
Shiv smart door ppt
 
Microcontroller based speedo meter cum odometer
Microcontroller based speedo meter cum odometerMicrocontroller based speedo meter cum odometer
Microcontroller based speedo meter cum odometer
 
New Microsoft Office Word Document
New Microsoft Office Word DocumentNew Microsoft Office Word Document
New Microsoft Office Word Document
 
Introducttion to robotics and microcontrollers
Introducttion to robotics and microcontrollersIntroducttion to robotics and microcontrollers
Introducttion to robotics and microcontrollers
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor with
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal Unit
 
Presentation
PresentationPresentation
Presentation
 

Dernier

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Dernier (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Embedded systems and programming (including my work at Eyantra (IIT Bombay))

  • 1. A Seminar on Embedded Systems in Robotics (An initiative of Electronics Hobby Club) by Akash Deep Singh B.E 7th Semester (Power Electronics & Instrumentation) Jorhat Institute of Science & Technology
  • 2. “A system is an arrangement in which all its units assemble and work together according to the plan or program.”
  • 3. It is a time display SYSTEM Parts: Hardware, Needles, Battery, Dial, Chassis and Strap Rules 1.All needles move clockwise only 2.A thin needle rotates every second 3.A long needle rotates every minute 4.A short needle rotates every hour 5.All needles return to the original position after 12 hours
  • 4. It is an automatic clothes washing SYSTEM Parts: Status display panel, Switches & Dials, Motor, Power supply & control unit, Inner water level sensor and solenoid valve. Rules 1.Wash by spinning 2.Rinse 3.Drying 4.Wash over by blinking 5.Each step display the process stage 6.In case interruption, execute only the remaining
  • 5. It is a computing based system. Or “A computer inside a product” Parts: Input Unit, Microcontroller(or Microprocessors), Application Software, Additional Mechanical Parts, Output Unit Rule: 1. Runs on the specified application software 2.Has specific requirements and perform predefined task.
  • 6. An Embedded System is one that has computer hardware with software embedded in it as one of its important components. SOFTWARE PROGRAM #include <16f876a.h> #use delay (clock=20000000) #byte PORTB=6 main() { set_tris_b(0); portb=255; //decimal delay_ms(1000); portb=0x55; //hexadecimal delay_ms(1000); portb=0b10101010; //binary delay_ms(500); }
  • 8. Why do we require such systems??? Real-time operation size cost time reliability safety energy security
  • 10. PRODUCT : ROBOT 1. Sensors: In order to sense the environment 2. Actuators : For movement of robots and its parts 3. Control: Controller/Processor as a brain of the robot 4. Intelligence: User written command to perform desired set of action 5. Power: A necessity for making a system work 6. Communication: Robot can talk to another robot/PC
  • 11. In human analogy: “SENSE ORGANS”  What is a sensor? In common parlance, “Anything that can sense a change” In electronics, 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.
  • 12. 1. IR Sensors IR sensor works on the principle of 2. Position encoders emitting IR rays and receiving the reflected ray by a receiver (Photo 3. Ultrasonic Sensors Diode). 4. Accelerometers IR source (LED) is used in forward 5. Gyroscope bias. IR 6. Infrared TSOP Receiver Receiver (Photodiode) is used in reverse bias. 7. Motion Sensor 8. GPS
  • 13. In human analogy: “Response” Actuators are the final control elements (F.C.E) used in all kinds of control systems. D.C Motor D.C Geared Motor Servo Motor Stepper Motor
  • 14. The actual manifestation of an embedded system…
  • 15. Microcontrollers manufacturers: INTEL 8031,8032,8051,8052,8751,8752 PIC AVR Architecture 8-bit PIC16, PIC18, 16-bit DSPIC33 / PIC24, PIC16C7x  Architecture developed by Brogen & Wollan  American based industry est.. In the year 1984  AVR stands for Alf & Vegard’s RISC processor Motorola  Later developed by ATMEL in the year 1996  MC68HC11 Focus on embedded systems build around microcontrollers Atmel  ATMEL stands for “Advanced Technology for Memory & Logic AtMEGA 8,16,32,64,128,256 etc AT90S2333
  • 16.
  • 17. PROGRAMMING THE MICROCONTROLLER FOR SPECIFIED TASK 1. What is AVR Atmega 8 microcontroller 1. What are ports? 2. Basic idea of C programming Junctions where peripherals are Use of embedded C to create a small 3. connected. This program can be peripherals a. Input units b. Output units 4. Run the program on the bot. 2. Ports in Atmega8  Atmega8 is a 28 pin micro.  23 pins can be used as both input and output pins.  PINS are grouped together as PORTS
  • 18.  Atmega8 has Two 8-bit Input/Output Ports PORTx; ‘x’ is subscript and could be either of B,D  Atmega8 has One 6-bit Input/Output port PORTC  All ports can be configured individually as input/ouput  How to access the port? Each port has three registers associated with it 1. DDRx 2. PORTx 3. PINx
  • 19. DDRx Register 1. DDR stands for “Data Direction Register” 2. Purpose: To set PORT Pins as input or output DDRx=0; // PORTx is defined as INPUT DDRx=1; // PORTx is defined as OUTPUT Example: Let us make PORTB upper nibble as output and lower nibble as input Hex conversion of first nibble: F Hex conversion of second nibble: 0
  • 20. PINx Register:  The purpose of this register is to read the value from the input device connected to the PORT. Or To read data present on PORTx Example: Read data from PortC (PLEASE NOTE: PORTC HAS BEEN DEFINED AS INPUT PORT) PINC=0xF0; Or we can also create a variable such that x=PINC x=0xF0
  • 21. PORTx Register  This register works in two different ways depending on the way in which the port is defined Case1: When portx is defined Output The purpose will be to output data present on the Portx pin to the output device Example: Here we define PortB as output by assigning DDRB=0xFF Let the data present on the PortB be 0xFF Therefore we write Case2: When portx is defined as input , it is used to activate or deactivate the pull-up resistor
  • 22.
  • 23.
  • 24. AVR Programming Tools  Software Required ATMEL STUDIO 6 1. Integrated Development Environment (IDE) 2. Supports Developing and Debugging of AVR and ARM based microcontroller application WE WILL WRITE THE C PROGRAM AND COMPILE IT IN ATMEL STUDIO TO GENERATE HEX FILE (MACHINE LANGUAGE UNDERSTANDABLE BY THE MICROCONTROLLER) Hardware Required HEX FILE CAN BE LOADED INTO THE MICROCONTROLLER USING BOOTLOADER or AVR PROGRAMMERS