CN110567503A - Automobile instrument testing system and method based on Arduino - Google Patents

Automobile instrument testing system and method based on Arduino Download PDF

Info

Publication number
CN110567503A
CN110567503A CN201910837312.0A CN201910837312A CN110567503A CN 110567503 A CN110567503 A CN 110567503A CN 201910837312 A CN201910837312 A CN 201910837312A CN 110567503 A CN110567503 A CN 110567503A
Authority
CN
China
Prior art keywords
arduino
module
instrument
control module
control
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
CN201910837312.0A
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.)
Navigator's Automotive Electronics Co Ltd Of Section In Zhejiang
Original Assignee
Navigator's Automotive Electronics Co Ltd Of Section In Zhejiang
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 Navigator's Automotive Electronics Co Ltd Of Section In Zhejiang filed Critical Navigator's Automotive Electronics Co Ltd Of Section In Zhejiang
Priority to CN201910837312.0A priority Critical patent/CN110567503A/en
Publication of CN110567503A publication Critical patent/CN110567503A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2656Instrumentation

Abstract

the invention discloses an automobile instrument testing system and method based on Arduino. The invention relates to an automobile instrument testing system based on Arduino, which comprises: the system comprises an upper computer module, an Arduino control module and an instrument module; the upper computer module is connected with the Arduino control module and used for controlling the Arduino control module to output signals; the Arduino control module is connected with the instrument module and used for outputting a control signal to the instrument module; and the instrument module is used for receiving the control signal output by the Arduino control module and executing corresponding action. According to the invention, the upper computer controls the Arduino control module to output signals such as level and CAN signals, so that the automation of the test is improved.

Description

