Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Embedded systems and robotics by scmandota

1,394 views

Published on

for my dear friends who do not want to work hard for ppt. this is for embedded system

Published in: Education, Technology, Business
  • Be the first to comment

Embedded systems and robotics by scmandota

  1. 1. Embedded Systems & Robotics BasicsSubmitted to : Submitted by:Mr. Ritesh Saraswat (guide) Sachin kr. JainMs. Seema Sharma (co-guide) Subhash choudhary Vivek kr. gupta
  2. 2. Embedded SystemsA embedded system is a microprocessoror microcontroller based electronic deviceused for specific task. It is designed to perform operationswhich minimize (or even completelyavoid) need of human control.
  3. 3. Types of embedded systems1. Real time embedded system (a) Soft real time embedded system (b) Hard real time embedded system2. Non real time embedded system
  4. 4. Applications of embedded system• Pen drives• Hard disk• Mouse• Calculators, electronics welding machine• Cell phones• Security system• Alarm system• Digital camera• Environment monitoring systems
  5. 5. Microcontroller A Microcontroller is a programmable digital processor withnecessary peripherals. Both microcontrollers andmicroprocessors are complex sequential digital circuits meant tocarry out job according to the program / instructions. Sometimesanalog input/output interface makes a part of microcontrollercircuit of mixed mode (both analog and digital nature).Types: (a) RISC microcontroller (b) CISC microcontroller we have used ATmega16 in training
  6. 6. 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
  7. 7. Pin diagram of ATmega16
  8. 8. 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
  9. 9. ProgrammingProgrammer 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 onthe computer (Serial, Parallel or USB).There are 2 good software which support this hardware and cancommunicate with micro controller using this circuit. They are,• Pony Prog• At‐Prog
  10. 10. Serial Programmers Circuit (Hardware)
  11. 11. At-Prog(software)
  12. 12. USB Programmer
  13. 13. 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.
  14. 14. Code Vision AVR (CVAVR)
  15. 15. Code Vision AVR (CVAVR)
  16. 16. Code Vision AVR (CVAVR)
  17. 17. Code Vision AVR (CVAVR)
  18. 18. Code Vision AVR (CVAVR)
  19. 19. I/O functions RegisterInput Output functions are set by Three Registers foreach 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.
  20. 20. LCD & LED
  21. 21. LCD vs. LED
  22. 22. • 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.
  23. 23. 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.
  24. 24. Modes of TimersThere are four modes of timers, are as: Normal mode CTC mode Fast PWM mode Phase correct PWM mode
  25. 25. Normal Mode
  26. 26. CTC Mode
  27. 27. Fast PWM Mode
  28. 28. Phase Correct PWM Mode
  29. 29. SETTING UP TIMERS IN CVAVR
  30. 30. SETTING UP TIMERS IN CVAVR
  31. 31. SETTING UP TIMERS IN CVAVR
  32. 32. SETTING UP TIMERS IN CVAVR
  33. 33. 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.
  34. 34. 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)
  35. 35. SPI: Serial Peripheral InterfaceMOSI:-Channel where the master sends thedata to the slave and the slave receives it. MISO:-Channel where the slave sends the data and the master receives it.
  36. 36. SPI: Serial Peripheral InterfaceSCK:-Clock is send by the master.SS:-Slave select when the master wants tosend data to a particular slave it makes its SSpin low, sends the data and then again makes ithigh.
  37. 37. UARTIn the UART protocol, the transmitter and the receiverdo not share a clock signal. That is, a clock signal doesnot emanate from one UART transmitter to the otherUART receiver. Due to this reason the protocol is saidto be asynchronous
  38. 38. 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.
  39. 39. 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.
  40. 40. MotorsDevice used to convert electrical energy into mechanicalenergy is called a motor.Some Motors used in embedded systems and roboticsare described as below:i. Stepper motorsii. Servo motorsiii. Geared DC Motors
  41. 41. MotorsWe 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.
  42. 42. H- Bridge
  43. 43. Motor Driver ICs: Pin Diagram
  44. 44. SensorsA sensor is a device that measures a physical quantityand converts it into a signal which can be read by anobserver or by an instrument.We can use different types of sensor like,1. Temperature sensor: We use LM35 IC as temperature sensor.
  45. 45. Sensors2. 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).
  46. 46. SensorsTSOP:TSOP 1738 Sensor is a digital IR Sensor; It is logic 1(+5V) when IR below a threshold is falling on it andlogic 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.
  47. 47. SensorsIR- Sensor:
  48. 48. SensorsIR-Sensor:In this we use three main components IR-LED, Photodiode & LM358 IC.From any “non black body” obstacle IR reflects andfalls on photo diode.Hence Photo diode become forward bias, and it turnon the IC LM358 that gives the output.

×