CN107656088A - A kind of vehicle speed measuring system based on ARM single-chip microcomputers - Google Patents

A kind of vehicle speed measuring system based on ARM single-chip microcomputers Download PDF

Info

Publication number
CN107656088A
CN107656088A CN201710761891.6A CN201710761891A CN107656088A CN 107656088 A CN107656088 A CN 107656088A CN 201710761891 A CN201710761891 A CN 201710761891A CN 107656088 A CN107656088 A CN 107656088A
Authority
CN
China
Prior art keywords
module
pin
measuring system
light
vehicle speed
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.)
Pending
Application number
CN201710761891.6A
Other languages
Chinese (zh)
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.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
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 Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN201710761891.6A priority Critical patent/CN107656088A/en
Publication of CN107656088A publication Critical patent/CN107656088A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/64Devices characterised by the determination of the time taken to traverse a fixed distance
    • G01P3/68Devices characterised by the determination of the time taken to traverse a fixed distance using optical means, i.e. using infrared, visible, or ultraviolet light

Abstract

The invention discloses a kind of vehicle speed measuring system based on ARM single-chip microcomputers, including measurement and sensing module, main controller module U1, communication module U5, power module U2 and data disaply moudle, the measurement is all connected with the main controller module U1 with sensing module, communication module U5, power module U2 and data disaply moudle, the measurement and sensing module, including the first photoelectricity correlation switch module, the second photoelectricity correlation switch module, the first light-coupled isolation module U3 and the second light-coupled isolation module U4.The vehicle speed measuring system architecture based on ARM single-chip microcomputers of the present invention is simple, and processing speed is fast, and measurement accuracy is high, while reduces the cost that velocity-measuring system is built.

Description

