CN105946769A - High-speed automatic traffic accident alarm system based on STM32 - Google Patents

High-speed automatic traffic accident alarm system based on STM32 Download PDF

Info

Publication number
CN105946769A
CN105946769A CN201610291166.2A CN201610291166A CN105946769A CN 105946769 A CN105946769 A CN 105946769A CN 201610291166 A CN201610291166 A CN 201610291166A CN 105946769 A CN105946769 A CN 105946769A
Authority
CN
China
Prior art keywords
pin
chip
circuit
sim900a
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610291166.2A
Other languages
Chinese (zh)
Other versions
CN105946769B (en
Inventor
胡云峰
杜乐
张森
陈虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin University
Original Assignee
Jilin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jilin University filed Critical Jilin University
Priority to CN201610291166.2A priority Critical patent/CN105946769B/en
Publication of CN105946769A publication Critical patent/CN105946769A/en
Application granted granted Critical
Publication of CN105946769B publication Critical patent/CN105946769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R21/00Arrangements or fittings on vehicles for protecting or preventing injuries to occupants or pedestrians in case of accidents or other traffic risks
    • B60R21/01Electrical circuits for triggering passive safety arrangements, e.g. airbags, safety belt tighteners, in case of vehicle accidents or impending vehicle accidents
    • B60R21/013Electrical circuits for triggering passive safety arrangements, e.g. airbags, safety belt tighteners, in case of vehicle accidents or impending vehicle accidents including means for detecting collisions, impending collisions or roll-over
    • B60R21/0136Electrical circuits for triggering passive safety arrangements, e.g. airbags, safety belt tighteners, in case of vehicle accidents or impending vehicle accidents including means for detecting collisions, impending collisions or roll-over responsive to actual contact with an obstacle, e.g. to vehicle deformation, bumper displacement or bumper velocity relative to the vehicle
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q9/00Arrangement or adaptation of signal devices not provided for in one of main groups B60Q1/00 - B60Q7/00, e.g. haptic signalling
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems

Abstract

The invention provides a high-speed automatic traffic accident alarm system based on STM32 and belongs to the field of electronic equipment. The high-speed automatic traffic accident alarm system aims at achieving the purposes that the traveling condition before a traffic accident happens and the automobile position after the traffic accident happens can be automatically sent to a specific APP only by utilization of an intra-vehicle power source for supplying power, and a user takes a series of measures such as alarming. The high-speed automatic traffic accident alarm system based on STM32 can reduce casualties and property losses as small as possible. The high-speed automatic traffic accident alarm system is composed of an STM32 minimum system, a JTAG program debugging circuit, a GPS antenna and data processing circuit, an MPU6050 module hardware circuit, an SIM900A chip main circuit, an SIM card slot circuit, an SD card hardware circuit, a TFT liquid crystal display screen module hardware circuit, an OV2640 camera module chip main circuit, a USB interface and stabilized voltage supply circuit and a USB-to-serial-port chip PL2303 main circuit. The high-speed automatic traffic accident alarm system runs in a fully-automatic manner, any operation is not needed after the traffic accident happens, a video acquisition device and a central processing unit are connected, automobile coordinates are sent to the specific APP through a GPRS wireless network, a corresponding map is additionally arranged in the APP, the traffic accident position can be rapidly positioned by the user, and therefore the user can take measures such as alarming and ambulance calling better beneficial to injured persons.

Description

High speed traffic accident automatic alarm system based on STM32
Technical field
The invention belongs to electronic device field.
Background technology
Along with the development of technology, China progressively marches toward the ranks of automobile superpower.By the end of in June, 2015, China's automobile pollution has breached 1.63 hundred million, and recoverable amount has been only second to the U.S., becomes the whole world second.Meanwhile, China's highway mileage number is also being skyrocketed through, and by the end of 2014, the China Expressway total kilometrage that is open to traffic reached 11.2 ten thousand kilometers, exceedes the U.S. and occupy the first in the world.Automobile quantity and the rising of high speed mileage number, but make China become the country that toll on traffic is most, have 200,000 people every year because of Prevention of Road Traffic Fatalities.Owing to China is vast in territory so that the most of mileage in highway all in meagrely-populated location, and on a highway because of get into an accident and death is because having little time to send traffic accident information the most mostly and cause the wounded to delay rescue opportunity.There is many to avoid the device of traffic accident on automobile, and emergency device after the occurrence of the traffic accident is very few.
China Patent Publication No. CN201765666U, publication date is on June 3rd, 2015, and number of patent application is 201310638035.3, and name of patent application is " a kind of highway traffic accident alarm device ".Patent application have employed GPRS module, use wireless network to send information to remote computer, and light fog light and red alarm lamp guides car below to avoid the vehicle that meets accident.Traffic accident is expanded further although this method avoid, but the situation of the side of meeting accident after the method consideration traffic accident the most in more detail, i.e. " remote computer " front not ensuring that at every moment has people, is likely to delay the treatment of the wounded under unmanned state.
China Patent Publication No. CN103481823A, publication date is on January 1st, 2014, and number of patent application is 201310446895.7, and name of patent application is " car-mounted terminal and intelligent vehicle-carried warning system ".Patent application have employed RFID RF identification and pressure transducer to judge that automobile traffic accident occurs.Although this device, but the situation after the method consideration information transmission the most in more detail, recipient is the most indefinite, and traffic accident judges that the pressure transducer used is not preferred plan yet.
China Patent Publication No. CN104680806A, publication date is on March 16th, 2011, and number of patent application is 201020504174.9, and name of patent application is " automatic car accident positioning alarm controller ".Patent application have employed gsm module, use PDU pattern to send Chinese and English message code to relevant department.Although the method is less on transmission information data amount, sending mode the most prompt, but the method does not considers the situation of recipient in more detail, so-called " relevant department ", if reaction that can not be instant, has the most probably delayed the treatment of the wounded.And the function lacking photographic head also makes to add many difficulties when police investigation is collected evidence.
Summary of the invention
It is an object of the invention to power situation of just driving a vehicle before after the occurrence of the traffic accident automatically by traffic accident merely with power supply in car, the automobile position after getting into an accident is issued specific APP, is made user adopt a series of measures, such as warning etc..Casualties and property loss is made to accomplish the high speed traffic accident automatic alarm system based on STM32 reduced as far as possible.
nullThe present invention is by STM32 minimum system、STM32 minimum system is powered filter circuit、STM32 minimum system button cell is powered and AD power supply circuits、JTAG program debugging circuit、Gps antenna and data processing circuit、GPS powers and data storage circuitry、MPU6050 module hardware circuit、SIM900A chip main circuit、SIM900A module serial communication interface circuit、SIM900A module RS232/RS485 interface circuit、SIM900A module voltage-stabilized power supply circuit、SIM900A module switch and button cell power supply circuits、SIM900A module contact pin pin circuitry、SIM card slot circuit、SD card hardware circuit、TFT liquid crystal screen module hardware circuit、OV2640 camera module chip main circuit、OV2640 camera module regulated power supply chip circuit、OV2640 camera module slot and crystal oscillating circuit、USB interface and voltage-stabilized power supply circuit、USB turns serial port chip PL2303 main circuit and constitutes;
STM32 Minimum system: the oscillating circuit two ends that crystal oscillator Y2 is constituted with electric capacity C6, C9 are connected with PC14, PC15 pin of STM32F407ZET6 chip respectively;The oscillating circuit two ends that crystal oscillator Y1 is constituted with electric capacity C7, C8 are connected with PH0, PH1 pin of STM32F407ZET6 chip respectively;The VDD pin of STM32F407ZET6 chip is connected with 3.3V voltage port, VSS pin ground connection;
STM32 Minimum system is powered filter circuit: zero resistance one end, Europe is connected with the VCC3.3 of digital circuit, and the other end is connected with analog circuit VCC3.3M;Electric capacity is the most in parallel, and one end is connected with analog circuit VCC3.3M, other end ground connection;
STM32 Minimum system button cell power and AD Power supply circuits: 1N4148 diode cathode end is connected with the VBAT pin of STM32F407ZET6 chip;1 interface of jumper cap P2 is connected with the VREF+ of STM32F407ZET6 chip, and 2 interfaces are connected with VDD;
JTAG Program debugging circuit: JTAG chip TRST pin is connected with the PB4 of STM32F407ZET6 chip, TDI pin is connected with the PA15 of STM32F407ZET6 chip, TMS pin is connected with the PA13 of STM32F407ZET6 chip, TCK pin is connected with the PA14 of STM32F407ZET6 chip, and TDO pin is connected with the PB3 of STM32F407ZET6 chip;
GPS Antenna and data processing circuit: GPS_NEO-6 chip TXD pin is connected with STM32F407ZET6 chip PB11 pin, and GPS_NEO-6 chip RXD pin is connected with STM32F407ZET6 chip PB10 pin;LED cathode is connected with GPS_NEO-6 chip TIMEPULSE pin;The circuit that antenna J2 is consisted of electric capacity C99 and inductance L3 is connected with the RFIN pin of MAX2659 chip, MAX2659 chip RFOUT pin is connected by the RF_IN pin of electric capacity C90 with GPS_NEO-6, and button cell XH414 positive pole is connected with GPS_NEO-6 chip V_BCKP pin;
GPS Power supply and data storage circuitry: the SCL interface of GPS_NEO-6 chip is connected with SDA interface with the SCL interface of AT24C32 chip respectively with SDA interface;P9 is GPS module Peripheral Interface, the input VIN pin of RT9193-33 voltage stabilizing chip is connected with 5 pins of P9,3.3V voltage after the EN pin of RT9193-33 voltage stabilizing chip connects the output pin VOUT output voltage stabilizing of VCC, RT9193-33 voltage stabilizing chip is linked in VCC3.3 network by two filter capacitors of C96, C97;
MPU6050 Module hardware circuit: U2 is 3.3V mu balanced circuit, and RT9193-33 is 3.3V linear voltage stabilization chip, and VIN pin is connected with 6 pins of P1, and VOUT pin is connected with VCC3.3 network;P1 is MPU6050 module Peripheral Interface, and IIC SDA pin is connected with STM32F407ZET6 chip PC1, and IIC SCL pin is connected with STM32F407ZET6 chip PC0 pin, and this module is connected by iic bus with STM32F407ZET6 chip;
SIM900A Chip main circuit: microphone interface MIC1 and MIC2 is connected by coupling electric capacity C59 ~ C71 with SIM900A chip;MIC1 pin 1,2 is connected with the MICP pin of SIM900A, and MIC1 pin 3 is connected with the MICN pin of SIM900A, and MIC2 pin 1,2 is connected with the SPP pin of SIM900A, and MIC2 pin 3 is connected with the SPN pin of SIM900A;The minus earth of button cell BAT1, positive pole is connected with the VRTC pin of SIM900A, one end of switch KEY1 is connected with the PWRKEY of SIM900A, SMA antenna is connected with the pin RF of SIM900A by the circuit of C40, C43 and R29 composition, and NET_STA1 is connected by the netLED pin of resistance R31 with SIM900A;
SIM900A Module serial communication interface circuit: chip SP3232 pin 1,3 is connected by electric capacity C37, and pin 2,6 is respectively by electric capacity C39, C44 ground connection, and pin 4,5 is connected by electric capacity C41;Chip SP3232 pin 7,8,13,14 is connected with 8,7,3,2 pins of RS232 COM respectively;Pin 15 ground connection of chip SP3232, pin 16 is connected by filter capacitor C36 and VCC BAT;Chip SP3232 pin 9 is connected by resistance R48 and SIM900A chip main circuit pin RTS;Chip SP3232 pin 10 is connected by resistance R47 and SIM900A chip main circuit pin CTS;Chip SP3232 pin 11,12 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip respectively;
SIM900A Module RS232/RS485 Interface circuit: P10 is contact pin, pin 1 is connected by the TXD pin of transistor circuit S8050 and SIM900A chip main circuit, pin 2 is connected with the RXD pin of SIM900A chip main circuit by diode circuit, pin 3,4 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip, and pin 5,6 is connected by the DBG TXD pin of resistance R44 with R45 and SIM900A chip main circuit and DBG RXD pin respectively;
SIM900A Module voltage-stabilized power supply circuit: the circuit that the pin 1 of voltage stabilizing chip MP2303 is consisted of electric capacity C52 inductance L1 and diode D8 with pin 3 is connected, pin 2 is connected by electric capacity C50 and VCC IN network, pin 4 is unsettled, the bleeder circuit midpoint that pin 5 is constituted with resistance R56, resistance R57 is connected, pin 6 is by electric capacity C55 resistance R55 ground connection, and the bleeder circuit midpoint that pin 7 is constituted with R49, R51 is connected;Pin 8 is by electric capacity 8 ground connection;Circular pin plug DC_IN pin 2,3 ground connection, pin 1 accesses VCC INX network by diode D7;
SIM900A Module switch and button cell power supply circuits: K2 is key-press circuit for switch, and the pin 2 of K2 is connected with pin 3, and P7 is contact pin, and pin 1 is connected with VCC BAT network, pin 2 ground connection;D9 is Zener diode, and negative pole meets VCC BAT, plus earth, and filter capacitor C69 mono-terminates VCC BAT, one end ground connection;
SIM900A Module contact pin pin circuitry: P3, P4, P5 are contact pin, are connected respectively at network;
SIM Card slot circuit: U9 is that SIM card slot pin 1 is connected with the SIM_DATA pin of SIM900A chip;Pin 2 is unsettled;Pin 3 ground connection;Pin 4 is connected with the SIM CLK pin of SIM900A chip, and pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;U10 is SMF05C electrostatic and latch-up protection chip; pin 1 is connected with the SIM_DATA pin of SIM900A chip; pin 2 is unsettled; pin 3 ground connection; pin 4 is connected with the SIM CLK pin of SIM900A chip; pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;
SD Card hardware circuit: the CD/DATA3 pin of SD slot is connected with the PA3 pin of STM32F407ZET6, CMD pin is connected with the PA7 pin of STM32F407ZET6, CLK pin is connected with the PA5 pin of STM32F407ZET6, DATA0 pin is connected with the PA6 pin of STM32F407ZET6, VSS pin ground connection, VDD pin connects VCC3.3, VSS pin and meets VCC3.3 by electric capacity C54;Resistance R50, R52, R53, R54 mono-of pull-up resistor circuit terminates VCC3.3, and the other end is connected with PA3, PA7, PA5, PA6 pin of STM32F407ZET6 respectively;
TFT Liquid crystal screen module hardware circuit: TFT_LCD is liquid crystal display screen socket, and data pin DB1 ~ DB16 is connected with PB0 ~ PB16 pin of STM32F407ZET6 respectively, and LCD_CS pin is connected with PC9, and WR pin is connected with PC7 pin, and RS pin is connected with PC8, and RD pin is connected with PC6 pin;The GND pin ground connection of TFT_LCD, the filter circuit that T_PEN pin is consisted of R59, R60, C75 is connected with the PC1 pin of TM32F407ZET6, and MISO pin is connected with PC2, and T_CS pin is connected with PC13 pin, CLK pin is connected with PC0 pin, and MOSI pin is connected with PC3 pin;
OV2640 Camera module chip main circuit: in OV2640 chip, Y1-Y9 pin and SIO_C, SIO_D, PCLK, HREF, VSYNC, XVCLK, PWDN, RESETB pin are connected with the 2x9 socket of P8 in OV2640 camera module slot and crystal oscillating circuit;DOVDD, EVDD pin is connected with VCC2.8 network by filter capacitor C76, C77, C78, and DVDD pin is connected with VCC1.3 network by filter capacitor C85, C86;SVDD, AVDD pin is connected with VCC2.8A network by C87, C88, C89;SGND, ADNG, EGND, DOGND, DGND pin ground connection, VREFN, VREFH pin passes through electric capacity C93, C98 ground connection;
OV2640 Camera module regulated power supply chip circuit: RT9193-2.8 chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and the DC voltage after pin 5 exports voltage stabilizing is linked in VCC1.3 network;XC6219B132MR chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and pin 4 accesses VCC2.8 and VCC2.8A network by electric capacity C91, electric capacity C92 with resistance R67 by filter capacitor C101 ground connection, pin 5;
OV2640 Camera module slot and crystal oscillating circuit: crystal oscillator socket pins 2 ground connection, pin 4 connects VCC3.3 network by filter capacitor C81, and pin 3 connects OV2640 chip XVCLK pin;The 1 pin ground connection of camera module slot P8,2 pins connect VCC, 3-17 pin and are connected with PE8, PE12, PE9, PE11, PE0, PE15, PE2, PE1, PE4, PE3, PE6, PE5, PE10, PE7, PE14 pin of STM32F407ZET6 respectively;
USB Interface and voltage-stabilized power supply circuit: USB 1, USB2 are usb socket, and pin 1 meets VCC, and pin 2 meets GND, and in USB1, D-is connected by the PA11 pin of R27 with STM32F407ZET6, and D+ is connected by the PA12 pin of resistance R28 with STM32F407ZET6;In USB2, D-pin is connected by the DM pin of R32 with PL2303, and D+ is connected by the DP pin of resistance R33 with PL2303;BUTTON is switch key, pin 3,4 is connected with VCC, pin 5 is connected with the contact pin of VOUT2, and pin 2 is connected with the input pin 3 of voltage stabilizing chip AMS1117-3.3 by filter capacitor C49, C47, and the pin 2,4 of AMS1117 is received in VCC3.3 network as the deferent segment of voltage;
USB Turn serial port chip PL2303 Main circuit: the TXD pin of PL2303 chip is connected with the PA9 pin of STM32F407ZET6, and RXD pin is connected with the PA10 pin of STM32F407ZET6;DTR_N pin is connected with resistance R17, R16, and pin RTS_N is connected with resistance R19, and pin VDD_232 passes through C17 ground connection, pin GND ground connection, and VDD meets VCC5, pin VDD_3V3 by electric capacity C21 ground connection, pin GND_3V3, PLL_TEST, GND_PLL ground connection;Pin VDD_PLL, LD_MODE, TRI_MODE, VDD, RESET are connected with VCC5, and pin OSC1, OSC2 are connected with the crystal oscillating circuit having Y3, C18, C19 to constitute.
The present invention is traffic accident alarm technique system, especially a kind of automatic annunciator of highway traffic accident.Specifically a kind of traffic accident is automatically positioned, the system that record driving video data the device reported and the wireless terminal APP supporting with it are formed, it is adaptable to all kinds of vehicles.The present invention compared with prior art has the advantage that 1. fully automated operations, need not any operation after getting into an accident.2. video acquisition device is connected with central processing unit, when traffic accident occurs central processing unit can by traffic accident before the videograph of automobile be automatically credited in SD card, facilitate police's post-mordem forensics.3. along with the continuous progress of science and technology, people increase day by day for the demand of mobile phone, most people can carry with mobile phone, and by GPRS wireless network, automobile coordinate is sent on specific APP, install corresponding map on APP additional, user can be made to position rapidly traffic accident position, thus can take to be more beneficial for the action of the wounded, as reported to the police, call for an ambulance etc..
Accompanying drawing explanation
Fig. 1 is STM32 minimum system circuit diagram in the present invention;
Fig. 2 is that minimum system is powered filter circuit figure, and the most left figure is zero Europe resistance circuit, and right figure is filter-capacitor circuit;
Fig. 3 is that minimum system button cell is powered and AD power supply circuit.The most left figure is button cell power supply circuits, and right figure is AD power supply circuits;
Fig. 4 is JTAG program debugging circuit diagram;
Fig. 5 is gps antenna and data processing circuit figure;
Fig. 6 is that GPS powers and data storage circuitry figure.Upper figure is AT24C32 data storage circuitry, and figure below is GPS module power supply circuits;
Fig. 7 is MPU6050 module hardware circuit diagram.Upper figure is MPU6050 module for power supply circuit, and figure below is MPU6050 chip main circuit diagram;
Fig. 8 is SIM900A chip main circuit diagram;
Fig. 9 is SIM900A module serial communication interface circuit diagram;
Figure 10 is SIM900A module RS232/RS485 interface circuit figure;
Figure 11 is SIM900A module voltage-stabilized power supply circuit figure;
Figure 12 is SIM900A module switch and button cell power supply circuit.The most left figure is on-off circuit figure, and middle figure is button cell socket circuit figure, and right figure is button cell circuit diagram;
Figure 13 is SIM900A module contact pin pin circuitry figure;
Figure 14 is SIM card slot circuit diagram.Upper figure is SIM card slot circuit, and middle figure is SMF05C electrostatic and latch-up protection chip circuit, and figure below is SIM duty LED indicating circuit;
Figure 15 is SD card hardware circuit diagram.The most left figure is SD card slot circuit, and right figure is pin pull-up resistor circuit;
Figure 16 is TFT liquid crystal screen module hardware circuit diagram;
Figure 17 is OV2640 camera module chip main circuit diagram;
Figure 18 is OV2640 camera module regulated power supply chip circuit figure.Upper figure is voltage stabilizing chip RT9193-2.8 circuit, and figure below is voltage stabilizing chip XC6219B132MR circuit;
Figure 19 is OV2640 camera module slot and crystal oscillating circuit figure.Upper figure is 12Mhz crystal oscillating circuit, and figure below is camera module slot circuit diagram;
Figure 20 is USB interface and voltage-stabilized power supply circuit figure;
Figure 21 is that USB turns serial port chip PL2303 main circuit diagram;
Figure 22 is present procedure flow chart;
Figure 23 is present system structured flowchart.
Detailed description of the invention
nullThe present invention is by STM32 minimum system、STM32 minimum system is powered filter circuit、STM32 minimum system button cell is powered and AD power supply circuits、JTAG program debugging circuit、Gps antenna and data processing circuit、GPS powers and data storage circuitry、MPU6050 module hardware circuit、SIM900A chip main circuit、SIM900A module serial communication interface circuit、SIM900A module RS232/RS485 interface circuit、SIM900A module voltage-stabilized power supply circuit、SIM900A module switch and button cell power supply circuits、SIM900A module contact pin pin circuitry、SIM card slot circuit、SD card hardware circuit、TFT liquid crystal screen module hardware circuit、OV2640 camera module chip main circuit、OV2640 camera module regulated power supply chip circuit、OV2640 camera module slot and crystal oscillating circuit、USB interface and voltage-stabilized power supply circuit、USB turns serial port chip PL2303 main circuit and constitutes;
STM32 Minimum system: the oscillating circuit two ends that in Fig. 1,32.768Khz crystal oscillator Y2 is constituted with electric capacity C6, C9 are connected with PC14, PC15 pin of STM32F407ZET6 chip respectively;The oscillating circuit two ends that 8Mhz crystal oscillator Y1 is constituted with electric capacity C7, C8 are connected with PH0, PH1 pin of STM32F407ZET6 chip respectively;The VDD pin of STM32F407ZET6 chip is connected with 3.3V voltage port, VSS pin ground connection;
STM32 Minimum system is powered filter circuit: in Fig. 2, zero resistance one end, Europe of left figure is connected with the VCC3.3 of digital circuit, and the other end is connected with analog circuit VCC3.3M;In Fig. 2, the electric capacity of right figure is the most in parallel, and one end is connected with analog circuit VCC3.3M, other end ground connection;
STM32 Minimum system button cell power and AD Power supply circuits: in Fig. 3, in left figure button cell circuit, 1N4148 diode cathode end is connected with the VBAT pin of STM32F407ZET6 chip;Right 1 interface of figure jumper cap P2 is connected with the VREF+ of STM32F407ZET6 chip, and 2 interfaces are connected with VDD;
JTAG Program debugging circuit: Fig. 4 is that JTAG debugs circuit, for debugging routine, JTAG chip TRST pin is connected with the PB4 of STM32F407ZET6 chip, TDI pin is connected with the PA15 of STM32F407ZET6 chip, TMS pin is connected with the PA13 of STM32F407ZET6 chip, TCK pin is connected with the PA14 of STM32F407ZET6 chip, and TDO pin is connected with the PB3 of STM32F407ZET6 chip;
GPS Antenna and data processing circuit: in Fig. 5, GPS_NEO-6 chip TXD pin is connected with STM32F407ZET6 chip PB11 pin, and GPS_NEO-6 chip RXD pin is connected with STM32F407ZET6 chip PB10 pin;LED cathode is connected with GPS_NEO-6 chip TIMEPULSE pin;The circuit that antenna J2 is consisted of electric capacity C99 and inductance L3 is connected with the RFIN pin of MAX2659 chip, MAX2659 chip RFOUT pin is connected by the RF_IN pin of electric capacity C90 with GPS_NEO-6, and button cell XH414 positive pole is connected with GPS_NEO-6 chip V_BCKP pin;
GPS Power supply and data storage circuitry: the SCL interface of GPS_NEO-6 chip is connected with SDA interface with the SCL interface of AT24C32 chip in SDA interface respectively figure upper with Fig. 6, communicates for IIC.In figure below, P9 is GPS module Peripheral Interface, the input VIN pin of RT9193-33 voltage stabilizing chip is connected with 5 pins of P9,3.3V voltage after the EN pin of RT9193-33 voltage stabilizing chip connects the output pin VOUT output voltage stabilizing of VCC, RT9193-33 voltage stabilizing chip is linked in VCC3.3 network by two filter capacitors of C96, C97;
MPU6050 Module hardware circuit: if Fig. 7 is MPU6050 module hardware circuit diagram, in upper figure, U2 is 3.3V mu balanced circuit, and RT9193-33 is 3.3V linear voltage stabilization chip, and VIN pin is connected with 6 pins of P1, and VOUT pin is connected with VCC3.3 network;P1 is MPU6050 module Peripheral Interface, and IIC SDA pin is connected with STM32F407ZET6 chip PC1, and IIC SCL pin is connected with STM32F407ZET6 chip PC0 pin, and this module is connected by iic bus with STM32F407ZET6 chip;Use IIC communication protocol;
SIM900A Chip main circuit: Fig. 8 is SIM900A module main circuit diagram, and microphone interface MIC1 and MIC2 is connected by coupling electric capacity C59 ~ C71 with SIM900A chip;Wherein, MIC1 pin 1,2 is connected with the MICP pin of SIM900A, and MIC1 pin 3 is connected with the MICN pin of SIM900A, and MIC2 pin 1,2 is connected with the SPP pin of SIM900A, and MIC2 pin 3 is connected with the SPN pin of SIM900A;The minus earth of button cell BAT1, positive pole is connected with the VRTC pin of SIM900A, one end of switch KEY1 is connected with the PWRKEY of SIM900A, SMA antenna is connected with the pin RF of SIM900A by the circuit of C40, C43 and R29 composition, NET_STA1 be LED light for indicating current operating state, by resistance R31 and SIM900A NetLED pin be connected;
SIM900A Module serial communication interface circuit: Fig. 9 is serial communication circuit, and chip SP3232 pin 1,3 is connected by electric capacity C37, and pin 2,6 is respectively by electric capacity C39, C44 ground connection, and pin 4,5 is connected by electric capacity C41;Chip SP3232 pin 7,8,13,14 is connected with 8,7,3,2 pins of RS232 COM respectively;Pin 15 ground connection of chip SP3232, pin 16 is connected by filter capacitor C36 and VCC BAT;Chip SP3232 pin 9 is connected by SIM900A chip main circuit pin RTS in resistance R48 with Fig. 8;Chip SP3232 pin 10 is connected by SIM900A chip main circuit pin CTS in resistance R47 with Fig. 8;Chip SP3232 pin 11,12 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip in Fig. 1 respectively;
SIM900A Module RS232/RS485 Interface circuit: Figure 10 is SIM900A module RS232/RS485 interface circuit figure, P10 is contact pin, pin 1 is connected by the TXD pin of transistor circuit S8050 and SIM900A chip main circuit, pin 2 is connected with the RXD pin of SIM900A chip main circuit by diode circuit, pin 3,4 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip in Fig. 1, and pin 5,6 is connected by the DBG TXD pin of resistance R44 with R45 and SIM900A chip main circuit and DBG RXD pin respectively;
SIM900A Module voltage-stabilized power supply circuit: Figure 11 is SIM900A module voltage-stabilized power supply circuit figure.The circuit that in figure, the pin 1 of voltage stabilizing chip MP2303 is consisted of electric capacity C52 inductance L1 and diode D8 with pin 3 is connected, pin 2 is connected by electric capacity C50 and VCC IN network, pin 4 is unsettled, the bleeder circuit midpoint that pin 5 is constituted with resistance R56, resistance R57 is connected, pin 6 is by electric capacity C55 resistance R55 ground connection, and the bleeder circuit midpoint that pin 7 is constituted with R49, R51 is connected;Pin 8 is by electric capacity 8 ground connection;Circular pin plug DC_IN pin 2,3 ground connection, pin 1 accesses VCC INX network by diode D7;
SIM900A Module switch and button cell power supply circuits: Figure 12 is SIM900A module switch and button cell power supply circuit.K2 is key-press circuit for switch, and when switch is pressed, the pin 2 of K2 is connected with pin 3, circuit ON.P7 is contact pin, and pin 1 is connected with VCC BAT network, pin 2 ground connection;In right figure, D9 is Zener diode, and negative pole meets VCC BAT, plus earth, and filter capacitor C69 mono-terminates VCC BAT, one end ground connection;
SIM900A Module contact pin pin circuitry: Figure 13 is SIM900A module contact pin pin circuitry figure.Wherein P3, P4, P5 are contact pin, and the network in diagram is connected;
SIM Card slot circuit: Figure 14 is SIM card slot circuit diagram.U9 is that SIM card slot pin 1 is connected with the SIM_DATA pin of SIM900A chip;Pin 2 is unsettled;Pin 3 ground connection;Pin 4 is connected with the SIM CLK pin of SIM900A chip, and pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;U10 is SMF05C electrostatic and latch-up protection chip; pin 1 is connected with the SIM_DATA pin of SIM900A chip; pin 2 is unsettled; pin 3 ground connection; pin 4 is connected with the SIM CLK pin of SIM900A chip; pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;
SD Card hardware circuit: Figure 15 is SD card hardware circuit diagram.In figure, left figure is SD card slot circuit, the CD/DATA3 pin of SD slot is connected with the PA3 pin of STM32F407ZET6, CMD pin is connected with the PA7 pin of STM32F407ZET6, CLK pin is connected with the PA5 pin of STM32F407ZET6, DATA0 pin is connected with the PA6 pin of STM32F407ZET6, VSS pin ground connection, VDD pin connects VCC3.3, VSS pin and meets VCC3.3 by electric capacity C54;Right figure is the pull-up resistor circuit of the pin with STM32F407ZET6, and its resistance R50, R52, R53, R54 mono-terminates VCC3.3, and the other end is connected with PA3, PA7, PA5, PA6 pin of STM32F407ZET6 respectively;
TFT Liquid crystal screen module hardware circuit: Figure 16 is TFT liquid crystal screen module hardware circuit diagram.In figure, TFT_LCD is liquid crystal display screen socket, and data pin DB1 ~ DB16 is connected with PB0 ~ PB16 pin of STM32F407ZET6 respectively, and LCD_CS pin is connected with PC9, and WR pin is connected with PC7 pin, and RS pin is connected with PC8, and RD pin is connected with PC6 pin;The GND pin ground connection of TFT_LCD, the filter circuit that T_PEN pin is consisted of R59, R60, C75 is connected with the PC1 pin of TM32F407ZET6, and MISO pin is connected with PC2, and T_CS pin is connected with PC13 pin, CLK pin is connected with PC0 pin, and MOSI pin is connected with PC3 pin;
OV2640 Camera module chip main circuit: Figure 17 is OV2640 camera module chip main circuit diagram.In OV2640 chip, Y1-Y9 pin and SIO_C, SIO_D, PCLK, HREF, VSYNC, XVCLK, PWDN, RESETB pin are connected with the 2x9 socket of P8 in OV2640 camera module slot in Figure 19 and crystal oscillating circuit;DOVDD, EVDD pin is connected with VCC2.8 network by filter capacitor C76, C77, C78, and DVDD pin is connected with VCC1.3 network by filter capacitor C85, C86;SVDD, AVDD pin is connected with VCC2.8A network by C87, C88, C89;SGND, ADNG, EGND, DOGND, DGND pin ground connection, VREFN, VREFH pin passes through electric capacity C93, C98 ground connection;
OV2640 Camera module regulated power supply chip circuit: Figure 18 is OV2640 camera module regulated power supply chip circuit figure, and in upper figure, RT9193-2.8 chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and the DC voltage after pin 5 exports voltage stabilizing is linked in VCC1.3 network;In figure below, XC6219B132MR chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and pin 4 accesses VCC2.8 and VCC2.8A network by electric capacity C91, electric capacity C92 with resistance R67 by filter capacitor C101 ground connection, pin 5;
OV2640 Camera module slot and crystal oscillating circuit: Figure 19 is OV2640 camera module slot and crystal oscillating circuit figure.Upper figure is 12MHZ crystal oscillator socket circuit, crystal oscillator socket pins 2 ground connection, and pin 4 connects VCC3.3 network by filter capacitor C81, and pin 3 connects OV2640 chip XVCLK pin;Figure below is camera module slot circuit, the 1 pin ground connection of camera module slot P8,2 pins connect VCC, 3-17 pin and are connected with PE8, PE12, PE9, PE11, PE0, PE15, PE2, PE1, PE4, PE3, PE6, PE5, PE10, PE7, PE14 pin of STM32F407ZET6 respectively;
USB Interface and voltage-stabilized power supply circuit: Figure 20 is USB interface and voltage-stabilized power supply circuit figure.USB 1, USB2 are usb socket, and pin 1 meets VCC, and pin 2 meets GND, and in USB1, D-is connected by the PA11 pin of R27 with STM32F407ZET6, and D+ is connected by the PA12 pin of resistance R28 with STM32F407ZET6;In USB2, D-pin is connected by the DM pin of R32 with PL2303, and D+ is connected by the DP pin of resistance R33 with PL2303;BUTTON is switch key, pin 3,4 is connected with VCC, pin 5 is connected with the contact pin of VOUT2, and pin 2 is connected with the input pin 3 of voltage stabilizing chip AMS1117-3.3 by filter capacitor C49, C47, and the pin 2,4 of AMS1117 is received in VCC3.3 network as the deferent segment of voltage;
USB Turn serial port chip PL2303 Main circuit: Figure 21 is that USB turns serial port chip PL2303 main circuit diagram.In figure, the TXD pin of PL2303 chip is connected with the PA9 pin of STM32F407ZET6, and RXD pin is connected with the PA10 pin of STM32F407ZET6;DTR_N pin is connected with resistance R17, R16, and pin RTS_N is connected with resistance R19, and pin VDD_232 passes through C17 ground connection, pin GND ground connection, and VDD meets VCC5, pin VDD_3V3 by electric capacity C21 ground connection, pin GND_3V3, PLL_TEST, GND_PLL ground connection;Pin VDD_PLL, LD_MODE, TRI_MODE, VDD, RESET are connected with VCC5, and pin OSC1, OSC2 are connected with the crystal oscillating circuit having Y3, C18, C19 to constitute.
Below in conjunction with the accompanying drawings the present invention is described in further detail:
The present invention includes for detecting whether the acceleration module that gets into an accident, the central processing unit received and process data, the photographic head being connected with central processing unit, the SD memory module being connected with central processing unit, the GPS module of the energy real time record automobile position being connected with central processing unit, the GPRS module for wirelessly transmitting data being connected with central processing unit, and give the power module of above-mentioned module for power supply, specific APP mobile terminal.
Operation principle: personal information and information of vehicles are passed through key-press input by user, and bind specific mobile phone by GPRS.After automobile starting, this device brings into operation, and acceleration module is at the acceleration of monitoring automobile in real time.Occur once when the traffic accident on highway, i.e. the acceleration of automobile has exceeded the threshold value of regulation, then central processing unit can automatically control SD storage facilities, the real time data of photographic head is stored in SD card.Meanwhile, central processing unit also can make GPS, by GPRS, coordinate current for automobile be sent to specific APP, so use APP people its can know, in the very first time, the position that traffic accident occurs, so that the probability that the wounded is succoured is greatly increased.
As Figure 23 illustrates, the present invention is made up of following components:
STM32 minimum systematic module, for communicating and real-time processing data with peripheral module.Acceleration analysis module, for detection vehicle 3-axis acceleration in real time.GPS module, for detecting longitude and the latitude that vehicle is currently locked in.SD card module
(1) acceleration module MPU6050 of pickup is measured in real time
MPU6050 internal integration 3 axle gyroscopes and 3 axle acceleration sensors, and containing the 2nd II C interface, can be used for connecting external magnetic force sensor, and utilize the digital moving processor hardware accelerating engine carried, by main II C interface, merge calculation data to 9 axles that application end output is complete, realize attitude algorithm the most very easily, reduce the motion process computing load to operating system, greatly reduce development difficulty simultaneously.
(2) store the SD memory module of video, facilitate the police to collect evidence.
(3) the GPS module U-BLOX NEO-6M of the real time measure car orientation.
Module core uses the NEO-V23 module of UBLOX company, compact, excellent performance.There are 50 passages tracking sensitivity and reach-161dBm, measure output frequency and reach as high as 5Hz.Module carries ceramic antenna and MAXIM company 20.5dB high-gain LNA chip, and satellite searching ability is strong, and carries Chargeable backup battery, can keep almanac data with power down.Module can carry out various parameter setting by serial ports, is saved in EEPROM, easy to use.
(4) the car orientation Data Concurrent of the data and GPS module that receive the storage of SD card gives the central processing unit STM32F103RCT6 of GPRS wireless communication module;
Processor is with STM32F103RCT6 chip for multiple hardwares resources such as the supporting 2.4 cun of colored TFT panel modules of core, onboard UART, USB, ADC voltage-regulation, button, jtag interface, color screen interface, running lamp, SD card interface, IO outlets.
(5) receive central processing unit order send the data to specific APP by GPRS module SIM900A;
SIM900A is the technical grade double frequency GSM/GPRS module of SIMCOM company, and its working frequency range is double frequency: 900/1800Mhz, can realize voice, SMS(note, multimedia message with low-power consumption), data and the transmission of facsimile message.It supports RS232 serial ports and LVTTL serial ports (i.e. supporting 3.3V/5V system), and band hardware flow controls, support the ultra-wide working range of 5V ~ 24V so that this module can be attached with STM32 series of products very easily, thus stop work and include voice, note and GORS data-transformation facility.
(6) provide the power module driven for above-mentioned module, himself does not only have rechargeable battery, moreover it is possible to is connected with automobile power source and powers to its cells charging and whole circuit;
(7) sequence of operations such as the specific APP of the mobile terminals such as mobile phone, energy real-time reception GPRS signal, and embedded commercial map, it is possible to by traffic accident position display out, facilitate user of service to report to the police, call for an ambulance it are installed on.
See Fig. 1, shown in Figure 20 and Figure 21, high speed traffic accident automatic alarm system based on STM32 uses the STM32F407ZET6 of Yi Fa company as main control chip, pin PA9 with PA10 on main control chip is connected with TXD and the RXD pin of serial ports download circuit PL2303, is used as download program and USB RS 232 communication protocol.USB interface and VOUT1, VOUT2 interface can input external voltage supply arrangement and run, the external voltage scope accessed is 5V ~ 12V, be converted to stable 3.3V voltage supply host processor chip by voltage stabilizing chip AMS1117 and external equipment runs, electric capacity C48, C49 can filter the low-frequency noise of input and output as filter capacitor, playing high-pass filtering effect, C46, C47 can filter the high-frequency noise of input and output as filter capacitor, play low-pass filtering effect.Fig. 2,3 being the line related circuit of STM32F407ZET6, in Fig. 2, resistance is zero Europe resistance, in order to prevent high-frequency noise that digital circuit brings from analog circuit bringing the separately design of impact, analog circuit power supply and digital circuit power source.The left figure of Fig. 3 is button cell power supply circuits, uses diode to carry out amplitude limit, keeps data not lose for main control chip under power-down conditions, and right figure is that jumper cap connects circuit, is used for connecting AD port reference voltage pin and VDD supply voltage pin.Fig. 4 is that JTAG debugs circuit, and for debugging routine, JTAG chip TRST pin is connected with primary processor PB4, and TDI pin is connected with PA15, and TMS pin is connected with PA13, and TCK pin is connected with PA14, and TDO pin is connected with PB3.
Such as Fig. 5,6 show GPS module hardware circuit diagram, in Fig. 5, P9 is GPS module Peripheral Interface, GPS TXD pin is connected with main control chip PB11 pin, GPS RXD pin is connected with main control chip PB10 pin, and GPS module uses serial communication mode to communicate with main control chip, and in GPS module circuit, J2 is signal transmitting and receiving antenna, communicating with satellite for GPS module, XH414 is that button cell prevents loss of data after power down.In Fig. 6,24C32 chip is EEPROM storage chip, is used for storing GPS configuration parameter, prevents loss of data after power down.
If Fig. 7 is MPU6050 module hardware circuit diagram, U2 is 3.3V mu balanced circuit, and RT9193-33 is 3.3V linear voltage stabilization chip.P1 is MPU6050 module Peripheral Interface, and IIC SDA pin is connected with main control chip PC1, and IIC SCL pin is connected with main control chip PC0 pin, and this module is connected by iic bus with main control chip, uses IIC communication protocol.
Such as Fig. 8,9,10,11,12,13,14 is SIM900A module hardware circuit diagram, and Fig. 8 is SIM900A chip main circuit, and NET_STA1 is that LED light is for indicating current operating state.In Figure 10, P10 is SIM900A module RS232 serial communication interface, and USART TX is connected with main control chip PA3 pin, and USART RX is connected with main control chip PA2 pin, and this module uses serial communication mode to communicate with main control chip.In Figure 11, MP2303 is 3.3V linear voltage stabilization chip, and output 3.3V DC voltage supplies the work of whole module, and DC_IN is that circular plug can connect the external power source input as MP2303.In Figure 12, left figure is on and off switch, and middle figure and right figure are that button cell is powered interlock circuit, and P7 is cell voltage output interface, and D9 is that Zener diode can limit input voltage and prevents battery reversal connection, electric capacity C69 can be filtered cell voltage.Figure 13 is SIM900A module contact pin pin, communicates with SIM900A for external equipment.Figure 14 is SIM card slot circuit.
Figure 15 is SD card module hardware circuit diagram, in figure, SD_CARD is the deck of SD card, and wherein CD/DATA3 pin is connected with main control chip PA3 pin, and CMD pin is connected with main control chip PA7 pin, CLK pin is connected with main control chip PA5 pin, and DATA0 pin is connected with main control chip PA6 pin.SD card and main control chip use SPI communication agreement to communicate.
Figure 16 is TFT liquid crystal screen module hardware circuit diagram, in figure, TFT_LCD is TFT liquid crystal display screen socket, DB1 ~ DB16 pin therein is connected with PB0 ~ PB15 pin of main control chip as parallel data transmission pin, LCD CS pin is connected with main control chip PC9 pin, LCD WR pin is connected with main control chip PC7 pin, LCD RS pin is connected with main control chip PC8 pin, LCD RD pin is connected with main control chip PC6 pin, BL pin is connected with main control chip PC10 pin, and above-mentioned five pins are the control pin of TFT.CLK pin is connected with main control chip PC0 pin, MISO pin is connected with main control chip PC2 pin, MOSI pin is connected with main control chip PC3 pin, T_CS pin is connected with main control chip PC13 pin, the filter circuit that T_PEN pin is consisted of resistance R59, R60 and electric capacity C75 is connected with main control chip PC1.TFT liquid crystal display screen uses SPI communication agreement to touch site AD sample information to main control chip feedback by above five pins.
Figure 17,18,19 is OV2640 camera module hardware circuit diagram, and Figure 17 is image sensor chip OV2640 peripheral circuit, and Figure 18 is linear voltage-stabilizing circuit, provides 1.3V and 2.8V voltage supply OV2640 chip normally to work respectively.In Figure 19, P8 is OV2640 photographic head Peripheral Interface, and OV D0 ~ OV D7 pin is connected with main control chip PE0 ~ PE7 pin respectively as photographic head parallel data bus line, OV SCL pin is connected with main control chip PE8 pin, OV SDA pin is connected with main control chip PE9 pin, OV PCLK pin is connected with main control chip PE10 pin, OV HREF pin is connected with main control chip PE11 pin, OV VSYNC pin is connected with main control chip PE12 pin, OV PWDN pin is connected with main control chip PE14 pin, OV RESET pin is connected with main control chip PE15 pin.Above seven pins are as the control pin of photographic head.Y4 is the active crystal oscillator of 12Mhz, and the XVCLK as OV2640 inputs.
According to Figure 22, the work process of high speed traffic accident automatic alarm system of based on STM32 is exemplified below: after automatic alarm system powers on, the each module of system starts to initialize, liquid crystal touch screen display dialogue after initialization, prompting driver inputs personal information and APP receiving terminal IP address, driver determines by clicking on after liquid crystal touch screen input relevant information, and automatic alarm system formally brings into operation.After vehicle launch properly functioning, automatic alarm system gathers current vehicle location information by GPS, current vehicle acceleration and attitude information is gathered by MPU6050, meanwhile OV2640 camera module collection driving video, and being stored in SD card by main control chip, now system does not send any information to APP client.When traffic accident occurs, MPU6050 module collects current acceleration and exceedes the acceleration rate threshold that program is preset, or when vehicle occurs to overturn, the attitude information that MPU6050 module collects resolves through main control chip and judges that vehicle overturns, at this moment main control chip communicates with SIM900A module, (information comprises driver personal information to APP client to send traffic accident information by GPRS, and current scene of an automobile accident position), after APP client reception information, receiving terminal client takes to take action accordingly and driver launches rescue.
In the present invention several part composition:
(1) acceleration module MPU6050 of pickup is measured in real time
MPU6050 internal integration 3 axle gyroscopes and 3 axle acceleration sensors, and containing the 2nd II C interface, can be used for connecting external magnetic force sensor, and utilize the digital moving processor hardware accelerating engine carried, by main II C interface, merge calculation data to 9 axles that application end output is complete, realize attitude algorithm the most very easily, reduce the motion process computing load to operating system, greatly reduce development difficulty simultaneously.
(2) store the SD memory module of video, facilitate the police to collect evidence.
(3) the GPS module U-BLOX NEO-6M of the real time measure car orientation.
Module core uses the NEO-V23 module of UBLOX company, compact, excellent performance.There are 50 passages tracking sensitivity and reach-161dBm, measure output frequency and reach as high as 5Hz.Module carries ceramic antenna and MAXIM company 20.5dB high-gain LNA chip, and satellite searching ability is strong, and carries Chargeable backup battery, can keep almanac data with power down.Module can carry out various parameter setting by serial ports, is saved in EEPROM, easy to use.
(4) the car orientation Data Concurrent of the data and GPS module that receive the storage of SD card gives the central processing unit STM32F103RCT6 of GPRS wireless communication module;
Processor is with STM32F103RCT6 chip for multiple hardwares resources such as the supporting 2.4 cun of colored TFT panel modules of core, onboard UART, USB, ADC voltage-regulation, button, jtag interface, color screen interface, running lamp, SD card interface, IO outlets.
(5) receive central processing unit order send the data to specific APP by GPRS module SIM900A;
SIM900A is the technical grade double frequency GSM/GPRS module of SIMCOM company, and its working frequency range is double frequency: 900/1800Mhz, can realize voice, SMS(note, multimedia message with low-power consumption), data and the transmission of facsimile message.It supports RS232 serial ports and LVTTL serial ports (i.e. supporting 3.3V/5V system), and band hardware flow controls, support the ultra-wide working range of 5V ~ 24V so that this module can be attached with STM32 series of products very easily, thus stop work and include voice, note and GORS data-transformation facility.
(6) provide the power module driven for above-mentioned module, himself does not only have rechargeable battery, moreover it is possible to is connected with automobile power source and powers to its cells charging and whole circuit.
(7) sequence of operations such as the specific APP of the mobile terminals such as mobile phone, energy real-time reception GPRS signal, and embedded commercial map, it is possible to by traffic accident position display out, facilitate user of service to report to the police, call for an ambulance it are installed on.

Claims (1)

  1. null1. a high speed traffic accident automatic alarm system based on STM32,It is characterized in that: be by STM32 minimum system、STM32 minimum system is powered filter circuit、STM32 minimum system button cell is powered and AD power supply circuits、JTAG program debugging circuit、Gps antenna and data processing circuit、GPS powers and data storage circuitry、MPU6050 module hardware circuit、SIM900A chip main circuit、SIM900A module serial communication interface circuit、SIM900A module RS232/RS485 interface circuit、SIM900A module voltage-stabilized power supply circuit、SIM900A module switch and button cell power supply circuits、SIM900A module contact pin pin circuitry、SIM card slot circuit、SD card hardware circuit、TFT liquid crystal screen module hardware circuit、OV2640 camera module chip main circuit、OV2640 camera module regulated power supply chip circuit、OV2640 camera module slot and crystal oscillating circuit、USB interface and voltage-stabilized power supply circuit、USB turns serial port chip PL2303 main circuit and constitutes;
    STM32 Minimum system: the oscillating circuit two ends that crystal oscillator Y2 is constituted with electric capacity C6, C9 are connected with PC14, PC15 pin of STM32F407ZET6 chip respectively;The oscillating circuit two ends that crystal oscillator Y1 is constituted with electric capacity C7, C8 are connected with PH0, PH1 pin of STM32F407ZET6 chip respectively;The VDD pin of STM32F407ZET6 chip is connected with 3.3V voltage port, VSS pin ground connection;
    STM32 Minimum system is powered filter circuit: zero resistance one end, Europe is connected with the VCC3.3 of digital circuit, and the other end is connected with analog circuit VCC3.3M;Electric capacity is the most in parallel, and one end is connected with analog circuit VCC3.3M, other end ground connection;
    STM32 Minimum system button cell is powered and AD Power supply circuits: 1N4148 diode cathode end is connected with the VBAT pin of STM32F407ZET6 chip;1 interface of jumper cap P2 is connected with the VREF+ of STM32F407ZET6 chip, and 2 interfaces are connected with VDD;
    JTAG Program debugging circuit: JTAG chip TRST pin is connected with the PB4 of STM32F407ZET6 chip, TDI pin is connected with the PA15 of STM32F407ZET6 chip, TMS pin is connected with the PA13 of STM32F407ZET6 chip, TCK pin is connected with the PA14 of STM32F407ZET6 chip, and TDO pin is connected with the PB3 of STM32F407ZET6 chip;
    GPS Antenna and data processing circuit: GPS_NEO-6 chip TXD pin is connected with STM32F407ZET6 chip PB11 pin, and GPS_NEO-6 chip RXD pin is connected with STM32F407ZET6 chip PB10 pin;LED cathode is connected with GPS_NEO-6 chip TIMEPULSE pin;The circuit that antenna J2 is consisted of electric capacity C99 and inductance L3 is connected with the RFIN pin of MAX2659 chip, MAX2659 chip RFOUT pin is connected by the RF_IN pin of electric capacity C90 with GPS_NEO-6, and button cell XH414 positive pole is connected with GPS_NEO-6 chip V_BCKP pin;
    GPS Power supply and data storage circuitry: the SCL interface of GPS_NEO-6 chip is connected with SDA interface with the SCL interface of AT24C32 chip respectively with SDA interface;P9 is GPS module Peripheral Interface, the input VIN pin of RT9193-33 voltage stabilizing chip is connected with 5 pins of P9,3.3V voltage after the EN pin of RT9193-33 voltage stabilizing chip connects the output pin VOUT output voltage stabilizing of VCC, RT9193-33 voltage stabilizing chip is linked in VCC3.3 network by two filter capacitors of C96, C97;
    MPU6050 Module hardware circuit: U2 is 3.3V mu balanced circuit, and RT9193-33 is 3.3V linear voltage stabilization chip, and VIN pin is connected with 6 pins of P1, and VOUT pin is connected with VCC3.3 network;P1 is MPU6050 module Peripheral Interface, and IIC SDA pin is connected with STM32F407ZET6 chip PC1, and IIC SCL pin is connected with STM32F407ZET6 chip PC0 pin, and this module is connected by iic bus with STM32F407ZET6 chip;
    SIM900A Chip main circuit: microphone interface MIC1 and MIC2 is connected by coupling electric capacity C59 ~ C71 with SIM900A chip;MIC1 pin 1,2 is connected with the MICP pin of SIM900A, and MIC1 pin 3 is connected with the MICN pin of SIM900A, and MIC2 pin 1,2 is connected with the SPP pin of SIM900A, and MIC2 pin 3 is connected with the SPN pin of SIM900A;The minus earth of button cell BAT1, positive pole is connected with the VRTC pin of SIM900A, one end of switch KEY1 is connected with the PWRKEY of SIM900A, SMA antenna is connected with the pin RF of SIM900A by the circuit of C40, C43 and R29 composition, and NET_STA1 is connected by the netLED pin of resistance R31 with SIM900A;
    SIM900A Module serial communication interface circuit: chip SP3232 pin 1,3 is connected by electric capacity C37, and pin 2,6 is respectively by electric capacity C39, C44 ground connection, and pin 4,5 is connected by electric capacity C41;Chip SP3232 pin 7,8,13,14 is connected with 8,7,3,2 pins of RS232 COM respectively;Pin 15 ground connection of chip SP3232, pin 16 is connected by filter capacitor C36 and VCC BAT;Chip SP3232 pin 9 is connected by resistance R48 and SIM900A chip main circuit pin RTS;Chip SP3232 pin 10 is connected by resistance R47 and SIM900A chip main circuit pin CTS;Chip SP3232 pin 11,12 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip respectively;
    SIM900A Module RS232/RS485 Interface circuit: P10 is contact pin, pin 1 is connected by the TXD pin of transistor circuit S8050 and SIM900A chip main circuit, pin 2 is connected with the RXD pin of SIM900A chip main circuit by diode circuit, pin 3,4 is connected with pin PA2, PA3 pin of STM32F407ZET6 chip, and pin 5,6 is connected by the DBG TXD pin of resistance R44 with R45 and SIM900A chip main circuit and DBG RXD pin respectively;
    SIM900A Module voltage-stabilized power supply circuit: the circuit that the pin 1 of voltage stabilizing chip MP2303 is consisted of electric capacity C52 inductance L1 and diode D8 with pin 3 is connected, pin 2 is connected by electric capacity C50 and VCC IN network, pin 4 is unsettled, the bleeder circuit midpoint that pin 5 is constituted with resistance R56, resistance R57 is connected, pin 6 is by electric capacity C55 resistance R55 ground connection, and the bleeder circuit midpoint that pin 7 is constituted with R49, R51 is connected;Pin 8 is by electric capacity 8 ground connection;Circular pin plug DC_IN pin 2,3 ground connection, pin 1 accesses VCC INX network by diode D7;
    SIM900A Module switch and button cell power supply circuits: K2 is key-press circuit for switch, and the pin 2 of K2 is connected with pin 3, and P7 is contact pin, and pin 1 is connected with VCC BAT network, pin 2 ground connection;D9 is Zener diode, and negative pole meets VCC BAT, plus earth, and filter capacitor C69 mono-terminates VCC BAT, one end ground connection;
    SIM900A Module contact pin pin circuitry: P3, P4, P5 are contact pin, are connected respectively at network;
    SIM Card slot circuit: U9 is that SIM card slot pin 1 is connected with the SIM_DATA pin of SIM900A chip;Pin 2 is unsettled;Pin 3 ground connection;Pin 4 is connected with the SIM CLK pin of SIM900A chip, and pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;U10 is SMF05C electrostatic and latch-up protection chip; pin 1 is connected with the SIM_DATA pin of SIM900A chip; pin 2 is unsettled; pin 3 ground connection; pin 4 is connected with the SIM CLK pin of SIM900A chip; pin 5 is connected with the SIM RST pin of SIM900A, and pin 6 is connected with the SIM VDD of SIM900A;
    SD Card hardware circuit: the CD/DATA3 pin of SD slot is connected with the PA3 pin of STM32F407ZET6, CMD pin is connected with the PA7 pin of STM32F407ZET6, CLK pin is connected with the PA5 pin of STM32F407ZET6, DATA0 pin is connected with the PA6 pin of STM32F407ZET6, VSS pin ground connection, VDD pin connects VCC3.3, VSS pin and meets VCC3.3 by electric capacity C54;Resistance R50, R52, R53, R54 mono-of pull-up resistor circuit terminates VCC3.3, and the other end is connected with PA3, PA7, PA5, PA6 pin of STM32F407ZET6 respectively;
    TFT Liquid crystal screen module hardware circuit: TFT_LCD is liquid crystal display screen socket, and data pin DB1 ~ DB16 is connected with PB0 ~ PB16 pin of STM32F407ZET6 respectively, and LCD_CS pin is connected with PC9, and WR pin is connected with PC7 pin, and RS pin is connected with PC8, and RD pin is connected with PC6 pin;The GND pin ground connection of TFT_LCD, the filter circuit that T_PEN pin is consisted of R59, R60, C75 is connected with the PC1 pin of TM32F407ZET6, and MISO pin is connected with PC2, and T_CS pin is connected with PC13 pin, CLK pin is connected with PC0 pin, and MOSI pin is connected with PC3 pin;
    OV2640 Camera module chip main circuit: in OV2640 chip, Y1-Y9 pin and SIO_C, SIO_D, PCLK, HREF, VSYNC, XVCLK, PWDN, RESETB pin are connected with the 2x9 socket of P8 in OV2640 camera module slot and crystal oscillating circuit;DOVDD, EVDD pin is connected with VCC2.8 network by filter capacitor C76, C77, C78, and DVDD pin is connected with VCC1.3 network by filter capacitor C85, C86;SVDD, AVDD pin is connected with VCC2.8A network by C87, C88, C89;SGND, ADNG, EGND, DOGND, DGND pin ground connection, VREFN, VREFH pin passes through electric capacity C93, C98 ground connection;
    OV2640 Camera module regulated power supply chip circuit: RT9193-2.8 chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and the DC voltage after pin 5 exports voltage stabilizing is linked in VCC1.3 network;XC6219B132MR chip pin 1,3 connects VCC3.3 network, pin 2 ground connection, and pin 4 accesses VCC2.8 and VCC2.8A network by electric capacity C91, electric capacity C92 with resistance R67 by filter capacitor C101 ground connection, pin 5;
    OV2640 Camera module slot and crystal oscillating circuit: crystal oscillator socket pins 2 ground connection, pin 4 connects VCC3.3 network by filter capacitor C81, and pin 3 connects OV2640 chip XVCLK pin;The 1 pin ground connection of camera module slot P8,2 pins connect VCC, 3-17 pin and are connected with PE8, PE12, PE9, PE11, PE0, PE15, PE2, PE1, PE4, PE3, PE6, PE5, PE10, PE7, PE14 pin of STM32F407ZET6 respectively;
    USB Interface and voltage-stabilized power supply circuit: USB 1, USB2 are usb socket, and pin 1 meets VCC, and pin 2 meets GND, and in USB1, D-is connected by the PA11 pin of R27 with STM32F407ZET6, and D+ is connected by the PA12 pin of resistance R28 with STM32F407ZET6;In USB2, D-pin is connected by the DM pin of R32 with PL2303, and D+ is connected by the DP pin of resistance R33 with PL2303;BUTTON is switch key, pin 3,4 is connected with VCC, pin 5 is connected with the contact pin of VOUT2, and pin 2 is connected with the input pin 3 of voltage stabilizing chip AMS1117-3.3 by filter capacitor C49, C47, and the pin 2,4 of AMS1117 is received in VCC3.3 network as the deferent segment of voltage;
    USB Turn serial port chip PL2303 Main circuit: the TXD pin of PL2303 chip is connected with the PA9 pin of STM32F407ZET6, and RXD pin is connected with the PA10 pin of STM32F407ZET6;DTR_N pin is connected with resistance R17, R16, and pin RTS_N is connected with resistance R19, and pin VDD_232 passes through C17 ground connection, pin GND ground connection, and VDD meets VCC5, pin VDD_3V3 by electric capacity C21 ground connection, pin GND_3V3, PLL_TEST, GND_PLL ground connection;Pin VDD_PLL, LD_MODE, TRI_MODE, VDD, RESET are connected with VCC5, and pin OSC1, OSC2 are connected with the crystal oscillating circuit having Y3, C18, C19 to constitute.
CN201610291166.2A 2016-05-05 2016-05-05 High speed traffic accident automatic alarm system based on STM32 Active CN105946769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610291166.2A CN105946769B (en) 2016-05-05 2016-05-05 High speed traffic accident automatic alarm system based on STM32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610291166.2A CN105946769B (en) 2016-05-05 2016-05-05 High speed traffic accident automatic alarm system based on STM32

Publications (2)

Publication Number Publication Date
CN105946769A true CN105946769A (en) 2016-09-21
CN105946769B CN105946769B (en) 2017-11-10

Family

ID=56913861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610291166.2A Active CN105946769B (en) 2016-05-05 2016-05-05 High speed traffic accident automatic alarm system based on STM32

Country Status (1)

Country Link
CN (1) CN105946769B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108257419A (en) * 2017-12-18 2018-07-06 昆明理工大学 A kind of vehicle on highway failure reminds embedded equipment in real time
CN109738668A (en) * 2019-01-11 2019-05-10 大连民族大学 A kind of acceleration detection system and method based on STM32

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008049718A (en) * 2006-08-22 2008-03-06 Toyota Motor Corp Occupant crash protection device for vehicle
CN103021125A (en) * 2012-11-29 2013-04-03 浙江吉利汽车研究院有限公司杭州分公司 Automobile collision automatic alarm system
CN103886727A (en) * 2013-11-29 2014-06-25 南昌大学 Vehicle-mounted fatal traffic accident automatic alarm and antitheft system
US20140187191A1 (en) * 2010-10-19 2014-07-03 Guardity Technologies, Inc. Detecting a transport emergency event and directly enabling emergency services
CN203876698U (en) * 2014-06-05 2014-10-15 吉林大学 Automobile accident help-calling system
CN205836750U (en) * 2016-05-05 2016-12-28 吉林大学 High speed traffic accident automatic alarm system based on STM32

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008049718A (en) * 2006-08-22 2008-03-06 Toyota Motor Corp Occupant crash protection device for vehicle
US20140187191A1 (en) * 2010-10-19 2014-07-03 Guardity Technologies, Inc. Detecting a transport emergency event and directly enabling emergency services
CN103021125A (en) * 2012-11-29 2013-04-03 浙江吉利汽车研究院有限公司杭州分公司 Automobile collision automatic alarm system
CN103886727A (en) * 2013-11-29 2014-06-25 南昌大学 Vehicle-mounted fatal traffic accident automatic alarm and antitheft system
CN203876698U (en) * 2014-06-05 2014-10-15 吉林大学 Automobile accident help-calling system
CN205836750U (en) * 2016-05-05 2016-12-28 吉林大学 High speed traffic accident automatic alarm system based on STM32

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龙永: "基于STM32的车辆遇险远程报警系统设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108257419A (en) * 2017-12-18 2018-07-06 昆明理工大学 A kind of vehicle on highway failure reminds embedded equipment in real time
CN109738668A (en) * 2019-01-11 2019-05-10 大连民族大学 A kind of acceleration detection system and method based on STM32

Also Published As

Publication number Publication date
CN105946769B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN201824950U (en) Automobile safe running anti-collision system
CN204821470U (en) Locomotive allies oneself with alert system that drives
CN203444535U (en) Intelligent vehicle monitoring system
CN205890710U (en) Multi -function vehicle carries intelligent rearview mirror system
CN101964120A (en) Low-carbon intelligent automobile driving recorder
CN105472011A (en) Intelligent luggage system based on the Internet of things technology
CN205836750U (en) High speed traffic accident automatic alarm system based on STM32
CN206155295U (en) Vehicle operation warning device
Tasneem et al. Affordable black box: a smart accident detection system for cars
CN105946769A (en) High-speed automatic traffic accident alarm system based on STM32
CN106314609A (en) Intelligent bicycle system and method
CN206115164U (en) Intelligence location wrist -watch
CN203047163U (en) Anti-theft device for vehicle
CN203397452U (en) Multipurpose moveable antitheft device
CN103273881A (en) Large vehicle right-turning accident prevention auxiliary system
CN202975022U (en) Alcohol detector
CN202512641U (en) Multifunctional vehicle-mounted terminal of monitoring system for dangerous goods transport vehicles
CN105701880A (en) Real-time vehicle traveling state recording device
CN102759737A (en) Big Dipper satellite locating navigation vehicle-mounted terminal
CN202138303U (en) Rearview mirror navigator with monitoring function
CN106183985B (en) The method and apparatus that mobile terminal is used with caution in warning vehicle driver
CN205451208U (en) Bicycle is with equipment of riding
CN206249554U (en) A kind of police comprehensive traffic patrol law enforcement terminal
CN211786038U (en) Anti-dismantling circuit structure of intelligent sharing terminal
CN207984762U (en) Vehicle vehicle condition records system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant