Professional Documents
Culture Documents
REPORT SUBMITTED
IN FULFILLMENT OF
SUMMER
INTERNSHIP
PROJECT
BACHELOR OF
TECHNOLOGY
ELECTRONICS AND
COMMUNICATION
ENGINEERING
BY
AYUSH
SRIVASTAVA
BE16EC026
(1612231030)
Accidents have become very common nowadays. In most of the cases the
accidents are so severe that the vehicles catches fire and it can damage the
person’s life.
Automatic fire fuel controller is a microcontroller device that is being made to
avoid such conditions.
In this case the fuel flow is automatically cut off when there is a crash or a
scenario of leakage.
A RESET switch is provided in case of fuel leakage or in case of a crash. The
driver can press the reset switch to restart the flow of fuel.
All the messages are transmitted through CAN communication.
TABLE OF CONTENTS:
1. Methodology
2. PIC Microcontroller
2.1. Architecture
2.2. Structure
2.3. Pin Diagram
6. Acknowledgement
7. References
1. Methodology
This project is carried out in cooperation with VE Commercial Vehicles ltd. This is
divided into several steps:
Literature survey of Crash sensor , Angle sensors and the rate of Fuel flow
Development of micro-controller with sensors with the help of CAN sensor
Proof of Concept
Validation of the project carried out
Post Processing & Review the Results
Implementation of the project.
2 .PIC-MICROCONTROLLER
2.1 Architecture
PIC16F877A Features
Pin
Pin Name Description
Number
MCLR is used during programming, mostly connected
1 MCLR/Vpp
to programmer like PicKit
2 RA0/AN0 Analog pin 0 or 0th pin of PORTA
3 RA1/AN1 Analog pin 1 or 1st pin of PORTA
4 RA2/AN2/ Vref- Analog pin 2 or 2nd pin of PORTA
5 RA3/AN3/ Vref+ Analog pin 3 or 3rd pin of PORTA
6 RA4/T0CKI/C1out 4th pin of PORTA
7 RA5/AN4/SS/C2out Analog pin 4 or 5th pin of PORTA
8 RE0/RD/AN5 Analog pin 5 or 0th pin of PORTE
9 RE1/WR/AN6 Analog pin 6 or 1st pin of PORTE
10 RE2/CS/AN7 7th pin of PORTE
11 VDD Ground pin of MCU
12 VSS Positive pin of MCU (+5V)
13 OSC1/CLKI External Oscillator/clock input pin
14 OSC2/CLKO External Oscillator/clock output pin
15 RC0/T1OSO/T1CKI 0th pin of PORT C
16 RC1/T1OSI/CCP2 1st pin of POCTC or Timer/PWM pin
17 RC2/CCP1 2nd pin of POCTC or Timer/PWM pin
18 RC3/SCK/SCL 3rd pin of POCTC
19 RD0/PSP0 0th pin of POCTD
20 RD1/PSPI 1st pin of POCTD
21 RD2/PSP2 2nd pin of POCTD
22 RD3/PSP3 3rd pin of POCTD
23 RC4/SDI/SDA 4th pin of POCTC or Serial Data in pin
24 RC5/SDO 5th pin of POCTC or Serial Data Out pin
25 RC6/TX/CK 6th pin of POCTC or Transmitter pin of Microcontroller
26 RC7/Rx/DT 7th pin of POCTC or Receiver pin of Microcontroller
27 RD4/PSP4 4th pin of POCTD
28 RD5/PSP5 5th pin of POCTD
29 RD6/PSP6 6th pin of POCTD
30 RD7/PSP7 7th pin of POCTD
31 VSS Positive pin of MCU (+5V)
32 VDD Ground pin of MCU
33 RB0/INT 0th pin of POCTB or External Interrupt pin
34 RB1 1st pin of POCTB
35 RB2 2nd pin of POCTB
36 RB3/PGM 3rd pin of POCTB or connected to programmer
37 RB4 4th pin of POCTB
38 RB5 5th pin of POCTB
39 RB6/PGC 6th pin of POCTB or connected to programmer
40 RB7/PGD 7th pin of POCTB or connected to programmer
3. AF2C:
3.1 OBJECTIVE:-
RESET SWITCH
RPM (CAN)
APU (CAN)
WIF (CAN)
TO
FDAS AF2C Controller FUEL
SHUT
CRASH SENSOR OFF
SOLENOID
FUEL FLOW RATE
METER
ANGLE SENSOR
12 OR 24 VOLT
GROUND
IGNITION SUPPLY
In case of fire& vehicle accident vehicle goes in fuel shut off mode. Saves from
fire spread which ensures the vehicle and passenger safety.
Avoid system failure due to water fuel fixing by stopping fuel discharge.
4.2. Accelerometer
The accelerometer offers temperature and acceleration data for all three spatial
dimensions. For the latter, the differential capacitance change (C) of the corresponding
sensing element is detected. These signals correspond to the voltage (V) entering the
hybrid algorithmic analog-digital converter (ADC), translating the formerly analog signals
into digital serial bit streams at a rate of 400 kHz. Then, the detected signal is translated
into a data word of max. 16 bits and enters the digital signal processor (DSP).
Within the DSP (see Figure 2-4), the data is corrected for the analog-digital conversion,
gained and offset corrected. A low-pass filter engine provides an adjustable data
bandwidth. Here, the sampling rate is directly connected with the selected bandwidth.
The low-pass engine can be bypassed so that unfiltered data is accessible.
4.3. Gyroscope
The signal path of the gyroscope is sketched in Figure 2-5. For proper data acquisition,
five blocks are necessary for each rate axis, i.e., the drive, the (MEMS) sensor, the
detection, the controller & demodulator and the digital signal processor (DSP). In
addition, a temperature signal is provided by the temperature sensor.
The drive is a closed-loop system that actively moves each sensor element at ~25 kHz.
The block ‘Detection’ corresponds to the analog part of the SMI130. The differential
capacitance change (C) of each sensing element corresponds to the rate data of the
respective sensing axis. The latter corresponds to the voltage (V) entering the 25 kHz
filter which is confirm to the drive frequency. The 1-bit ADC Converter translates the
signal into a digital serial bit stream at a rate of 400 kHz.
This bit stream is fed into both the common mode controller and the demodulator. The
first back couples to ‘C/V’ in order to negate mass deviation of the sensor element. The
latter demodulates the 25 kHz data signal which then enters the DSP.
In the DSP, the signal is both fed into the quadrature correction and offset shifted.
Afterwards, it is fine gained and low pass filtered before being accessible via e.g. SPI.
The block ‘Quad. Corr.’ back-couples onto distinctive pads on the sensing element to
compensate for possible deviations from the oscillation axis.
The SMI130 provides a power-on reset (POR) generator. It resets the logic part and the
register values after powering on VDD and VDDIO.
For example, consider an 11-bit ID CAN network, with two nodes with IDs of 15 (binary
representation, 00000001111) and 16 (binary representation, 00000010000). If these
two nodes transmit at the same time, each will first transmit the start bit then transmit
the first six zeros of their ID with no arbitration decision being made.
When the 7th ID bit is transmitted, the node with the ID of 16 transmits a 1 (recessive)
for its ID, and the node with the ID of 15 transmits a 0 (dominant) for its ID. When this
happens, the node with the ID of 16 knows it transmitted a 1, but sees a 0 and realizes
that there is a collision and it lost arbitration. Node 16 stops transmitting which allows
the node with ID of 15 to continue its transmission without any loss of data. The node
with the lowest ID will always win the arbitration, and therefore has the highest priority.
J1939 is a set of standards defined by SAE. They are used in heavy-duty vehicles such
as trucks and buses, mobile hydraulics, etc. In many ways, J1939 is similar to the older
J1708 and J1587 standards, but J1939 is built on CAN.
The physical layer (J1939/11) describes the electrical interface to the bus. The data link
layer (J1939/21) describes the rules for constructing a message, accessing the bus, and
detecting transmission errors.
The first three bits of the identifier are used for controlling a message’s priority during
the arbitration process. A value of 0 has the highest priority. Higher priority values are
typically given to high-speed control messages, for example, the torque control
message from the transmission to the engine. Messages containing data that is not time
critical, like the vehicle road speed, are given lower priority values.
The next bit of the identifier is reserved for future use and should be set to 0 for
transmitted messages.
The next bit in the identifier is the data page selector. This bit expands the number of
possible Parameter Groups that can be represented by the identifier.
The PDU format (PF) determines whether the message can be transmitted with a
destination address or if the message is always transmitted as a broadcast message.
The interpretation of the PDU specific (PS) field changes based on the PF value:
If the PF is between 0 and 239, the message is addressable (PDU1) and the
PS field contains the destination address.
If the PF is between 240 and 255, the message can only be broadcast
(PDU2) and the PS field contains a Group Extension.
The Group extension expands the number of possible broadcast Parameter Groups that
can be represented by the identifier.
https://en.wikipedia.org/wiki/CAN_bus
https://www.edgefx.in/pic-microcontroller-architecture-and-applications/
https://www.kvaser.com/about-can/higher-layer-protocols/j1939-introduction/
https://en.wikipedia.org/wiki/SAE_J1939