Automobile instrument testing system and method based on Arduino
Technical Field
The invention relates to the technical field of software simulation, in particular to an automobile instrument testing system and method based on Arduino.
background
With the improvement of living standard of people, automobiles become an indispensable part of life of people. The automobile instrument can provide parameters of all aspects of an automobile in the driving process of the automobile, and is a main instrument for people to know the automobile condition. The instrument panel of the automobile is different from automobile to automobile, and the parameters displayed by the instrument are different. For a common automobile, the conventional instruments mainly comprise a speedometer, a tachometer, an oil pressure gauge, a water temperature gauge, a fuel gauge, a charging gauge and the like, the instruments respectively display parameters of different aspects of the automobile, the odometer can display the total mileage and the current mileage of the automobile, the fuel gauge is an instrument for displaying the residual fuel quantity of the automobile, and other instruments have unique functions. Therefore, the automobile instrument is one of the main parts of the automobile and can detect various parameters of the automobile at any time.
the automobile instrument detection technology plays a vital role in quality assurance of the instrument, the instrument is related to the overall performance of the automobile and further related to life safety of people, and the importance of the automobile instrument test method is also disclosed.
At present, two tests in the aspect of hardware input of the automobile instrument are mainly performed, namely manual input and single chip microcomputer control input. The manual input needs to build external equipment, the test is tedious and tedious, and meanwhile, the test module cannot be rapidly switched among all projects, so that the test module has the portability. The single chip controls the input of a PLC which is commonly used. However, the development language of the PLC is usually a proprietary language such as ladder diagram, which is not very general, has higher technical requirements for testers, and is not beneficial to software personnel to assist in writing related test cases.
Disclosure of Invention
The invention aims to provide an automobile instrument testing system and method based on Arduino aiming at the defects of the prior art, wherein the Qt upper computer is used for controlling the Arduino control module to output signals such as level and CAN signals, and the automation of the test is improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
An automobile instrument testing system based on Arduino, comprising: the system comprises an upper computer module, an Arduino control module and an instrument module;
The upper computer module is connected with the Arduino control module and used for controlling the Arduino control module to output signals;
The Arduino control module is connected with the instrument module and used for outputting a control signal to the instrument module;
And the instrument module is used for receiving the control signal output by the Arduino control module and executing corresponding action.
Further, the host computer module is a host computer compiled through Qt, and the serial port communication is realized through the Arduino control module.
Further, the control signal comprises a high level, a low level and a CAN signal.
further, Arduino control module with instrument module connects and is connected with instrument module's input through Arduino control module's a pin.
Furthermore, the development language of the Arduino control module is C language.
Correspondingly, an automobile instrument testing method based on Arduino is further provided, and the method comprises the following steps:
s1, sending a control instruction for controlling an instrument module to an Arduino control module by an upper computer module;
S2, after receiving a control instruction, the Arduino control module outputs a control signal to the instrument module;
And S3, after receiving the control signal, the instrument module executes an action corresponding to the control signal.
further, the host computer module is a host computer compiled through Qt, and the serial port communication is realized through the Arduino control module.
Further, the control signal comprises a high level, a low level and a CAN signal.
further, a pin of the Arduino control module is connected with the input end of the instrument module.
Furthermore, the development language of the Arduino control module is C language.
Compared with the prior art, the invention controls the Arduino control module to output signals such as level and CAN signals and the like through the Qt upper computer, thereby improving the automation of the test; the development language of the Arduino is C language, so that software can be conveniently written, and meanwhile, the development language of the Arduino is rich in hardware modules, rich in software packaging libraries and strong in expansibility.
Drawings
FIG. 1 is a block diagram of an Arduino-based automobile instrument testing system according to an embodiment;
fig. 2 is a flowchart of an automobile instrument testing method based on Arduino according to the second embodiment.
Detailed Description
the embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
The invention aims to provide an automobile instrument testing system and method based on Arduino aiming at the defects of the prior art.
Example one
An Arduino-based automotive instrument testing system, as shown in fig. 1, comprising: the system comprises an upper computer module 11, an Arduino control module 12 and an instrument module 13;
The upper computer module 11 is connected with the Arduino control module 12 and is used for controlling the output signal of the Arduino control module;
The Arduino control module 12 is connected with the instrument module 13 and is used for outputting a control signal to the instrument module;
And the instrument module 13 is used for receiving the control signal output by the Arduino control module 12 and executing corresponding actions.
And the upper computer module 11 is used for controlling the output signal of the Arduino control module.
the upper computer module generates a Qt upper computer based on codes compiled by Qt, realizes serial port communication with the Arduino control module and then sends a control instruction to the Arduino control module.
The control instruction comprises instructions for testing various functions of the instrument hardware.
Qt is a developed cross-platform C + + graphical user interface application development framework. It can be used to develop both GUI and non-GUI programs, such as console tools and servers.
In the Arduino control module 12, for outputting control signals to the instrumentation modules.
And after receiving a control instruction sent by the Qt upper computer, the Arduino control module outputs a corresponding control signal according to the control instruction so that the instrument module executes the action.
The control signal comprises a high level, a low level and a CAN signal.
the Arduino control module is connected with the instrument module through a pin of the Arduino control module and the input end of the instrument module.
According to the embodiment, a program for outputting signals from an IO port is compiled by using Arduino, then one pin of the Arduino is connected into the instrument, after the Arduino control module outputs control signals, the instrument executes corresponding actions, the operation effect of the instrument panel is realized, and the condition of simulating the actual operation of an automobile is achieved.
the development language of the Arduino control module of the present embodiment is C language.
Arduino is a convenient, flexible and convenient open-source electronic prototype platform. Including hardware (various models of Arduino boards) and software (Arduino IDE). It is constructed in open source code simple I/O interface version and has Processing/Wiring development environment using Java and C-like languages. It mainly consists of two main parts: the hardware part is an Arduino circuit board which can be used for circuit connection; the other is Arduino IDE, which is the program development environment in computers. Once the program code is written in the IDE and the program is uploaded to the Arduino board, the program tells the Arduino board what to do.
The meter module 13 is used for receiving the control signal output by the Arduino control module 12 and executing corresponding actions.
And after the instrument module receives the control signal sent by the Arduino control module, executing corresponding action.
This embodiment passes through signals such as Qt host computer control Arduino control module output level, CAN signal, improves the automation of test.
The present embodiment is illustrated by the power on and power off of an automated test meter IGN:
Firstly, writing a program for repeatedly outputting power-on and power-off operations from an io port by using Arduino;
Then connecting a required module (such as a relay module or a power amplifier module) to the Arduino pin and the input end of the instrument module;
the Qt upper computer sends a control instruction to the Arduino control module, and the Arduino control module outputs corresponding control signals (high and low levels and CAN signals) according to the control instruction;
After all modules are connected with the power supply, the instrument receives signals of the Arduino control module controlling the power amplifier module or the relay module, and the instrument performs operation corresponding to the control signals at the moment, so that the test of the instrument is completed.
in the prior art, when the power-on and power-off conditions of the instrument are repeatedly tested, a switch is manually pressed in general, and the switch is pressed again after a while. Such an operation may be performed hundreds of times in order to perform a pressure test.
This embodiment realizes level signal's output through Arduino singlechip, lets Arduino substitute carry out the upper and lower electric operation of several hundred times, realizes automatic test. The automatic test is a program control mode.
Compared with the prior art, the invention controls the Arduino control module to output signals such as level and CAN signals and the like through the Qt upper computer, thereby improving the automation of the test; the development language of the Arduino is C language, so that software can be conveniently written, and meanwhile, the development language of the Arduino is rich in hardware modules, rich in software packaging libraries and strong in expansibility.
Example two
An Arduino-based automobile instrument testing method is shown in fig. 2 and comprises the following steps:
S11, the upper computer module sends a control instruction for controlling the instrument module to the Arduino control module;
S12, after receiving a control instruction, the Arduino control module outputs a control signal to the instrument module;
And S13, after receiving the control signal, the instrument module executes an action corresponding to the control signal.
in step S11, the upper computer module issues a control instruction to the Arduino control module to control the instrumentation module.
The upper computer module generates a Qt upper computer based on codes compiled by Qt, realizes serial port communication with the Arduino control module and then sends a control instruction to the Arduino control module.
The control instruction comprises instructions for testing various functions of the instrument hardware.
qt is a developed cross-platform C + + graphical user interface application development framework. It can be used to develop both GUI and non-GUI programs, such as console tools and servers.
In step S12, the Arduino control module outputs a control signal to the meter module after receiving the control command.
And after receiving a control instruction sent by the Qt upper computer, the Arduino control module outputs a corresponding control signal according to the control instruction so that the instrument module executes the action.
The control signal comprises a high level, a low level and a CAN signal.
The Arduino control module is connected with the instrument module through a pin of the Arduino control module and the input end of the instrument module.
according to the embodiment, a program for outputting signals from an IO port is compiled by using Arduino, then one pin of the Arduino is connected into the instrument, after the Arduino control module outputs control signals, the instrument executes corresponding actions, the operation effect of the instrument panel is realized, and the condition of simulating the actual operation of an automobile is achieved.
The development language of the Arduino control module of the present embodiment is C language.
Arduino is a convenient, flexible and convenient open-source electronic prototype platform. Including hardware (various models of Arduino boards) and software (Arduino IDE). It is constructed in open source code simple I/O interface version and has Processing/Wiring development environment using Java and C-like languages. It mainly consists of two main parts: the hardware part is an Arduino circuit board which can be used for circuit connection; the other is Arduino IDE, which is the program development environment in computers. Once the program code is written in the IDE and the program is uploaded to the Arduino board, the program tells the Arduino board what to do.
In step S13, the meter module receives the control signal and then executes an action corresponding to the control signal.
And after the instrument module receives the control signal sent by the Arduino control module, executing corresponding action.
this embodiment passes through signals such as Qt host computer control Arduino control module output level, CAN signal, improves the automation of test.
The present embodiment is illustrated by the power on and power off of an automated test meter IGN:
firstly, writing a program for repeatedly outputting power-on and power-off operations from an io port by using Arduino;
then connecting a required module (such as a relay module or a power amplifier module) to the Arduino pin and the input end of the instrument module;
The Qt upper computer sends a control instruction to the Arduino control module, and the Arduino control module outputs corresponding control signals (high and low levels and CAN signals) according to the control instruction;
after all modules are connected with the power supply, the instrument receives signals of the Arduino control module controlling the power amplifier module or the relay module, and the instrument performs operation corresponding to the control signals at the moment, so that the test of the instrument is completed.
In the prior art, when the power-on and power-off conditions of the instrument are repeatedly tested, a switch is manually pressed in general, and the switch is pressed again after a while. Such an operation may be performed hundreds of times in order to perform a pressure test.
This embodiment realizes level signal's output through Arduino singlechip, lets Arduino substitute carry out the upper and lower electric operation of several hundred times, realizes automatic test. The automatic test is a program control mode.
Compared with the prior art, the invention controls the Arduino control module to output signals such as level and CAN signals and the like through the Qt upper computer, thereby improving the automation of the test; the development language of the Arduino is C language, so that software can be conveniently written, and meanwhile, the development language of the Arduino is rich in hardware modules, rich in software packaging libraries and strong in expansibility.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The utility model provides an motormeter test system based on Arduino which characterized in that includes: the system comprises an upper computer module, an Arduino control module and an instrument module;
The upper computer module is connected with the Arduino control module and used for controlling the Arduino control module to output signals;
The Arduino control module is connected with the instrument module and used for outputting a control signal to the instrument module;
And the instrument module is used for receiving the control signal output by the Arduino control module and executing corresponding action.
2. The Arduino-based automobile instrument testing system according to claim 1, wherein the upper computer module is an upper computer written by Qt, and the Arduino control module realizes serial port communication.
3. The Arduino-based automotive instrument testing system of claim 2, wherein said control signals include high, low, CAN signals.
4. the Arduino-based vehicle meter testing system as recited in claim 1, wherein the Arduino control module is connected to the meter module by a pin of the Arduino control module.
5. The Arduino-based automotive instrument testing system of claim 1, wherein said Arduino control module is developed in language C.
6. The method for testing the automobile instrument based on the Arduino is characterized by comprising the following steps of:
s1, sending a control instruction for controlling an instrument module to an Arduino control module by an upper computer module;
s2, after receiving a control instruction, the Arduino control module outputs a control signal to the instrument module;
and S3, after receiving the control signal, the instrument module executes an action corresponding to the control signal.
7. The Arduino-based automobile instrument testing method as recited in claim 6, wherein the upper computer module is an upper computer written by Qt and is in serial communication with the Arduino control module.
8. The Arduino-based automotive meter testing method according to claim 7, wherein said control signals include high, low, CAN signals.
9. The Arduino-based automobile instrument testing method as claimed in claim 6, wherein a pin of the Arduino control module is connected with an input end of the instrument module.
10. The Arduino-based automobile instrument testing method as claimed in claim 6, wherein the development language of the Arduino control module is C language.
CN201910837312.0A 2019-09-05 2019-09-05 Automobile instrument testing system and method based on Arduino Pending CN110567503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910837312.0A CN110567503A (en) 2019-09-05 2019-09-05 Automobile instrument testing system and method based on Arduino

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910837312.0A CN110567503A (en) 2019-09-05 2019-09-05 Automobile instrument testing system and method based on Arduino

