Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCTION:
This chapter introduces a line following robot, For many people robot is a machine that imitates a humanlike the androids in Star Wars, Terminator and Star Trek: The Next Generation. However much these robots capture our imagination, such robots still only inhabit Science Fiction. People still haven't been able to give a robot enough 'common sense' to reliably interact with a dynamic world. The type of robots that you will encounter most frequently are robots that do work that is too dangerous, boring, onerous, or just plain nasty. Most of the robots in the world are of this type. They can be found in auto, medical, manufacturing and space industries. In fact, there are over a million of these type of robots working for us today. Some robots like the Mars Rover Sojourner and the upcoming Mars Exploration Rover, or the underwater robot Caribou help us learn about places that are too dangerous for us to go. What exactly is a robot? As strange as it might seem, there really is no standard definition for a robot. However, there are some essential characteristics that a robot must have and this might help you to decide what is and what not a robot is. It will also help you to decide what features you will need to build into a machine before it can count as a robot. A robot has these essential characteristics: Sensing: First of all your robot would have to be able to sense its surroundings. It would dothis in ways that are not unsimilar to the way that you sense your surroundings. Givingyour robot sensors: light sensors (eyes), touch and pressure sensors (hands), chemicalsensors (nose), hearing and sonar sensors (ears), and taste sensors (tongue) will give your robot awareness of its environment. Movement: A robot needs to be able to move around its environment.Whether rolling onwheels, walking on legs or propelling by thrusters a robot needs to be able to move. To count as a robot the whole robot moves, either like the Sojourner or just parts of the robot moves, like the Canada Arm. Energy: A robot needs to be able to power itself. A robot might be solar p o w e r e d , electrically powered, battery powered. The way your robot gets its energy will depend on what your robot needs to do. Intelligence: A r o b o t n e e d s s o m e k i n d o f " s m a r t s . " Th i s i s w h e r e p r o g r a m m i n g e n t e r s t h e pictures. A programmer is the person who gives the robot its 'smarts.' The robot will have to have some way to receive the program so that it knows what it is to do. ECE Dept. SCCE 1
Figure 2.1:Atmega8535 Features: High-performance, Low-power AVR 8-bit Microcontroller Advanced RISC Architecture 130 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers ECE Dept. SCCE 4
Port B (PB7..PB0)
Port C (PC7..PC0)
Port D (PD7..PD0)
RESET
AREF
AVR ATmega8535 Memories: This section describes the different memories in the ATmega8535. The AVR architecture has two main memory spaces, the Data Memory and the Program Memory space. In addition, the ATmega8535 features an EEPROM Memory for data storage. All three memory spaces are linear and regular. In-System Reprogrammable Flash Program Memory: The ATmega8535 contains 8K bytes On-chip In-System Reprogrammable Flash memory for program storage. Since all AVR instructions are 16 or 32 bits wide, the Flash is organized as 4K x 16. For software security, the Flash Program memory space is divided into two sections, Boot Program section and Application Program section.
Data Memory Access Times This section describes the general access timing concepts for internal memory access. The internal data SRAM access is performed in two clk CPU cycles as follows
Three Terminal Adjustable or Fixed Voltages. 1.5V, 1.8V, 2.5V, 2.85V, 3.3V and 5.0V. Output Current of 1A. 11
12
ABSOLUTE MAXIMUM RATINGS: Power Dissipation Internally limited Input Voltage Operating Junction Temperature Range Control Section Power Transistor Storage temperature Soldering information Lead Temperature Thermal Resistance SO-8 package TO-252 package SOT-223 package 15V -40C to 125C -40C to 150C - 65C to +150C (10 sec) 300C JA= 160C/W JA= 80C/W JA= 90C/W
Output Voltage The AMS1117 series develops a 1.25V reference voltage between the output and the adjust terminal. Placing a resistor between these two terminals causes a constant current to flow through R1 and down through R2 to set the overall output voltage. This current is normally the specified minimum load current of 10mA. Because IADJ is very small and constant it represents a small error and it can usually be ignored.
13
14
15
16
17
2.3MAX232 IC:
The MAX232 is a dual driver/receiver that includes a capacitive voltage generator to supply TIA/EIA-232-F voltage levels from a single 5-V supply. Each receiver converts TIA/EIA-232-F inputs to 5-V TTL/CMOS levels.These receivers have a typical threshold of 1.3 V, a typical hysteresis of 0.5 V, and can accept 30-V inputs.Each driver converts TTL/CMOS input levels into TIA/EIA-232-F levels. The driver, receiver, and voltage-generator functions are available as cells in the Texas Instruments.
Absolute maximum ratings over operating free-air temperature range: Input supply voltage range, VCC Positive output supply voltage range, VS+ Negative output supply voltage range, VS Input voltage range, VI: Driver Receiver Output voltage range, VO: T1OUT, T2OUT R1OUT, R2OUT Short-circuit duration: T1OUT, T2OUT Package thermal impedance, JA: D package DW package N package NS package Operating virtual junction temperature, TJ Storage temperature range, Tstg 0.3 V to 6 V VCC 0.3 V to 15 V 0.3 V to 15 V 0.3 V to VCC + 0.3 V 30 V VS 0.3 V to VS+ + 0.3 V 0.3 V to VCC + 0.3 V Unlimited 73C/W 57C/W 67C/W 64C/W 150C 65C to 150C
20
Figure 2.13: Receiver Test Circuit and Waveforms for tPHL and tPLH Measurements
NOTES: A. The pulse generator has the following characteristics: ZO = 50 , duty cycle 50%. B. CL includes probe and jig capacitance.
Driver Test Circuit and Waveforms for tPHL and tPLH Measurements (5- s Input)
21
Figure 2.14: Driver Test Circuit and Waveforms for tPHL and tPLH Measurements (5-s Input)
NOTE A: The pulse generator has the following characteristics: ZO = 50 , duty cycle 50%.
APPLICATION INFORMATION:
22
23
FIGURE 2.16:L293NE
BLOCK DIAGRAM:
24
NOTES: A. CL includes probe and jig capacitance. B. The pulse generator has the following characteristics: tr 10 ns, tf 10 ns, tw = 10 s, PRR = 5 kHz, ZO = 50 .
Figure 2.19: Test Circuit and Voltage Waveforms ECE Dept. SCCE 25
Figure 2.20:Application information Absolute maximum ratings over operating free-air temperature range: Supply voltage, VCC1 Output supply voltage, VCC2 Input voltage, VI ECE Dept. SCCE 26 36 V 36 V 7V
Figure 2.22:Switches Detail Specification: Series NO. TS66H 1.Rating: 50mA 12VDC 2.Contact Resistance : 50m max(initial) 3.Insulation Resistance: 100M(minDC 250V) 4.Dielectric Strength : AC250V(50/60Hz for 1minute) 5.Electrically Life:50,000cycles ECE Dept. SCCE 28
29
Figure 2.24:Driving supply J1 (Jumper 1): It is a simple jumper which can be use to use a sinle power supply for DS and LS. If you put here a jumper then you have to provide supply only on DC or LS and your board will get both the power supply.
Figure 2.25:Jumper USB socket: It is basically used for USB communication with the PC. It also provides necessary logic supply to the motherboard. In order to use the USB supply the POWER switch should be toggled towards UP (USB power). When using the USB power some prequtions should be taken such as any heavy load should not be connected to the board directly and Dont use the J1.
30
2.8. LEDs :
Active high: RED LED1 PORTC4 RED LED2 PORTC5 RED LED3 PORTC6 RED LED4 PORTC7 GREEN LS - Logic Power ON indicator GREEN DS - Driver Power ON indicator Features: 2.2mm x 1.4mm, 1.3mm high. Low power consumption. Available on tape and reel. Package : 2000pcs / reel. Moisture sensitivity level : level 3. RoHS compliant. Description: The Hyper Red source color devices are made with Al-GaInP on GaAs substrate Light Emitting Diode.
Figure 2.26:Waveform
31
Dimensions:
Figure 2.27:Dimensions
2.9. BZ (BUZZER):
It can be easily used to get an audible feedback from the controller. It is connected in an active high mode, i.e., the buzzer beeps when the data given to it is 1. The Buzzer is connected to the pin PORTC3 of the microcontroller. Dimensions:
32
Figure 2.28:BUZZER
Figure 2.29:WAVEFORM
33
Features:
Support for All Lattice Programmable Products 1.2V to 5V programming Ideal for design prototyping and debugging Connect to Multiple PC Interfaces USB (v.1.0, v.2.0) PC Parallel Port Easy-to-Use Programming Connectors Versatile flywire, 2 x 5 (.100) or 1 x 8 (.100) connectors 6 feet (2 meters) or more of programming cable length (PC to DUT) Lead-Free/RoHS Compliant Construction
Figure 2.30:ISP
Figure 2.31:RS-232
Pin configuration:
35
2.12. PA (PORTA)
It is a general purpose I/O port. This port contains eight pins that can be used as digital input, ADC in and digital out put. These pins are in the form, DATA-VCC-GROUND (denoted as D + - respectively on the board). The Data pins are towards the microcontroller. The VCC and Ground pins are provided with a 5V/1A power supply.
2.13. PB (PORTB)
It is a general purpose I/O port. This port contains eight pins that can be used as digital input and digital out put. These pins are in the form, DATA-VCC-GROUND (denoted as D + - respectively on the board). The VCC and Ground pins are provided with a 5V/1A power supply or the suply to this pins can also be switched to external supply connected in DS pin through EXT switch.
Figure 2.37:Sensors CONSTRUCTION: The sensors are very simple to understand and easy to implement. The major components of these sensors include a High glow Red LED and a Photodiode. The LED emits light when energized; hence acting like an optical transmitter. Whereas the photodiode is capable of detecting light incident on it, thereby acting like an optical receiver. Thus, these sensors work on the principle of light sensing. WORKING: The LED emits high intensity red light when current flows through it. If the emitted light of LED falls on any bright surface it is reflected back to the photo diode. Photo diode is a device which is able to detect the light intensity and convert it to a corresponding electric current. Other devices present in the board read the electric current generated from the photodiode and convert it to a logic voltage level which is either logic-0 or logic-1. Thus, depending on the presence or absence of the surface, logic data is developed by the light sensor
APPLICATIONS
The MPOs can be used for a number of applications, some of which have been mentioned below: OBSTACLE SENSOR: In order to use this sensor as an Obstacle sensor mount the optical sensor on side of your robot facing them horizontally with the ground surface. Take care that your sensor is affected by any other bright light source which may affect the photodiode. Place any obstacle in front of your sensor (it is better if the obstacle is of white or any other light color). When your sensor detects the ECE Dept. SCCE 38
CONFIGURATION: In the Multi Purpose Optical Sensor, a 3-pin male connector or a berg strip is present. The three pins of this berg strip are D (Data), + (positive 5 V supply), - (ground). Supply to the sensor is provided by the logic supply that may be present on the mother board. In order to connect this sensor to the mother board you need a 3-band connector cable. Connect one side of the connector cable to the sensor, check the convention of D, + and -, and then connect the other side of the sensor cable to the motherboard by following the same convention of D, + and -.
39
40
Figure 2.39:motors
Dimensions:
42
43
Figure 3.3:Avr programmer To load the code click on browse select the hex file click on program.
45
ECE Dept.
46
SCCE