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
model
measuring device
counting
chip microcomputer
speed measuring
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

A speed measuring device capable of measuring the forward and reverse rotation speeds of an intelligent model car comprises a code wheel, a photoelectric geminate transistor sensor, a Schmidt trigger, a D trigger, a counting chip and a single chip microcomputer, wherein the code wheel is embedded in a groove of the photoelectric geminate transistor sensor but not in contact with the photoelectric geminate transistor sensor, the photoelectric geminate transistor sensor is connected with the Schmidt trigger, the Schmidt trigger is connected with the D trigger and the counting chip, the output end of the counting chip is connected with the input end of the single chip microcomputer, and the output end of the single chip microcomputer is connected with the counting chip, thus forming a closed loop. According to the utility model, the forward and reverse rotation speeds of a motor is determined by determining the rotation state of the motor, and the forward and reverse rotation speeds of the motor can be measured reliably and more accurately. The speed measuring device is low in cost and simple in circuit structure. The counting is more accurate as an external counter is used for counting; and external interruption is avoided, the interruption quantity is reduced, and the efficiency of the implementation of a main function by the single chip microcomputer is improved.

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. the speed measuring device of the surveyed rotating speed of a model of mind car, it is characterized in that, 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.
2. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, 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.
3. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, described code-disc adopts 100 line code dishes of Laser Processing.
4. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, described Schmidt trigger adopts the 74HC14 Schmidt trigger.
5. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, it is the d type flip flop of 74LS74 that described d type flip flop adopts model.
6. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, described counting chip adopts the CD4520 counting chip.
7. the speed measuring device of the surveyed rotating speed of model of mind car as claimed in claim 1 is characterized in that, described single-chip microcomputer adopts the XS128 single-chip microcomputer.
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 (3)

* 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

Cited By (3)

* 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

Similar Documents

Publication Publication Date Title
CN107340021B (en) Intelligent remote water meter system based on Zigbee network
CN203037662U (en) Speed measuring device capable of measuring forward and reverse rotation speeds of intelligent model car
CN201018440Y (en) Angular position and rotary speed testing apparatus of switch reluctance motor rotor
CN103063265A (en) Device for utilizing magnetic sensitive devices to measure positive and negative rotation of water meter
CN101013038B (en) Transmission electronic odometer speed-measuring system and method
CN103278218A (en) Flow monitoring device used for mechanical water meter
CN203323808U (en) Water meter measurement module
CN203785727U (en) Intelligent water meter and counting device thereof
CN205665261U (en) Motor speed measuring device based on hall sensor
CN205017239U (en) Brushless direct current motor control circuit
CN206095263U (en) Electronic type rotational speed odometer based on singlechip
CN207231560U (en) Intelligent telemetering water meter system based on Zigbee network
CN203479256U (en) Micro-distance electronic meter
CN201302578Y (en) Motor velocity measuring device of intelligent model car
CN205720285U (en) A kind of high-resolution motor speed measuring instrument based on photoelectric encoder
CN202204468U (en) Absolute encoder
CN202285021U (en) Instrument for measuring wheel speed
CN207215224U (en) A kind of counting device and a kind of gas meter, flow meter
CN108151816A (en) A kind of magnetic passes electronic water meter and its metering method
CN202379637U (en) Rotation angle measuring device of tower crane
CN202661062U (en) Real-time two-shaft rotation angle difference detector
CN206583926U (en) Bicycle open air measuring multiple parameters circuit
CN107917741B (en) Counting device, counting method and gas meter
CN207457268U (en) A kind of permanent magnet synchronous motor speed measuring device
CN103401660B (en) The decoding system and method for orthogonal signalling based on Cortex kernel single-chip microcomputer

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