CN203037662U - Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car - Google Patents

Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car Download PDF

Info

Publication number
CN203037662U
CN203037662U CN 201220621231 CN201220621231U CN203037662U CN 203037662 U CN203037662 U CN 203037662U CN 201220621231 CN201220621231 CN 201220621231 CN 201220621231 U CN201220621231 U CN 201220621231U CN 203037662 U CN203037662 U CN 203037662U
Authority
CN
China
Prior art keywords
chip
chip microcomputer
counting
model
measuring device
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.)
Expired - Fee Related
Application number
CN 201220621231
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.)
Changan University
Original Assignee
Changan 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 Changan University filed Critical Changan University
Priority to CN 201220621231 priority Critical patent/CN203037662U/en
Application granted granted Critical
Publication of CN203037662U publication Critical patent/CN203037662U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)

Abstract

本实用新型公开了一种智能模型车的可测正反转速度的测速装置,包括码盘、光电对管传感器、施密特触发器、D触发器、计数芯片和单片机,其中,码盘嵌入光电对管传感器的凹槽内但不与光电对管传感器接触,光电对管传感器与施密特触发器相连,施密特触发器分别与D触发器和计数芯片相连,计数芯片的输出端与单片机的输入端相连,单片机的输出端与计数芯片的输入端相连,形成一个闭环。本实用新型通过直接判断电机转动的状态来判断电机正反转车速,测量电机的正反转可靠性高,更精确。本实用新型成本低廉,电路简单。本实用新型利用外部计数器计数,计数更准确;省去了外部中断,减少了中断量,提高了单片机执行主函数的效率。

Figure 201220621231

The utility model discloses a speed measuring device capable of measuring forward and reverse speeds of an intelligent model car, which comprises a code disc, a photoelectric pair tube sensor, a Schmidt trigger, a D trigger, a counting chip and a single-chip microcomputer, wherein the code disc is embedded in the In the groove of the photoelectric pair tube sensor but not in contact with the photoelectric pair tube sensor, the photoelectric pair tube sensor is connected to the Schmidt trigger, and the Schmidt trigger is connected to the D flip-flop and the counting chip respectively, and the output terminal of the counting chip is connected to the The input end of the single-chip microcomputer is connected, and the output end of the single-chip microcomputer is connected with the input end of the counting chip, forming a closed loop. The utility model judges the forward and reverse speed of the motor by directly judging the rotation state of the motor, and measures the forward and reverse of the motor with high reliability and more accuracy. The utility model has low cost and simple circuit. The utility model uses an external counter to count, and the counting is more accurate; the external interruption is omitted, the amount of interruption is reduced, and the efficiency of executing the main function of the single-chip microcomputer is improved.

Figure 201220621231

Description