A kind of vehicle speed measuring system based on ARM single-chip microcomputers
Technical field
The invention belongs to radio sensing network node power supply technique field, is related to a kind of vehicle based on ARM single-chip microcomputers and surveys Speed system.
Background technology
With the continuous development of China's economic society, the demand of motor vehicle is also rising year by year, therefore for vehicle matter The supervision and management of amount seem particularly important.Basic parameter of the speed as vehicle, it more should accurately be measured.
Therefore, it is necessary to which a kind of vehicle speed measuring system is to solve the above problems.
The content of the invention
A kind of the defects of present invention is directed to prior art, there is provided vehicle speed measuring system based on ARM single-chip microcomputers.
In order to solve the above technical problems, technical side used by the vehicle speed measuring system based on ARM single-chip microcomputers of the present invention Case is:
A kind of vehicle speed measuring system based on ARM single-chip microcomputers, including it is measurement and sensing module, main controller module U1, logical Believe module U5, power module U2 and data disaply moudle, the measurement and sensing module, communication module U5, power module U2 And data disaply moudle is all connected with the main controller module U1, the measurement and sensing module, including the first photoelectricity to penetrating Switch module, the second photoelectricity correlation switch module, the first light-coupled isolation module U3 and the second light-coupled isolation module U4, described First pin and the first light-coupled isolation mould of the output signal of one photoelectricity correlation switch module by the 3rd binding post P3 Block U3 the first pin connection, the output signal of the second photoelectricity correlation switch module are drawn by the second of the 3rd binding post P3 Pin is connected with the first pin of the second light-coupled isolation module U4, and the first photoelectricity correlation switch module and the second photoelectricity are to penetrating The earth signal AGND of switch module is grounded by the 8th resistance R8;
The main controller module U1 include NRST ends, PA11 ends, PA12 ends, OSCIN ends, OSCOUT ends, TX1 ends and RX1 ends, the NRST ends by the 6th resistance R6 connect 3.3V voltage ends and by with the 5th electric capacity C5 be grounded, the PA11 ends with The 4th pin of the first light-coupled isolation module U3 is connected and by second resistance R2 connection 3.3V voltage end, the PA12 ends and The 4th pin of the second light-coupled isolation module U4 is connected and by 3rd resistor R3 connection 3.3V voltage end, the OSCIN ends with OSCOUT ends connect crystal oscillator Y1 two pins respectively, and two pins of the crystal oscillator Y1 pass through the 8th electric capacity C8 and the tenth respectively Five electric capacity C15 are grounded, and the TX1 ends are connected with the 11st pin of the communication module U5 and the 12nd pin respectively with RX1.
Further, the main controller module U1 is ARM chips, model STM32F103CBT6.
Further, the first pin Vin of the power module U2 passes through the electricity of the first electric capacity C1 being connected in parallel and second Hold C2 ground connection and connecting valve interface P1 crus secunda, the 3rd pin Vout of the power module U2 by be connected in parallel the 3rd Electric capacity C3 and the 4th electric capacity C4 is grounded and connects VCC ends, and the crus secunda GND of the power module U2 is grounded and connects the 4th interface P4 crus secunda NC and the 3rd pin IN-, the power module U2 crus secunda GND connecting luminous diodes LED negative pole, it is described The positive pole of LED connects the 4th interface by resistance R1 connection VCC ends, the first pin of the switch interface P1 P4 the first pin IN+.
Further, the 4th of the 4th pin of the first light-coupled isolation module U3 and the second light-coupled isolation module U4 Pin connects VCC ends by resistance R2 with resistance R3 respectively.
Further, VCC ends pass through multiple capacity earths for being connected in parallel.
Inventive principle:Vehicle speed measuring system of the invention based on ARM single-chip microcomputers, including measurement and sensing module, main control Device module, communication module, power module and data disaply moudle.Power module by by 5V input be converted to 3.3V output be System power supply, measurement with sensing module by installed in the first photoelectricity correlation switch module of fixed position and the second photoelectricity to penetrating Switch module gathered data, master controller is when vehicle is by the first photoelectricity correlation switch module in the outside of trigger controller It is disconnected, and Open from This Side that timer internal carries out timing, in outside is triggered when vehicle is by the second photoelectricity correlation switch module Break and close timer internal, car speed is calculated by speed calculation formula afterwards, the velocity information for calculating completion is sent to Shown on data disaply moudle.
Beneficial effect:The vehicle speed measuring system architecture based on ARM single-chip microcomputers of the present invention is simple, and processing speed is fast, measurement Precision is high, while reduces the cost that velocity-measuring system is built.
Brief description of the drawings
Fig. 1 is a kind of vehicle speed measuring system hardware structure block diagram based on ARM single-chip microcomputers of the present invention;
Fig. 2 is a kind of vehicle speed measuring system hardware schematic diagram based on ARM single-chip microcomputers of the present invention;
Fig. 3 is the program flow diagram of master controller.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment, the present invention is furture elucidated, it should be understood that these embodiments are merely to illustrate The present invention rather than limitation the scope of the present invention, after the present invention has been read, those skilled in the art are each to the present invention's The modification of the kind equivalent form of value falls within the application appended claims limited range.
Refer to shown in Fig. 1 and Fig. 2, the vehicle speed measuring system of the invention based on ARM single-chip microcomputers, including measurement and sensing Module, main controller module U1, communication module U5, power module U2 and data disaply moudle, measurement with sensing module, communicate Module U5, power module U2 and data disaply moudle are all connected with main controller module U1.Wherein, data disaply moudle is using string Mouth display screen.Serial ports screen should possess the resolution ratio of 800*480 and the above used in data disaply moudle, and screen size is big In equal to 7 inches, while should possess the storage capacity and real-time clock function of mass data, can be in record measurement data It is simultaneously data label time.
Measurement and sensing module, including the first photoelectricity correlation switch module, the second photoelectricity correlation switch module, the first optocoupler Isolation module U3 and the second light-coupled isolation module U4, the output signal of the first photoelectricity correlation switch module pass through the 3rd terminals Sub- P3 the first pin is connected with the first light-coupled isolation module U3 the first pin, the output signal of the second photoelectricity correlation switch module It is connected by the 3rd binding post P3 second pin with the second light-coupled isolation module U4 the first pin, the first photoelectricity correlation switch The earth signal AGND of module and the second photoelectricity correlation switch module is grounded by the 8th resistance R8.
Main controller module U1 includes NRST ends, PA11 ends, PA12 ends, OSCIN ends, OSCOUT ends, TX1 ends and RX1 ends, NRST ends connect 3.3V voltage ends and by being grounded with the 5th electric capacity C5 by the 6th resistance R6, PA11 ends and the first light-coupled isolation mould Block U3 the 4th pin is connected and by second resistance R2 connection 3.3V voltage ends, PA12 end and the 4th of the second light-coupled isolation module U4 Pin is connected and by 3rd resistor R3 connection 3.3V voltage end, and OSCIN ends and OSCOUT ends connect crystal oscillator Y1 respectively two draw Pin, crystal oscillator Y1 two pins are grounded by the 8th electric capacity C8 and the 15th electric capacity C15 respectively, TX1 ends and RX1 respectively with communication Module U5 the 11st pin and the 12nd pin are connected.Communication module U5 is using serial communication mode according to certain format transmission speed Data.Communication module U5 need to be converted to Transistor-Transistor Logic level the level for meeting 232 serial ports standards.
Main controller module U1 is ARM chips, model STM32F103CBT6, for handling sensing data.
Power module U2 the first pin Vin is grounded and connected out by the first electric capacity C1 being connected in parallel and the second electric capacity C2 Interface P1 crus secunda is closed, power module U2 the 3rd pin Vout is connect by the 3rd electric capacity C3 being connected in parallel and the 4th electric capacity C4 Ground simultaneously connects VCC ends, and power module U2 crus secunda GND is grounded and connects the 4th interface P4 crus secunda NC and the 3rd pin IN-, Power module U2 crus secunda GND connecting luminous diodes LED negative pole, the positive pole of LED are connected by resistance R1 VCC ends are connect, switch interface P1 the first pin connects the 4th interface P4 the first pin IN+.Power module U2 needs to complete 5V inputs Turn 3.3V outputs.First light-coupled isolation module U3 the 4th pin and the second light-coupled isolation module U4 the 4th pin pass through resistance R2 respectively VCC ends are connected with resistance R3.VCC ends pass through multiple capacity earths for being connected in parallel.
Inventive principle:Vehicle speed measuring system of the invention based on ARM single-chip microcomputers, its composition include:Measurement with sensing module, Main controller module, communication module, power module and data disaply moudle.Power module by 5V inputs by being converted to 3.3V Export and pass through for system power supply, measurement with sensing module installed in the first photoelectricity correlation switch module of fixed position and the second light Electricity to penetrating switch module gathered data, master controller when vehicle is by the first photoelectricity correlation switch module trigger controller it is outer Portion is interrupted, and Open from This Side timer internal carries out timing, outer being triggered when vehicle is by the second photoelectricity correlation switch module Portion is interrupted and closes timer internal, calculates car speed by speed calculation formula afterwards, and the velocity information for calculating completion is led to Cross serial communication and be sent on the serial ports display screen of data disaply moudle and shown.
The vehicle speed measuring system architecture based on ARM single-chip microcomputers of the present invention is simple, and processing speed is fast, and measurement accuracy is high, together When reduce the cost that velocity-measuring system is built.
The present invention passes through the external equipment pair being directly or indirectly connected therewith using ARM chips STM32F103CBT6 as core Vehicle speed information is collected, and transfers data to serial ports display screen in real time.The main target of vehicle speed measurement system design It is:More accurate measurement is carried out to speed by external sensor, precision reaches 0.01m/s.The Hardware Design is divided into two Big module:STM32F103CBT6 is the feature board design of core and triggers setting for pattern with outside photoelectricity correlation switch module Meter.The reception to external signal is considered in feature board design, the purpose of level conversion is reached using two light-coupled isolation modules.
With reference to Fig. 3, the program flow diagram of Fig. 3 positions system master controller, STM32F103CBT6 is initialized first, The interruption of corresponding I/O mouths and the operational mode of timer internal are set, hereafter just enters and waits exterior I/O interruption triggering timer Interrupt, mark will be measured after the completion of one-shot measurement by, which treating, is set to effectively, and in principal function by the velocity amplitude measured send to Serial ports display screen completes one-shot measurement process.
The present invention control flow be:The main control chip in system is initialized first.In addition, in system operation mistake Completed, encapsulated data afterwards to be sent to after certain form by serial ports to identify systematic survey by flag bit in journey Serial ports display screen, serial ports display screen are shown after receiving data.
Master controller initially closes all interruptions, and to system initialization, then the module used is initialized, Interruption is set again, and opening interruption is enabled after completing these work, waits arrival to be interrupted.Pass through the first photoelectricity correlation switch in vehicle Triggered and interrupted by PA11 during module, triggered and interrupted by PA12 when vehicle is by the second photoelectricity correlation switch module, by two The time interval of secondary interruption is recorded, and speed information is calculated with this.
Master controller depends on the operation of interrupt routine and serial ports transmission program, due to needing to use external interrupt Triggering and Off Timer, therefore external interrupt has higher priority compared to timer interruption, and serial ports and the above two Do not occur simultaneously in time, therefore its interrupt priority level only need to be in prescribed limit.
The program part of serial ports display screen mainly includes the storage and display of data, should be recorded simultaneously in data storage Temporal information during DATA REASONING, this function are completed by the real-time clock module of serial ports display screen.
The present invention is by the use of STM32F103CBT6 as the controller of velocity-measuring system, using photoelectricity correlation switch as testing the speed Sensor, there is the advantages of easy, processing speed is fast and measurement accuracy is high using serial ports display screen as display device, drop simultaneously The cost that low velocity-measuring system is built.

