It's main task is to receive signals from sensors mounted on the car and analyze them and send to CAN-bus.
Hardware design
The hardware part of the project is the PCB board which is connected to the sensors and CAN-bus. The microcontroller which is used is STM32L4P5RET6. The PCB is supply by 5VDC.
Sensors
It receive signals from :
inductive sensors - there are used to measure wheels rotation speed
brake pressure sensors - which measure the pressure in the brake system
shutdown circuit sense:
BSPD
Overtravel switch
Driver's kill switch
Left and right kill switches
acceleration - from MPU on board
Program flow diagram
)
DMA and ADC timings consideration
The program is required to collect and relay data @ 100 ms.
Two adc peripherals are used to collect data from 3 analog sensors each.
ADC clock frequency: $32 MHz$
Sampling time: $92.5$ cycles - reason: High impedance inputs are used, subject to change