Publications (1)

Publication Number Publication Date
CN110567503A true CN110567503A (en) 2019-12-13

Family

ID=68777917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910837312.0A Pending CN110567503A (en) 2019-09-05 2019-09-05 Automobile instrument testing system and method based on Arduino

Country Status (1)

Country Link
CN (1) CN110567503A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113218416A (en) * 2021-04-15 2021-08-06 东风电驱动系统有限公司 Automatic test method and system for automobile instrument subtotal mileage zero clearing function
CN113535550A (en) * 2021-06-27 2021-10-22 东风电驱动系统有限公司 Virtual liquid crystal instrument and test system thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005338054A (en) * 2004-04-28 2005-12-08 Nissan Motor Co Ltd Automatic evaluation device of vehicle-mounted display gauge
CN103759757A (en) * 2013-12-21 2014-04-30 柳州航盛科技有限公司 Test device of combined instrument of automobile
CN104266671A (en) * 2014-09-05 2015-01-07 延锋伟世通电子科技(上海)有限公司 Automobile instrument driving information automatic testing system based on CAN bus and vision detection
CN105301569A (en) * 2014-06-12 2016-02-03 惠州市德赛西威汽车电子股份有限公司 Automobile reversing radar display instrument testing system and testing method thereof
CN205280758U (en) * 2015-12-18 2016-06-01 绍兴联英汽车电子有限公司 Multi -functional motormeter detecting system
CN207335757U (en) * 2017-10-19 2018-05-08 安徽江淮汽车集团股份有限公司 A kind of test system of automobile combination meter
CN208461512U (en) * 2018-07-13 2019-02-01 国网安徽省电力有限公司合肥供电公司 A kind of wireless charging device of electric power overhaul instrument and meter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005338054A (en) * 2004-04-28 2005-12-08 Nissan Motor Co Ltd Automatic evaluation device of vehicle-mounted display gauge
CN103759757A (en) * 2013-12-21 2014-04-30 柳州航盛科技有限公司 Test device of combined instrument of automobile
CN105301569A (en) * 2014-06-12 2016-02-03 惠州市德赛西威汽车电子股份有限公司 Automobile reversing radar display instrument testing system and testing method thereof
CN104266671A (en) * 2014-09-05 2015-01-07 延锋伟世通电子科技(上海)有限公司 Automobile instrument driving information automatic testing system based on CAN bus and vision detection
CN205280758U (en) * 2015-12-18 2016-06-01 绍兴联英汽车电子有限公司 Multi -functional motormeter detecting system
CN207335757U (en) * 2017-10-19 2018-05-08 安徽江淮汽车集团股份有限公司 A kind of test system of automobile combination meter
CN208461512U (en) * 2018-07-13 2019-02-01 国网安徽省电力有限公司合肥供电公司 A kind of wireless charging device of electric power overhaul instrument and meter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113218416A (en) * 2021-04-15 2021-08-06 东风电驱动系统有限公司 Automatic test method and system for automobile instrument subtotal mileage zero clearing function
CN113535550A (en) * 2021-06-27 2021-10-22 东风电驱动系统有限公司 Virtual liquid crystal instrument and test system thereof