Claims (5)

  1. A kind of 1. vehicle speed measuring system based on ARM single-chip microcomputers, it is characterised in that:Including measurement and sensing module, master controller Module U1, communication module U5, power module U2 and data disaply moudle, the measurement and sensing module, communication module U5, electricity Source module U2 and data disaply moudle are all connected with the main controller module U1, the measurement and sensing module, including first Photoelectricity correlation switch module, the second photoelectricity correlation switch module, the first light-coupled isolation module U3 and the second light-coupled isolation module U4, the first pin and first light of the output signal of the first photoelectricity correlation switch module by the 3rd binding post P3 Coupling isolation module U3 the first pin connection, the output signal of the second photoelectricity correlation switch module pass through the 3rd binding post P3 Second pin be connected with the first pin of the second light-coupled isolation module U4, the first photoelectricity correlation switch module and second The earth signal AGND of photoelectricity correlation switch module is grounded by the 8th resistance R8;
    The main controller module U1 includes NRST ends, PA11 ends, PA12 ends, OSCIN ends, OSCOUT ends, TX1 ends and RX1 ends, The NRST ends connect 3.3V voltage ends and by being grounded with the 5th electric capacity C5 by the 6th resistance R6, the PA11 ends and described the One light-coupled isolation module U3 the 4th pin is connected and by second resistance R2 connection 3.3V voltage end, the PA12 ends and described the Two light-coupled isolation module U4 the 4th pin is connected and passes through 3rd resistor R3 connection 3.3V voltage ends, the OSCIN ends and OSCOUT End connects crystal oscillator Y1 two pins respectively, and two pins of the crystal oscillator Y1 pass through the 8th electric capacity C8 and the 15th electric capacity respectively C15 is grounded, and the TX1 ends are connected with the 11st pin of the communication module U5 and the 12nd pin respectively with RX1.
  2. 2. the vehicle speed measuring system based on ARM single-chip microcomputers as claimed in claim 1, it is characterised in that:The master controller mould Block U1 is ARM chips, model STM32F103CBT6.
  3. 3. the vehicle speed measuring system based on ARM single-chip microcomputers as claimed in claim 1, it is characterised in that:The power module U2 The first pin Vin by the first electric capacity C1 being connected in parallel and the second electric capacity C2 ground connection and connecting valve interface P1 crus secunda, The 3rd pin Vout of the power module U2 is grounded by the 3rd electric capacity C3 being connected in parallel and the 4th electric capacity C4 and connects VCC End, the crus secunda GND of the power module U2 are grounded and connect the 4th interface P4 crus secunda NC and the 3rd pin IN-, the electricity Source module U2 crus secunda GND connecting luminous diodes LED negative pole, the positive pole of the LED pass through resistance R1 VCC ends are connected, the first pin of the switch interface P1 connects the first pin IN+ of the 4th interface P4.
  4. 4. the vehicle speed measuring system based on ARM single-chip microcomputers as claimed in claim 1, it is characterised in that:First optocoupler every The 4th pin from module U3 connects VCC by resistance R2 with resistance R3 respectively with the 4th pin of the second light-coupled isolation module U4 End.
  5. 5. the vehicle speed measuring system based on ARM single-chip microcomputers as claimed in claim 1, it is characterised in that:VCC ends are connected by parallel connection The multiple capacity earths connect.