A kind of speed measuring device of surveyed rotating speed of model of mind car
Technical field
The utility model relates to the model of mind car test and surveys the field, is specifically related to a kind of speed measuring device of model of mind car.
Background technology
Intelligent automobile contest organizing committee is defined as the car mould with the 7th electromagnetism group match and walks upright.The car mould walks upright and competes is the traveling mode that the double-wheel self-balancing electric motor car is copied in requirement, allows the car mould walk upright with two rear wheel drives.In recent years, the double-wheel self-balancing electric motor car has obtained very big development with characteristics such as its walking are flexible, convenient, energy-conservation.The research of a lot of this respects is arranged both at home and abroad, corresponding product is also arranged.In the match of electromagnetism group, the characteristics of having utilized the model car double rear wheel to drive realize the double-wheel self-balancing walking.With respect to the car mould competition model of traditional four-wheel walking, the car mould walks upright and has higher requirement at aspects such as hardware design, control software development and field adjustables.
For the upright car mould of stable control, accurate Detection ﹠ Controling to intelligent vehicle speed just seem of crucial importance, and the speed detection is the basis of speed control, and upright car mould has the possibility of operation forward or backward at any time, judges that accurately the direction of motion of car mould becomes to attach most importance to.
Intelligent vehicle realizes that the pattern that tests the speed all is to utilize the inner integrated external interrupt port of single-chip microcomputer to carry out timer counter to realize testing the speed.Utilize external interrupt to test the speed, at a high speed, can interrupt the operation of single-chip microcomputer principal function frequently, the time resource of the single-chip microcomputer of waste.Intelligent vehicle judges that motor positive and inverse (car mould forward-reverse) is to give motor-driven pwm signal size by judging.Yet sometimes give the motor-driven reverse signal, motor reality but is just to change in deceleration, and this erroneous judgement that will be easy to generate velocity reversal is disconnected.
Summary of the invention
At the deficiency that prior art exists, the purpose of this utility model is, a kind of speed measuring device of surveyed rotating speed of model of mind car is provided, and can accurately measure the rotating speed of a motor vehicle of model of mind car.
In order to realize above-mentioned task, the utility model adopts following technical scheme to be achieved:
A kind of speed measuring device of surveyed rotating speed of model of mind car, comprise code-disc, photoelectric tube sensor, Schmidt trigger, d type flip flop, counting chip and single-chip microcomputer, wherein, code-disc embeds in the groove of photoelectric tube sensor but does not contact with the photoelectric tube sensor, the photoelectric tube sensor links to each other with Schmidt trigger, Schmidt trigger links to each other with counting chip with d type flip flop respectively, the output terminal of counting chip links to each other with the input end of single-chip microcomputer, the output terminal of single-chip microcomputer links to each other with the input end of counting chip, forms a closed loop.
The utility model also has following technical characterstic:
Described photoelectric tube sensor adopts 1 pair of 2 photoelectric tube, and it is by a power valve and two transmission-type tachogenerators that receiver pope is formed.
Described code-disc adopts 100 line code dishes of Laser Processing.
Described Schmidt trigger adopts the 74HC14 Schmidt trigger.
It is the d type flip flop of 74LS74 that described d type flip flop adopts model.
Described counting chip adopts the CD4520 counting chip.
Described single-chip microcomputer adopts the XS128 single-chip microcomputer.
The utility model is judged the motor positive and inverse speed of a motor vehicle by the state that direct judgement motor rotates, and measures the rotating reliability height of motor, and is more accurate.The utility model is with low cost, and circuit is simple.The utility model utilizes the external counter counting, and it is more accurate to count; Save external interrupt, reduced the interruption amount, improved the efficient of single-chip microcomputer execution principal function.
Description of drawings
Fig. 1 is annexation synoptic diagram of the present utility model.
Fig. 2 is the installation site synoptic diagram of code-disc and photoelectric tube sensor.
Fig. 3 is the waveform synoptic diagram through the signal behind the Schmidt trigger.
Fig. 4 is the synoptic diagram of d type flip flop.
Below in conjunction with drawings and Examples particular content of the present utility model is done explanation in further detail.
Embodiment
Below provide specific embodiment of the utility model, need to prove that the utility model is not limited to following specific embodiment, all equivalents of doing on present techniques scheme basis all fall into protection domain of the present utility model.
Defer to technique scheme, as shown in Figure 1, a kind of speed measuring device of surveyed rotating speed of model of mind car, comprise code-disc, the photoelectric tube sensor, Schmidt trigger, d type flip flop, counting chip and single-chip microcomputer, wherein, code-disc embeds in the groove of photoelectric tube sensor but does not contact with the photoelectric tube sensor, the photoelectric tube sensor links to each other with Schmidt trigger, Schmidt trigger links to each other with counting chip with d type flip flop respectively, the output terminal of counting chip links to each other with the input end of single-chip microcomputer, the output terminal of single-chip microcomputer links to each other with the input end of counting chip, forms a closed loop.
Described code-disc adopts 100 line code dishes of Laser Processing; Described photoelectric tube sensor adopts 1 pair of 2 photoelectric tube, it is by a power valve and two transmission-type tachogenerators that receiver pope is formed, operating voltage is 5V, as shown in Figure 2, be installed in code-disc and grooved photoelectric sensor on the motor shaft of model of mind car, code-disc embeds in the groove of photoelectric tube sensor but does not contact with the photoelectric tube sensor, code-disc is along with the motor shaft rotation of model of mind car, the photoelectric tube sensor produces signal, signal a and signal b are arranged on the output pin, output signal is similar sine wave in the time of high speed, but the phase differential of waveform is 90 degree.
Described Schmidt trigger adopts the 74HC14 Schmidt trigger.As shown in Figure 3, be through the output signal behind the Schmidt trigger 74HC14, output signal has become the square wave of standard, and the phase of output signal difference of square wave also is 90 degree.
It is the d type flip flop of 74LS74 that described d type flip flop adopts model.As described in Figure 4, the output signal A after the shaping delivers to the D port of d type flip flop 74LS74, and the output signal B after the shaping delivers to the CLK port of d type flip flop.If when motor was just changeing, the output terminal Q of d type flip flop was low level; Then when the output terminal Q of d type flip flop was high level, motor was counter-rotating.The IO mouth that is sent to single-chip microcomputer by the sense of rotation signal with the output terminal Q of d type flip flop just can be judged the rotating of output signal.
Described counting chip adopts the CD4520 counting chip; Described single-chip microcomputer adopts the XS128 single-chip microcomputer.Output signal A(after the shaping or B) be sent to the CLKA end of counting chip CD4520, single-chip microcomputer is with common IO mouth (using the port A of XS128 here) reading the chip counter value periodically, read after the count value at once by output port (using the PORTB0 of the port B of XS128 here) counter O reset, just can carry out the counting work of next time period.The count value that reads is proportional to rotating speed of motor, and motor couples together by reduction gearing and model of mind wheel, does not have differential, so the speed of model of mind wheel also is proportional to the count value that reads.Therefore, the count value that reads is exactly the speed of model of mind wheel.
Embodiment 1: wheel just changes
When wheel just changeed, as Fig. 2, the code-disc that is connected on the motor output shaft turned clockwise; Produce the output signal of certain frequency on the photoelectric tube sensor output pin, anticipating signal b 90 degree on the output signal a phase place, output waveform contains the undesired signal irregularity that becomes, the similar sine wave of waveform in the time of at a high speed; The two-way output signal is sent into the square wave that the shaping of 74HC14 Schmidt trigger becomes standard, anticipating signal B90 degree still on the signal A phase place after the shaping; Signal A and signal B after the two-way shaping give the 74LS74D trigger as shown in Figure 4, and at this time the sense of rotation signal of d type flip flop output is high level.Single-chip microcomputer reads the sense of rotation signal by common input port, and judging wheel is just to change.
The CLKA end that output signal A after the shaping simultaneously is sent to counting chip CD4520 carries out step-by-step counting; Single-chip microcomputer periodically reads and zero clearing the count value of counting chip with common input port, because the speed of model of mind wheel is proportional to the count value that reads.Therefore, the count value that reads can be used as the velocity magnitude of model of mind wheel.
Embodiment 2: wheel reversing
In the time of wheel reversing, as Fig. 2, the code-disc that is connected on the motor output shaft is rotated counterclockwise; Produce the output signal of certain frequency on the photoelectric tube sensor output pin, anticipating signal a90 degree on the output signal b phase place, output waveform contains the undesired signal irregularity that becomes, the similar sine wave of waveform in the time of at a high speed; The two-way output signal is sent into the square wave that the shaping of 74HC14 Schmidt trigger becomes standard, anticipating signal A90 degree still on the signal B phase place after the shaping; Signal A and signal B after the two-way shaping give the 74LS74D trigger as shown in Figure 4, and at this time the sense of rotation signal of d type flip flop output is low level.Single-chip microcomputer reads the sense of rotation signal by common input port, and judging wheel is counter-rotating;
The CLKA end that output signal A after the shaping simultaneously is sent to counting chip CD4520 carries out step-by-step counting; Single-chip microcomputer periodically reads and zero clearing the count value of counting chip with common input port, because the speed of model of mind wheel is proportional to the count value that reads.Therefore, the count value that reads can be used as the velocity magnitude of model of mind wheel.

