Академический Документы
Профессиональный Документы
Культура Документы
Guided by:
Mr. Rishabh
Submitted By:
AKASH KUMAR
DEEWAN SINGH
KARTIKEY TEWARI
SUMIT KUMAR
This project “Intelligent Braking system” was a great learning experience for us
and we are submitting this work to Advanced Computing Training School
(CDAC ACTS). We all are very glad to Mr. Rishabh for his valuable guidance to
work on this project. His guidance and support helped us to overcome various
obstacles and intricacies during the course of project work.
Our most heartfelt thanks goes to Mrs. Purvi Tomar (Course Coordinator, PG-
DESD) who gave all the required support and kind coordination to provide all the
necessities like required hardware, internet facility and extra Lab hours to
complete the project and throughout the course up to the last day here in C-DAC
ACTS, Pune.
ABSTRACT
The main purpose of present Automobiles is being developed by more of electrical parts
for efficient operation. Generally a vehicle was manufactured with an analog driver
vehicle interface for indicating various vehicle statuses like speed, fuel level, Engine
temperature etc. This work presents the development and implementation of a digital
driving system for a semi-autonomous vehicle to improve the efficiency of driver-vehicle
interface. It uses an ARM based data acquisition system that uses ADC to control data
from analog to digital format and visualize through LCD. This work focuses the
development of distance measurement by using Ultrasonic sensors which denotes that
vehicle’s position from obstacles. The vehicle detects the speed breaker and also some
primary zones before certain limitation by tags using CAN module for introducing the
new invention of priority based Intelligent Braking System.
TABLE OF CONTENTS
List of Figures
1 Introduction
1.1 About Project
1.2 Scope of Project
1.3 System Requirements
1.3.1 Hardware Requirements
1.3.2 Software Requirements
2 Literature Survey
3 Implementation
4 Results
5 Conclusion
6 References
LIST OF FIGURES
Fig 2.1 NGX LPC 1768 Blueboard
Fig 2.2 STM32F3 Discovery Board
Fig 2.3 L293d Motor Driver IC
Fig 2.4 CAN Transceiver
Fig 2.5 Ultrasonic Sensor (HC-SR04)
Fig 2.6 Timing Diagram
Fig 2.7 Fleming’s Left Hand Rule
Fig 2.8 DC Motor
Fig 2.9 CAN Frame Format
Fig 3.1 Block Diagram of Proposed System
LIST OF TABLES
Table 2.1 Electric Parameters of HC-SR04
1. INTRODUCTION
The software used for implementing the project was Keil uVision4 for lpc 1768 board
and Keil uVision5, CubeMX for STM32F3 discovery Board.
2. LITERATURE SURVEY
The STM32 F3 series combines a 32-bit ARM Cortex-M4 core (with FPU and DSP
instructions) running at 72 MHz with a high number of integrated analog peripherals
leading to cost reduction at application level and simplifying application design,
including:
L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation,
two DC motors can be driven simultaneously, both in forward and reverse direction. 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 and anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start
operating. When an enable input is high, the associated driver gets enabled. As a result,
the outputs become active and work in phase with their inputs. Similarly, when the enable
input is low, that driver is disabled, and their outputs are off and in the high-impedance
state.
The MCP2551 is a high-speed CAN, fault-tolerant device that serves as the interface
between a CAN protocol controller and the physical bus. The MCP2551 device provides
differential transmit and receive capability for the CAN protocol controller, and is fully
compatible with the ISO-11898 standard, including 24V requirements. It will operate at
speeds of up to 1 Mb/s. Typically, each node in a CAN system must have a device to
convert the digital signals generated by a CAN controller to signals suitable for
transmission over the bus cabling (differential output). It also provides a buffer between
the CAN controller and the high-voltage spikes that can be generated on the CAN bus by
outside sources. Some of its features are:
Product features:
Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non-contact measurement
function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic
transmitters, receiver and control circuit. The basic principle of work:
1) Using IO trigger for at least 10us high level signal,
2) The Module automatically sends eight 40 kHz and detect whether there is a pulse
signal back.
3) IF the signal back, through high level , time of high output IO duration is the time from
sending ultrasonic to returning.
Test distance = (high level time velocity of sound (340M/S) / 2
Working Voltage DC 5 V
Working Current 15mA
Working Frequency 40Hz
Max Range 4m
Min Range 2cm
Measuring Angle 15 degree
Trigger Input Signal 10uS TTL pulse
Echo Output Signal Input TTL lever signal and the range in
Proportion
Dimension 45* 45*20*15mm
Timing diagram:
The Timing diagram is shown below. You only need to supply a short 10uS pulse to the
trigger input to start the ranging, and then the module will send out an 8 cycle burst of
ultrasound at 40 kHz and raise its echo. The Echo is a distance object that is pulse width
and the range in proportion .You can calculate the range through the time interval
between sending trigger signal and receiving echo signal. Formula: us / 58 = centimeters
or us / 148 =inch; or: the range = high level time * velocity (340M/S) / 2; we suggest to
use over 60ms measurement cycle, in order to prevent trigger signal to the echo signal.
2.7.2 The Extended CAN Frame format consists of these additional bits:
• SRR–The substitute remote request (SRR) bit replaces the RTR bit in the standard
message location as a placeholder in the extended format.
• IDE–A recessive bit in the identifier extension (IDE) indicates that more identifier bits
follow. The 18-bit extension follows IDE.
• r1– Following the RTR and r0 bits, an additional reserve bit has been included ahead of
the DLC bit.
3. IMPLEMENTATION
ULTRASONIC MOTOR
SENSOR
(HC-SR04)
GPIO POT
CAN H
CAN CAN
CONTROLLER CONTROLLER
MCP-2551 MCP-2551
CAN L
STM32F3 LPC 1768
TRANSCEIVERS
In this project CAN Protocol is used to transmit data from one board to the other.
Ultrasonic sensors sense the distance between vehicles and sends it to the GPIO of
STM32F3. This distance is send to the other board through MCP 2551 CAN Transceiver.
On the other board speed is being controlled manually by potentiometer which is
connected to the ADC of LPC 1768 and initially this speed is shown in the LCD of LPC
1768. As soon as the CAN transceiver of LPC 1768 receives the data from the other
board, it is shown in the LCD. Speed of motor is controlled according to the distance. If
the distance between the vehicles is less, then a warning message is displayed on the
LCD which in turn starts the PWM which slows down the speed of motor.
CONCLUSION
The Intelligent Braking system, if implemented can avert lots of accidents and can save
invaluable human lives and property. Implementation of such an advanced system can be
made compulsory similar to wearing of seat belts so that accidents can be averted to some
extent. Our Intelligent braking system provides a glimpse into the future of automotive
safety, and how much more advanced these individual systems can be for avoiding
accidents and protecting vehicle occupants when they are integrated into one system. The
future of automotive safety is more than just developing new technology; it is shifting the
approach to safety. INTELLIGENT BRAKING SYSTEM approach represents a
significant shift from the traditional approach to safety, but it is fundamental to achieving
the substantial benefits.
REFERENCES