CN201710761891.6A 2017-08-30 2017-08-30 A kind of vehicle speed measuring system based on ARM single-chip microcomputers Pending CN107656088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710761891.6A CN107656088A (en) 2017-08-30 2017-08-30 A kind of vehicle speed measuring system based on ARM single-chip microcomputers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710761891.6A CN107656088A (en) 2017-08-30 2017-08-30 A kind of vehicle speed measuring system based on ARM single-chip microcomputers

Publications (1)

Publication Number Publication Date
CN107656088A true CN107656088A (en) 2018-02-02

Family

ID=61128920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710761891.6A Pending CN107656088A (en) 2017-08-30 2017-08-30 A kind of vehicle speed measuring system based on ARM single-chip microcomputers

Country Status (1)

Country Link
CN (1) CN107656088A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4477184A (en) * 1979-01-19 1984-10-16 Nissan Motor Company, Limited Obstacle detection system for use in vehicles
CN201289492Y (en) * 2008-11-14 2009-08-12 绍兴市质量技术监督检测院 Laser speedometer
CN102087297A (en) * 2009-12-02 2011-06-08 帆宣系统科技股份有限公司 Bicycle speed measuring system
CN202095002U (en) * 2011-06-07 2011-12-28 广东工业大学 Multifunctional camera
CN202710585U (en) * 2012-08-21 2013-01-30 徐州工程学院 Infrared laser velocity measuring device
CN204595015U (en) * 2015-04-30 2015-08-26 中国石油大学(华东) Low-power consumption hand-hold tachometer of measuring
CN205318609U (en) * 2016-01-29 2016-06-15 哈尔滨理工大学 AS -i simulation slave station interface
CN205690996U (en) * 2016-06-08 2016-11-16 无锡机电高等职业技术学校 A kind of photoelectrical velocity measure equipment
CN206387813U (en) * 2016-12-27 2017-08-08 西华大学 A kind of bar breathes out the vehicle speed detector device of racing car

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4477184A (en) * 1979-01-19 1984-10-16 Nissan Motor Company, Limited Obstacle detection system for use in vehicles
CN201289492Y (en) * 2008-11-14 2009-08-12 绍兴市质量技术监督检测院 Laser speedometer
CN102087297A (en) * 2009-12-02 2011-06-08 帆宣系统科技股份有限公司 Bicycle speed measuring system
CN202095002U (en) * 2011-06-07 2011-12-28 广东工业大学 Multifunctional camera
CN202710585U (en) * 2012-08-21 2013-01-30 徐州工程学院 Infrared laser velocity measuring device
CN204595015U (en) * 2015-04-30 2015-08-26 中国石油大学(华东) Low-power consumption hand-hold tachometer of measuring
CN205318609U (en) * 2016-01-29 2016-06-15 哈尔滨理工大学 AS -i simulation slave station interface
CN205690996U (en) * 2016-06-08 2016-11-16 无锡机电高等职业技术学校 A kind of photoelectrical velocity measure equipment
CN206387813U (en) * 2016-12-27 2017-08-08 西华大学 A kind of bar breathes out the vehicle speed detector device of racing car

