Department of Electronics and Communication Engineering ST. THOMAS COLLEGE OF ENGINEERING & TECHNOLOGY 4 D H ROAD, Kidder pore, Kolkata 700023
Objective
1. 2. 3. 4.
An autonomous controlled system is also known as robotic or a driverless car. An autonomous vehicle has the capability of sensing the environment and navigating on its own. A human may choose a desired destination, without doing any mechanical operation. An autonomous vehicles typically update their memory maps based on information.
Block Diagram
Processing Module: Processes the image obtained from camera to detect the
path.
Communication Module: Communicates with the processing module in order
Processing Module
Representation of an Image in MATLAB
1.
An image in MATLAB is stored as a 2D matrix (of size mxn) where each element of the matrix represents the intensity of light. either 0 or 1 and for a grayscale image each value lies between 0 and 255. A color image is stored as an mxnx3 matrix where each element is the RGB value of that particular pixel (hence its a 3D matrix).
3.
Grayscale Image: It contains intensity values ranging from a minimum (depicting absolute
black) to a maximum (depicting absolute white) and in between varying shades of gray. Typically, this range is between 0 and 255
Color Image: We all have seen this! Such an image is composed of the three primary colors,
Algorithm
The image is scan using the commend imread() and stores it in a 3-D matrix . The no of rows and columns and the no of color channels in the variables LENGTH, WIDTH, aa using the function size(). Then it assigns a new 2-D matrix of the size of LENGTH WIDTH with zeros.
INPUT IMAGE
This command is used 3 times to work on the red ,green and blue data separately in order to clear the image using the function medfilt2() function
We erode the image in order to remove the small continuities that might connect two major regions.
The final image is display on screen and thus we separate the road from the entire image.
Communication Module
Choice of Micro-controller
Efficiencient in task performance Availability of Software Development Kits Complexity of the Configuration Characteristics of Controller Availability of the Micro-controller
Features
Atmel AT89S52 micro-controller chip, based on the 8051 micro-controller architecture. It has got high processing speed and comparable low cost. The micro-controller communicates with the laptop through UART ( Universal Asynchronous Receiver or Transmitter 8K Bytes of In-System Programmable (ISP) Flash Memory. 256 x 8-bit Internal RAM. 32 Programmable I/O Lines. Three 16-bit Timer/Counters.
UART PROTOCOL
UART is Universal Asynchronous Receiver or Transmitter. It is the protocol with programming that controls a computer's interface to its attached serial devices. It provides the computer with the RS-232C Data Terminal Equipment(DTE)
Bit 0 1
Hyper Terminal
Hyper Terminal is a Windows XP application, which can be used to receive or transmit serial data through RS232.
The baud rate is fixed to 9600bps by loading TH1 to 0xFD. In a program, Timer1 is used with auto reload setting. The value 0x50 is loaded in the SCON register. This will initialize the serial port in Mode1 of serial communication
Car Module
Basic Operation:
At first an H- Bridge Circuit has been created using L293D Driver IC.
The H-bridge arrangement is generally used to reverse the polarity of the motor. It can also be used to 'break' the motor, where the motor comes to a sudden stop. The motor's terminals are shorted, or to let the motor 'free run' to a stop, as the motor is effectively disconnected from the circuit.
.
Car Movement
S1 1 0 0 0 0 S2 0 1 0 0 1 S3 0 1 0 0 0 S4 1 0 0 0 1 Result Motor moves right Motor moves left
1
1 0 1
0
1 0 1
1
0 1 1
0
0 1 1
Motor brakes
Shoot-through Shoot-through Shoot-through
a higher-current signal.
This higher current signal is used to drive the motors. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise
POWER SUPPLY
We have made a power supply of our own using adjustable voltage regular (LM 317) in order to obtain standard rating of voltage and current for microcontroller and DC motors.
We can also use 9V batteries in series combination with a capacity of 550mAh . Similarly, we can also use pencil batteries connected in series.
FUTURE SCOPE
With the availability of ARM processor (1 GHz and higher) we will be
time implementation will be possible with the presence of a 4 wheeler car. are planning to improve the fuel efficiency by controlling the valve timings with the help of a microcontroller.