Download - Sensors And Micro-Controllers
![Page 1: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/1.jpg)
Sensors And Micro-Controllers
![Page 2: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/2.jpg)
SCHOOLS OF ROBOTICS .
• Mechanical Design
• Electronics
• Programming
![Page 3: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/3.jpg)
AUTONOMOUS ROBOT
![Page 4: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/4.jpg)
WHAT ARE SENSORS ?
• Any device that converts a change in physical quantity into electrical signals.
![Page 5: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/5.jpg)
TSOP 1738
• It is a Digital IR Sensor.
• Works for IR pulse rate 38 KHz.
• Pulse rate set by microcontroller.
• Accurately distinguish between two colors.
• Outputs – 0 and 5 Volts.
![Page 6: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/6.jpg)
CIRCUIT DIAGRAM
![Page 7: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/7.jpg)
TSOP RANGE INCREASE CIRCUIT
![Page 8: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/8.jpg)
ANALOG IR SENSOR
• Measures amount of reflected IR light
• Outputs in the range of 0V to 5V
• Hence, called Analog Sensor
![Page 9: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/9.jpg)
CIRCUIT DIAGRAM
![Page 10: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/10.jpg)
LIGHT DEPENDENT RESISTOR
• Made of calcium Sulphate
• Act like open circuit in absence of light
• In light, resistance drops from
1 M ohms to10 ohms
• Popularly called LDRs.
![Page 11: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/11.jpg)
7805
• Microcontrollers – 5V
• Motors – 12V
• Converts 8V to 12V into 5V
• Rest lost as heat
• Current Rating - 0.5 A
![Page 12: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/12.jpg)
INTEGRATED CIRCUITS
• Programmable – Simplest form of microcontroller
• Non – Programmable
• E.g. 555, AND gate, OR gate, Mux, Inverters, etc.
![Page 13: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/13.jpg)
MICRO-CONTROLLERS
• A micro controller is the brain of the robot.
• Logic tables relating Input and Output can be defined by you.
• Many other useful features built into the IC itself.
![Page 14: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/14.jpg)
CONFUSED ?
![Page 15: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/15.jpg)
WORKING
• Consists of CPU interfaced with RAM and Flash Memory.
• Flash memory is Programmable
• CPU accesses information from RAM, which gets it from the
flash memory
![Page 16: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/16.jpg)
ATMEGA 16
![Page 17: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/17.jpg)
ATMEGA 8
![Page 18: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/18.jpg)
PROGRAMMING
• Understands only binary language
• Code written in C
• Used to generate a .hex file
• Transfer the .hex file using a programmer
![Page 19: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/19.jpg)
I/O PINS
• DDRX Registers
• PORTX Registers
• PINX Registers
![Page 20: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/20.jpg)
![Page 21: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/21.jpg)
![Page 22: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/22.jpg)
![Page 23: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/23.jpg)
TIMERS
• Timer 0 – 8 bit ( OC0 at PB3)
• Timer 1 – 16 bit ( 2 parts, OC1A at PD5 and OC1B at PD4)
• Timer 2, 8 bit (OC2 at PD7)
• System Clock (fs)
• Timer Clock
![Page 24: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/24.jpg)
![Page 25: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/25.jpg)
![Page 26: Sensors And Micro-Controllers](https://reader037.vdocuments.us/reader037/viewer/2022102800/56813437550346895d9b2a5e/html5/thumbnails/26.jpg)
THANK YOU