Claims (7)

1.一种智能模型车的可测正反转速度的测速装置,其特征在于,包括码盘、光电对管传感器、施密特触发器、D触发器、计数芯片和单片机,其中,码盘嵌入光电对管传感器的凹槽内但不与光电对管传感器接触,光电对管传感器与施密特触发器相连,施密特触发器分别与D触发器和计数芯片相连,计数芯片的输出端与单片机的输入端相连,单片机的输出端与计数芯片的输入端相连,形成一个闭环。  1. A speed measuring device capable of measuring forward and reverse speeds of an intelligent model car, characterized in that it comprises a code disc, a photoelectric pair sensor, a Schmidt trigger, a D flip-flop, a counting chip and a single-chip microcomputer, wherein the code disc Embedded in the groove of the photoelectric pair sensor but not in contact with the photoelectric pair sensor, the photoelectric pair sensor is connected to the Schmitt trigger, and the Schmitt trigger is connected to the D flip-flop and the counting chip respectively, and the output terminal of the counting chip It is connected with the input end of the single-chip microcomputer, and the output end of the single-chip microcomputer is connected with the input end of the counting chip, forming a closed loop. the 2.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的光电对管传感器采用1对2光电对管,它由一个发射管和两个接受管组成的透射式测速传感器。  2. The speed measuring device of the measurable forward and reverse speed of the intelligent model car as claimed in claim 1 is characterized in that, the photoelectric pair tube sensor adopts 1 pair of 2 photoelectric pair tubes, which consists of a transmitting tube and two A transmissive velocity sensor composed of a receiving tube. the 3.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的码盘采用激光加工的100线码盘。  3. The speed measuring device capable of measuring forward and reverse speeds of an intelligent model car as claimed in claim 1, wherein said code disc adopts a laser-processed 100-line code disc. the 4.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的施密特触发器采用74HC14施密特触发器。  4. The speed measuring device capable of measuring forward and reverse speeds of an intelligent model car as claimed in claim 1, wherein the Schmidt trigger is a 74HC14 Schmitt trigger. the 5.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的D触发器采用型号为74LS74的D触发器。  5. The speed measuring device capable of measuring forward and reverse speeds of an intelligent model car as claimed in claim 1, wherein the D flip-flop adopts a model 74LS74 D flip-flop. the 6.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的计数芯片采用CD4520计数芯片。  6. The speed measuring device capable of measuring forward and reverse speeds of an intelligent model car as claimed in claim 1, wherein the counting chip adopts a CD4520 counting chip. the 7.如权利要求1所述的智能模型车的可测正反转速度的测速装置,其特征在于,所述的单片机采用XS128单片机。  7. The speed measuring device capable of measuring forward and reverse speeds of an intelligent model car as claimed in claim 1, wherein said single-chip microcomputer adopts XS128 single-chip microcomputer. the
CN 201220621231 2012-11-21 2012-11-21 Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car Expired - Fee Related CN203037662U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220621231 CN203037662U (en) 2012-11-21 2012-11-21 Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220621231 CN203037662U (en) 2012-11-21 2012-11-21 Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car