Similar Documents

Publication Publication Date Title
CN108205308B (en) Automatic diagnosis test system based on automobile body domain controller
KR101230902B1 (en) System for evaluating electronic parts using vehicle simulator
CN101739023B (en) Car body controller simulation system
US7275184B2 (en) Software verification method for control units and verification system
CN110912764A (en) Test method, system, equipment and storage medium
CN108803571A (en) ECU desktop hardware assemblage on-orbits test system and hardware-in-the-loop test system
CN102681532A (en) Simulating test system for BCM (body control module)
CN104076814A (en) Automobile ECU measurement system based on hardware-in-loop simulation
CN104794258A (en) Automobile hardware-in-loop simulation system
CN110567503A (en) Automobile instrument testing system and method based on Arduino
CN108762243A (en) A kind of ECU functional tests platform and ECU function test methods
CN110673022A (en) Thin film keyboard PCBA testing device and method
CN207541496U (en) A kind of automated diagnostic tester device based on vehicle body domain controller
CN202757953U (en) Tester for automobile instrument
KR20100076641A (en) An electronic card inspection device of plant control system
CN112445703A (en) Test system and method for vehicle-mounted multimedia equipment
CN113466579A (en) High-temperature aging automatic test monitoring method and system for vehicle-mounted product
CN106226615A (en) A kind of electronic equipment automatization test system
CN207249477U (en) Vehicle dormer window assembly automatic test device
CN213057577U (en) 1553B bus-based intelligent launch control system simulation device
CN116859894B (en) Automatic test method for helicopter internal electronic regulator based on multi-agent technology
CN216290924U (en) VHF transceiver tester
US10268625B2 (en) Signal path verification device
CN205175672U (en) Automatic aging testing appearance of mop wheel system
CN218350754U (en) Automatic test equipment and system for 441 series control panel assembly

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191213

RJ01 Rejection of invention patent application after publication