CN103162725A - Photoelectric encoder rotating pulse display device - Google Patents
Photoelectric encoder rotating pulse display device Download PDFInfo
- Publication number
- CN103162725A CN103162725A CN201310064181XA CN201310064181A CN103162725A CN 103162725 A CN103162725 A CN 103162725A CN 201310064181X A CN201310064181X A CN 201310064181XA CN 201310064181 A CN201310064181 A CN 201310064181A CN 103162725 A CN103162725 A CN 103162725A
- Authority
- CN
- China
- Prior art keywords
- photoelectric encoder
- display device
- pulse
- fpga
- rotation
- 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
Links
Images
Abstract
The invention discloses a photoelectric encoder rotating pulse display device, and belongs to the application field of photoelectric encoder measuring. The photoelectric encoder rotating pulse display device comprises a photoelectric coupler, a field-programmable gate array (FPGA), a crystal oscillator, a configured chip and a display device. The photoelectric coupler receives and amplifies AB two-phase pulse signals which are outputted by a photoelectric encoder, and then outputs the two-phase pulse signals to the FPGA. The FPGA calculates according to the received pulse signals to obtain the rotating direction, the rotating angle and the number of pulses of the photoelectric encoder, and transmits the calculated results to the display device. The configured chip is used for storing the algorithmic routine of the FPGA. The crystal oscillator is used for providing clock signals. The photoelectric encoder rotating pulse display device does not need to be driven by a large number of peripheral circuits, so that hardware cost can be saved, and transportability and expansibility are high. Meanwhile, the photoelectric encoder rotating pulse display device can display not only the pulse count but also the rotating angle so as to avoid a man-made wrong operation.
Description
Technical field
The invention belongs to photoelectric encoder and measure application, relate to the rotary pulsed display device of a kind of photoelectric encoder.
Background technology
Photoelectric encoder is a kind of sensor of pulse or digital quantity that geometry of machinery displacement on output shaft converted to by opto-electronic conversion, is to use at present maximum sensors.The effect of the photoelectric encoder in kinetic control system is that the parameters such as position and angle are converted to digital quantity, and rotary encoder is the device of measuring rotating speed, and it is divided into two kinds of single channel output and doubleway outputs.
In present engineering application, the operation of stepper motor needs photoelectric encoder to control usually, in the process of scrambler control step motor rotation, the requirement scrambler rotates to an angle, and corresponding stepper motor rotates to an angle, but owing to being by manually the parameters such as the anglec of rotation being identified and operated at present mostly, numeral useless shows automatically, be easy to occur maloperation, as rotate the too fast motor wearing and tearing aggravation that causes, exceed required angle etc.
Some the photoelectric encoder pulse display devices or the method that exist at present adopt single-chip microcomputer to control mostly, single-chip microcomputer needs a large amount of peripheral circuits to drive for FPGA, this just causes increases hardware cost and complex software degree on the one hand, make software transportability and poor plasticity, also make on the other hand the expansibility of device poor, processing speed is slow.Simultaneously, present display device is the simple step-by-step counting of exporting, and does not consider the anglec of rotation of photoelectric encoder and sense of rotation etc., makes and in use easily causes maloperation.
Summary of the invention
In view of this, the object of the present invention is to provide the rotary pulsed display device of a kind of photoelectric encoder, the main on-site programmable gate array FPGA that adopts of this device can carry out numeral demonstration to the anglec of rotation of photoelectric encoder and step-by-step counting etc.
For achieving the above object, the invention provides following technical scheme:
The rotary pulsed display device of a kind of photoelectric encoder comprises a photoelectrical coupler, an on-site programmable gate array FPGA as key process unit, a crystal oscillator, a configuring chip and a display device; Photoelectrical coupler receive the AB two-phase pulse signal of photoelectric encoder output and it is amplified after export on-site programmable gate array FPGA to, FPGA calculates sense of rotation, the anglec of rotation and the pulse number of photoelectric encoder according to the pulse signal that receives, and result of calculation is sent to display device; Configuring chip is used for the algorithm routine of storage FPGA, and crystal oscillator is used for providing clock signal; Described on-site programmable gate array FPGA comprises phase relation judge module and pulse counter module; The phase relation judge module is according to the sense of rotation of the judgement of the phase relation between AB two-phase pulse signal photoelectric encoder, and B lags behind as forward, B mutually mutually in advance for reversing; Pulse counter module is used for the rotary pulsed of photoelectric encoder counted, and in the forward situation, A is rising edge mutually, and counter adds 1, the beginning step-by-step counting, and under Reversion, A is rising edge mutually, counter subtracts 1, step-by-step counting.
Further, on-site programmable gate array FPGA also comprises anglec of rotation computing module, and anglec of rotation computing module is used for calculating the anglec of rotation of photoelectric encoder, according to the requirement of rotating cycle corresponding angle, the pulse count frequency division, pulse number/divider ratio=anglec of rotation.
Carry out the filtering buffer memory in 4 cycles when further, on-site programmable gate array FPGA receives the pulse of A phase.
Further, carry out the time-delay reset of 1ms after FPGA powers on.
Further, key process unit adopts CPLD.
Further, described display device adopts 8 sections LED charactrons.
Beneficial effect of the present invention is: adopt on-site programmable gate array FPGA not need a large amount of peripheral circuits to drive as processing core, can the economize on hardware cost, and portability and expansibility are higher, in addition, algorithm is simple and clear, and transplantability is good, highly versatile, and have very strong robustness, result of calculation is accurate; Simultaneously, display device of the present invention not only can show step-by-step counting, and can show the anglec of rotation, with the maloperation of avoiding manually carrying out.
Description of drawings
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, the invention provides following accompanying drawing and describe:
Fig. 1 is structural representation of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described in detail.
Fig. 1 is structural representation of the present invention, and the rotary pulsed display device of this photoelectric encoder comprises a photoelectrical coupler, an on-site programmable gate array FPGA, a crystal oscillator, a configuring chip and a display device; Photoelectrical coupler receive the AB two-phase pulse signal of photoelectric encoder output and it is amplified after export on-site programmable gate array FPGA to, FPGA calculates sense of rotation, the anglec of rotation and the pulse number of photoelectric encoder according to the pulse signal that receives, and result of calculation is sent to display device shows, display device adopts 8 sections LED charactrons in the present embodiment; Configuring chip is used for the algorithm routine of storage FPGA, and crystal oscillator is used for providing clock signal.
In the present embodiment, described on-site programmable gate array FPGA comprises phase relation judge module and pulse counter module; The phase relation judge module is according to the sense of rotation of the judgement of the phase relation between AB two-phase pulse signal photoelectric encoder, and B lags behind as forward, B mutually mutually in advance for reversing; Pulse counter module is used for the rotary pulsed of photoelectric encoder counted, and in the forward situation, A is rising edge mutually, and counter adds 1, the beginning step-by-step counting, and under Reversion, A is rising edge mutually, counter subtracts 1, step-by-step counting.
A kind of improvement as the present embodiment, programmable gate array FPGA also comprises anglec of rotation computing module at the scene, anglec of rotation computing module is used for calculating the anglec of rotation of photoelectric encoder, make this device not only can show step-by-step counting, can also show the anglec of rotation, be that anglec of rotation computing module is according to the requirement of rotating cycle corresponding angle, pulse count frequency division, pulse number/divider ratio=anglec of rotation.
Another kind as the present embodiment improves, and on-site programmable gate array FPGA carries out the filtering buffer memory in 4 cycles when receiving the pulse of A phase, can make like this photoelectric encoder external equipment can not disturb demonstration, improves stabilization of equipment performance.
Simultaneously, due to the employing minimizing device operation that automatically resets that powers on, can produce a pulse in power up, device is carried out maloperation, cause initial value not right, so adopt time-delay reset in algorithm, the time-delay reset of 1ms is carried out in the impact of eliminating error pulse after namely FPGA powers on.
Improve as another kind, the key process unit of this display device can also adopt CPLD.
Explanation is at last, above preferred embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is described in detail by above preferred embodiment, but those skilled in the art are to be understood that, can make various changes to it in the form and details, and not depart from claims limited range of the present invention.
Claims (6)
1. the rotary pulsed display device of photoelectric encoder, is characterized in that: comprise a photoelectrical coupler, an on-site programmable gate array FPGA as key process unit, a crystal oscillator, a configuring chip and a display device; Photoelectrical coupler receive the AB two-phase pulse signal of photoelectric encoder output and it is amplified after export on-site programmable gate array FPGA to, FPGA calculates sense of rotation, the anglec of rotation and the pulse number of photoelectric encoder according to the pulse signal that receives, and result of calculation is sent to display device; Configuring chip is used for the algorithm routine of storage FPGA, and crystal oscillator is used for providing clock signal;
Described on-site programmable gate array FPGA comprises phase relation judge module and pulse counter module;
The phase relation judge module is according to the sense of rotation of the judgement of the phase relation between AB two-phase pulse signal photoelectric encoder, and B lags behind as forward, B mutually mutually in advance for reversing;
Pulse counter module is used for the rotary pulsed of photoelectric encoder counted, and in the forward situation, A is rising edge mutually, and counter adds 1, the beginning step-by-step counting, and under Reversion, A is rising edge mutually, counter subtracts 1, step-by-step counting.
2. the rotary pulsed display device of photoelectric encoder according to claim 1, it is characterized in that: on-site programmable gate array FPGA also comprises anglec of rotation computing module, anglec of rotation computing module is used for calculating the anglec of rotation of photoelectric encoder, according to the requirement of rotating cycle corresponding angle, the pulse count frequency division, pulse number/divider ratio=anglec of rotation.
3. the rotary pulsed display device of photoelectric encoder according to claim 1, it is characterized in that: on-site programmable gate array FPGA carries out the filtering buffer memory in 4 cycles when receiving the pulse of A phase.
4. the rotary pulsed display device of photoelectric encoder according to claim 1, is characterized in that: the time-delay reset that carries out 1ms after FPGA powers on.
5. the rotary pulsed display device of photoelectric encoder according to claim 1, is characterized in that: key process unit employing CPLD.
6. the rotary pulsed display device of the described photoelectric encoder of any one according to claim 1 to 5, is characterized in that: 8 sections LED charactrons of described display device employing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310064181XA CN103162725A (en) | 2013-02-28 | 2013-02-28 | Photoelectric encoder rotating pulse display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310064181XA CN103162725A (en) | 2013-02-28 | 2013-02-28 | Photoelectric encoder rotating pulse display device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103162725A true CN103162725A (en) | 2013-06-19 |
Family
ID=48586001
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310064181XA Pending CN103162725A (en) | 2013-02-28 | 2013-02-28 | Photoelectric encoder rotating pulse display device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103162725A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984257A (en) * | 2014-03-13 | 2014-08-13 | 北京海兰信数据科技股份有限公司 | Signal conversion method and system |
CN106169928A (en) * | 2016-08-31 | 2016-11-30 | 浙江佳乐科仪股份有限公司 | A kind of encoder scaling down processing circuit based on CPLD |
CN106295783A (en) * | 2016-07-18 | 2017-01-04 | 广州吉欧光学科技有限公司 | A kind of counting assembly based on incremental encoder and method |
CN106643827A (en) * | 2016-11-15 | 2017-05-10 | 乐普医学电子仪器股份有限公司 | Encoder output signal processing method |
CN108759616A (en) * | 2018-03-28 | 2018-11-06 | 信承瑞技术有限公司 | A kind of meter counter with compensation function |
CN110658834A (en) * | 2019-09-03 | 2020-01-07 | 中国航空工业集团公司西安飞行自动控制研究所 | Implementation method and device for setting target parameters of telex flight control system |
CN110675611A (en) * | 2019-09-17 | 2020-01-10 | 中国水利水电第四工程局有限公司 | Dam compaction monitoring system and monitoring method |
CN111750795A (en) * | 2020-06-18 | 2020-10-09 | 哈尔滨工程大学 | Distributed creep measurement system and measurement method |
CN111759685A (en) * | 2020-06-19 | 2020-10-13 | 未来穿戴(深圳)有限公司 | Massage device, control method and device of massage device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2903920Y (en) * | 2006-05-12 | 2007-05-23 | 西安石油大学 | High precision photoelectric coding deep testing circuit |
EP1837629A1 (en) * | 2006-03-23 | 2007-09-26 | STMicroelectronics S.r.l. | Method and device for estimating displacements of the rotor of a motor |
CN102843118A (en) * | 2011-07-04 | 2012-12-26 | 合康变频科技(武汉)有限公司 | Quadrupling and sensing method and device for quadrature encoder |
CN102904507A (en) * | 2012-11-08 | 2013-01-30 | 沈阳创达技术交易市场有限公司 | Device for detecting position of linear motor |
-
2013
- 2013-02-28 CN CN201310064181XA patent/CN103162725A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1837629A1 (en) * | 2006-03-23 | 2007-09-26 | STMicroelectronics S.r.l. | Method and device for estimating displacements of the rotor of a motor |
CN2903920Y (en) * | 2006-05-12 | 2007-05-23 | 西安石油大学 | High precision photoelectric coding deep testing circuit |
CN102843118A (en) * | 2011-07-04 | 2012-12-26 | 合康变频科技(武汉)有限公司 | Quadrupling and sensing method and device for quadrature encoder |
CN102904507A (en) * | 2012-11-08 | 2013-01-30 | 沈阳创达技术交易市场有限公司 | Device for detecting position of linear motor |
Non-Patent Citations (1)
Title |
---|
冯希等: "基于FPGA的多路增量式光电编码器测角电路设计方法", 《现代电子技术》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984257A (en) * | 2014-03-13 | 2014-08-13 | 北京海兰信数据科技股份有限公司 | Signal conversion method and system |
CN106295783A (en) * | 2016-07-18 | 2017-01-04 | 广州吉欧光学科技有限公司 | A kind of counting assembly based on incremental encoder and method |
CN106169928A (en) * | 2016-08-31 | 2016-11-30 | 浙江佳乐科仪股份有限公司 | A kind of encoder scaling down processing circuit based on CPLD |
CN106643827A (en) * | 2016-11-15 | 2017-05-10 | 乐普医学电子仪器股份有限公司 | Encoder output signal processing method |
CN106643827B (en) * | 2016-11-15 | 2019-01-08 | 乐普医学电子仪器股份有限公司 | A kind of encoder output processing method |
CN108759616A (en) * | 2018-03-28 | 2018-11-06 | 信承瑞技术有限公司 | A kind of meter counter with compensation function |
CN110658834A (en) * | 2019-09-03 | 2020-01-07 | 中国航空工业集团公司西安飞行自动控制研究所 | Implementation method and device for setting target parameters of telex flight control system |
CN110675611A (en) * | 2019-09-17 | 2020-01-10 | 中国水利水电第四工程局有限公司 | Dam compaction monitoring system and monitoring method |
CN110675611B (en) * | 2019-09-17 | 2024-04-05 | 中国水利水电第四工程局有限公司 | Dam compaction monitoring system and monitoring method |
CN111750795A (en) * | 2020-06-18 | 2020-10-09 | 哈尔滨工程大学 | Distributed creep measurement system and measurement method |
CN111759685A (en) * | 2020-06-19 | 2020-10-13 | 未来穿戴(深圳)有限公司 | Massage device, control method and device of massage device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103162725A (en) | Photoelectric encoder rotating pulse display device | |
JP6691650B2 (en) | Laser distance measuring sensor and distance measuring method | |
CN102758615B (en) | High-accuracy smart dual-core well depth measuring device | |
CN103048486B (en) | Device and method for measuring rotation speeds and positions of rotors of birotor permanent magnet wind-driven generator | |
CN102680728B (en) | Motor rotation speed measuring method used in precise electromechanical equipment | |
CN105424073A (en) | Incremental photoelectric encoder precision detection system | |
CN106645786B (en) | Permanent magnet synchronous motor speed detection method and device | |
CN104330581A (en) | Motor rotation speed measuring system and measuring method | |
CN103913591A (en) | Method and device for measuring rotating speeds of rotating device | |
CN202614500U (en) | Positioning and phase-locking device for PIV experiment of centrifugal pump | |
CN103940398B (en) | Angle of revolution measuring method, device, system and engineering machinery | |
CN203069612U (en) | Photoelectric encoder pulse/rotation speed analog signal fast conversion circuit | |
CN107064542A (en) | Wind-driven generator shafting rotating speed measurement method based on magnetic grid bar pulse signal | |
CN104458762A (en) | Digital optical fiber sensor-based detection method for quality of ABS gear ring | |
CN103267869A (en) | Double-headed high precision velocity sensor and working method | |
CN102608348B (en) | Method for measuring rotating speed for irregular pulse signals | |
CN105466332A (en) | Angle sensor and angle measuring method | |
CN103675322B (en) | Tachometer | |
CN204038898U (en) | A kind of contact measuring apparatus of crane rotation position | |
CN105403726A (en) | Pulse velocity measurement module | |
CN203479256U (en) | Micro-distance electronic meter | |
CN104345170A (en) | Hydraulic generator rotating speed measuring system | |
CN100494907C (en) | Frequency dividing circuit based on orthogonal intersection code signal | |
CN204038899U (en) | A kind of non-contact measurement apparatus of crane rotation position | |
CN203178299U (en) | Double-head high-precision speed sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130619 |