Publications (1)

Publication Number Publication Date
CN203037662U true CN203037662U (en) 2013-07-03

Family

ID=48689773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220621231 Expired - Fee Related CN203037662U (en) 2012-11-21 2012-11-21 Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car

Country Status (1)

Country Link
CN (1) CN203037662U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913591A (en) * 2014-03-03 2014-07-09 深圳市智慧机器技术有限公司 Method and device for measuring rotating speeds of rotating device
CN105181991A (en) * 2015-09-30 2015-12-23 成都川睿科技有限公司 Engine speed measurement system
CN109752567A (en) * 2017-11-06 2019-05-14 株式会社东海理化电机制作所 Rotation detection device
CN115902286A (en) * 2022-12-30 2023-04-04 上海金脉电子科技有限公司 Wheel speed sensor and method for determining wheel speed

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913591A (en) * 2014-03-03 2014-07-09 深圳市智慧机器技术有限公司 Method and device for measuring rotating speeds of rotating device
CN105181991A (en) * 2015-09-30 2015-12-23 成都川睿科技有限公司 Engine speed measurement system
CN109752567A (en) * 2017-11-06 2019-05-14 株式会社东海理化电机制作所 Rotation detection device
CN115902286A (en) * 2022-12-30 2023-04-04 上海金脉电子科技有限公司 Wheel speed sensor and method for determining wheel speed

Similar Documents

Publication Publication Date Title
CN203037662U (en) Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car
CN201837365U (en) Automobile steering wheel rotation angle sensor
CN107340021B (en) Intelligent remote water meter system based on Zigbee network
CN103698550B (en) Ship tail shaft speed measurement device with single Hall proximity type sensor
CN103398810A (en) Non-contact torque and power measuring device and method
CN101614816A (en) An indoor mobile robot pose detection device and control method
CN203785727U (en) Intelligent water meter and counting device thereof
CN101408409A (en) High precision digital type linear displacement transducer
CN202421201U (en) Device for measuring turn and rotate speed of motor by using single Hall component
CN203323808U (en) Water meter measurement module
CN202940701U (en) Rotation speed and displacement measurement system for rotation motor
CN205665261U (en) Motor speed measuring device based on hall sensor
CN201302578Y (en) Motor velocity measuring device of intelligent model car
CN203479256U (en) Micro-distance electronic meter
CN207215224U (en) A kind of counting device and a kind of gas meter, flow meter
CN207231560U (en) Intelligent telemetering water meter system based on Zigbee network
CN201945599U (en) Motor speed detection sensor
CN103868451B (en) A kind of angular transducer and angle measurement method
CN209182677U (en) A two-wheel self-balancing vehicle control device
CN203597904U (en) Spin-drying detecting device for rotary mop
CN202204468U (en) Absolute encoder
CN202379637U (en) Rotation angle measuring device of tower crane
CN204228213U (en) A kind of novel high-frequency rate low-power consumption reversible Magnetic Sensor
CN206583926U (en) Bicycle open air measuring multiple parameters circuit
CN102826476B (en) Contactless winch depth digital indicator for mine

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130703

Termination date: 20131121