Similar Documents

Publication Publication Date Title
CN101699298B (en) One-phase digital current/voltage measuring instrument and measuring method thereof
CN103149917B (en) Hydraulic safety monitoring system based on wireless sensor network
CN204304613U (en) II type electric energy efficiency office terminal and system
CN104468035B (en) A kind of distribution POS data reliability transmission system and method
CN101408553B (en) Rotary peed-measuring and frequency outputting device
CN103226346A (en) Configurable multi-channel analog and digital signal acquisition system
CN105425681A (en) Multifunctional communication interface data diagnosis and signal driving card
CN206224181U (en) A kind of multiple-axis servo drive system position feedback data interface card based on FPGA
CN103258411B (en) Intelligent water meter reading system based on GPRS technology
CN203455467U (en) Device for calibrating high-voltage switch mechanical characteristic tester
CN107656088A (en) A kind of vehicle speed measuring system based on ARM single-chip microcomputers
CN103344301A (en) Powdery material level detection and control circuit
CN204631098U (en) A kind of three-phase LED Multi-functional digital display electrical measuring meter
CN203443910U (en) Quick analyzer for soil moisture content
CN206410716U (en) Absolute value encoder analogue means based on synchronous serial interface signal
CN202886466U (en) Multichannel vibratory string signal automatic collection apparatus
CN102072774A (en) Single-photon counting system for measuring weak luminescence of dielectric medium
CN204304614U (en) I type electric energy efficiency office terminal and system
CN207650289U (en) A kind of three-phase intelligent Digital-typed Generator electric parameters transducer
CN206833211U (en) Multi-channel switch amount detection control circuit based on Cortex M0 frameworks
CN206584190U (en) Agriculture cloud service data acquisition device
CN206379926U (en) A kind of solar energy power generating detecting system based on Hall current sensor
CN206920464U (en) INTELLIGENT TACHOMETER for Hopkinson pressure bar experiment
CN206177383U (en) Instantaneous oil consumption test system and car
CN104424788A (en) Remote intelligent water meter reading system based on wireless network technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination