CN205210613U - Object level skew detecting system based on dual controller - Google Patents

Object level skew detecting system based on dual controller Download PDF

Info

Publication number
CN205210613U
CN205210613U CN201521048613.9U CN201521048613U CN205210613U CN 205210613 U CN205210613 U CN 205210613U CN 201521048613 U CN201521048613 U CN 201521048613U CN 205210613 U CN205210613 U CN 205210613U
Authority
CN
China
Prior art keywords
input
output port
chip microcomputer
cpld
controller
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
CN201521048613.9U
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.)
Chongqing College of Electronic Engineering
Original Assignee
Chongqing College of Electronic Engineering
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 Chongqing College of Electronic Engineering filed Critical Chongqing College of Electronic Engineering
Priority to CN201521048613.9U priority Critical patent/CN205210613U/en
Application granted granted Critical
Publication of CN205210613U publication Critical patent/CN205210613U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The utility model discloses an object level skew detecting system based on dual controller, include: photoelectric sensor module, singlechip and signal port extension module, the photoelectric sensor module comprises sensor bottom plate and LED light source board, a N detecting element sets up on the sensor bottom plate according to rectangular array mode align to grid, detecting element includes photoelectric triode, and photoelectric triode's collecting electrode is detecting element's signal output part OUT, the singlechip pass through SPI serial communication interface with the electricity connection is realized to the CPLD controller, and a N detecting element's signal output part OUT corresponds respectively with a N input -output ports of CPLD controller and is connected. The utility model has the advantages of circuit structure is simple, and the signal processing degree of difficulty is little, and development cost is low. In addition the utility model discloses it still has the advantage that can improve measurement accuracy to compare with the independent prior art who adopts the singlechip to be control core.

Description

A kind of object horizontal-shift detection system based on dual controller
Technical field
The utility model relates to the horizontal deviation detecting device of a kind of object, and specifically a kind of horizontal deviation detecting device of object utilizing single-chip microcomputer and CPLD controller to realize detecting data acquisition and procession, belongs to observation and control technology field.
Background technology
In a lot of industrial circle, all need inspected object horizontal offset, this must need a kind of sensor circuit that can realize object horizontal offset and detect.
Such as, in smelting iron and steel industry, strip running deviation phenomenon (the horizontal sideslip of cold hot-strip operational process, the up and down phenomenon such as floating) is often there is in band steel continuous processor group in threading and production run, its result not only can cause steel defect generation, lumber recovery reduces, also can affect the normal operation of unit and damage production equipment, and then causing integral production ability to decline.
And for example, the application of industry belt conveyer scale widely at metallurgy, mine, electric power, harbour etc., but belt conveyer scale is often along with the growth of service time, and its precision can decline to some extent, and this caused due to causes such as belt tension, sideslip and scene temperature.
Therefore, design and a set ofly accurately can detect that the object sideslip detection system of object running deviation value (particularly horizontal offset) very has using value in real time.
In prior art, contactless sideslip detection is general adopts sensor circuit to be ccd sensor, but often there is signal transacting complexity, hardware complexity, exploitation Chen Ben great, and to drawbacks such as rugged surroundings sensitivities.
In addition for belt deviation detection system, the core controller extensively adopted in prior art is the devices such as singlechip chip, but singlechip controller IO port resource is limited, is difficult to the port needs of the more sensor assembly of adaptation signal output port, which also limits the raising of accuracy of detection.
Utility model content
For prior art above shortcomings, the purpose of this utility model is: how to provide a kind of hardware circuit simple, the low and object deviation detecting device of the belt deviation testing circuit that accuracy of detection is higher of cost of development.To achieve these goals, the utility model have employed following technical scheme.
Based on an object horizontal-shift detection system for dual controller, it is characterized in that, form primarily of photoelectric testing sensor module, single-chip microcomputer and CPLD controller;
Described photoelectric testing sensor module is made up of sensor base plate and LED light source plate;
Described sensor base plate is made by insulating material; N number of detecting unit is arranged on sensor base plate according to rectangular array mode is evenly distributed; Be provided with LED and driving circuit thereof in LED light source plate, described driving circuit is electrically connected with LED; Described detecting unit comprises phototriode, and the collector of described phototriode is connected with positive source VCC by biasing resistor, and the emitter of phototriode is connected to the ground and connects, the signal output part OUT of the current collection of phototriode very detecting unit; Described LED light source plate is arranged on directly over sensor base plate; The light-sensitive surface of described phototriode is just to the light-emitting area of LED light source plate;
Described single-chip microcomputer realizes being electrically connected with described CPLD controller by SPI serial communication interface: the first input/output port of single-chip microcomputer is connected with the first input/output port of CPLD controller, and connecting line is designated as from device data input line SDI; Second input/output port of single-chip microcomputer is connected with the second input/output port of CPLD controller, and connecting line is designated as from device data output line SDO; 4th input/output port of single-chip microcomputer is connected with the 4th input/output port of CPLD controller, and connecting line is designated as clock cable SCLK; 4th input/output port of single-chip microcomputer is connected with the 4th input/output port of CPLD controller, and connecting line is designated as from devices enable signal wire CS;
The signal output part OUT of described N number of detecting unit is connected with N number of input/output port of CPLD controller is corresponding respectively.
Compared to existing technology, the utility model tool has the following advantages:
In the utility model, in sensor module designs: testee is arranged between sensor base plate and LED light source plate, the detecting unit output high level of part is not covered by tested belt, and the detecting unit output low level of part is covered by tested belt, again because each detecting unit is arranged in sensor base plate with array way, therefore namely CPLD controller and single-chip microcomputer by drawing the horizontal direction position of current tested belt by logical operation after the output signal that detects each detecting unit, sensor circuit is only made up of light source and multiple detecting unit and achieves the horizontal sideslip of contactless object and detect, therefore there is circuit structure simple, signal transacting difficulty is little, the advantage that cost of development is low.
At core controller design aspect, SPI serial communication interface is adopted to be electrically connected between single-chip microcomputer and CPLD chip, this had both achieved the communication between single-chip microcomputer and CPLD, achieve again higher design flexibility: on the one hand, CPLD chip has a large amount of input/output port resources, usually there are at least 36 input/output ports, due between single-chip microcomputer and CPLD be SPI serial communication connect, therefore single-chip microcomputer realizes utilizing the expansion of the input/output port of CPLD by SPI serial data transmission, make the utility model can carry out data acquisition to more detecting unit, to improve the measuring precision, therefore the utility model with adopt separately single-chip microcomputer be control core prior art compared with also there is the advantage that can improve measuring accuracy.In addition, CPLD belongs to the very high digit chip of a kind of integrated level, it can realize complicated Design of Digital Circuit, therefore the function originally needing independent middle scale digital integrated circuit to realize in single-chip computer control system design just can use CPLD to realize, and this makes the operating rate of whole single-chip computer control system and functional reliability all can be improved.
Accompanying drawing explanation
Fig. 1 is the utility model electrical block diagram;
Fig. 2 is measuring principle figure of the present utility model;
Embodiment
Below in conjunction with the drawings and specific embodiments, the utility model is described in further detail.
As shown in Figure 1, the utility model comprises photoelectric testing sensor module and core controller and peripheral circuit two large divisions;
(1) photoelectric testing sensor module, photoelectric testing sensor module is made up of sensor base plate and LED light source plate.
1, sensor base plate
Sensor base plate is made by insulating material, as depicted in figs. 1 and 2, N number of detecting unit is evenly distributed to be arranged on sensor base plate, N number of detecting unit arranges in rectangular array mode, the array of above-mentioned N number of detecting unit composition can be square, also can be rectangle, wherein N be natural number, usually selects the natural number being less than 20.
As shown in Figure 1, detecting unit comprises phototriode, and the collector of phototriode is connected with positive source VCC by biasing resistor, and the emitter of phototriode is connected to the ground and connects, the signal output part OUT of the current collection of phototriode very detecting unit;
Detecting unit also can adopt following circuit structure: by the grounded collector of phototriode, and the emitter of phototriode is connected with positive source VCC by biasing resistor, and the transmitting of phototriode is very the signal output part OUT of detecting unit.
Owing to all having a delivery outlet to each detecting unit, therefore whole detection sensing circuit has N number of signal output, and signal output needs to be connected with the IO of the intelligent device such as single-chip microcomputer, realizes sensor signal and transmits.
2, LED light source plate
LED and driving circuit thereof is provided with in LED light source plate, LED can be a high-powered LED lamp, also can adopt LED array, driving circuit adopt routine techniques realize, such as common LED array drive circuit with MBI5026CF chip for core devices designs.
MBI5026CF chip is a similar 74595 seals in and go out (1 road serial input passage, 1 road serial output channel, 16 road parallel output passages) LED drive chip, its principal feature is: (1) has 16 road constant current output passages; (2) output current can be adjusted by the resistance that its R_EXT pin connects (output current 5-90mA); (3) it also has an output enable end OE, and Enable Pin turns off then inner output driver and turns off, and output current cannot export.The output enable end OE of MBI5026CF chip can be connected with the IO of the intelligent chip such as single-chip microcomputer, and control the shutoff of output current by intelligent chip thus realize the brightness regulation of LED, this be widely used technology in prior art, no longer launches to describe herein.
LED light source plate is arranged on directly over sensor base plate and (can realizes arranging by structural members such as mounting brackets); And for the ease of realizing optical signal detecting, the light-sensitive surface of phototriode is just to the light-emitting area of LED light source plate.
(2) core controller.
Core controller of the present utility model is that double-core controls: single-chip microcomputer and CPLD controller.
Control system comprises single-chip microcomputer and CPLD chip.Single-chip microcomputer realizes being electrically connected with CPLD chip by SPI serial communication interface, the basis realizing above-mentioned communication connection is: single-chip microcomputer can simulate SPI Control timing sequence as a kind of intelligent control chip, modern and realize single-chip microcomputer spi bus and send data to CPLD chip and order carrys out control CPLD internal digital logic unit.
Physical circuit annexation is: the first input/output port of single-chip microcomputer is connected with the first input/output port of CPLD chip, and connecting line is designated as from device data input line SDI; Second input/output port of single-chip microcomputer is connected with the second input/output port of CPLD chip, and connecting line is designated as from device data output line SDO; 3rd input/output port of single-chip microcomputer is connected with the 3rd input/output port of CPLD chip, and connecting line is designated as clock cable SCLK; 4th input/output port of single-chip microcomputer is connected with the 4th input/output port of CPLD chip, and connecting line is designated as from devices enable signal wire CS.
Four input/output ports of single-chip microcomputer and four input/output ports of CPLD chip are corresponding is respectively connected in a word, produce by single-chip microcomputer the SPI communication interface that SPI work schedule realizes between single-chip microcomputer and CPLD chip, thus complete the transmission of data between the two.
Concrete single-chip microcomputer can select MCS51 series, and CPLD chip can adopt EPM7032S type CPLD chip to realize.
The signal output part OUT of N number of detecting unit is connected with N number of input/output port of CPLD controller is corresponding respectively, that is to say that CPLD is all connected with the signal output part OUT one_to_one corresponding of detecting unit except for all input/output ports realized except four ports communicating with single-chip microcomputer SPI, CPLD chip has a large amount of input/output port resources, usually there are at least 36 input/output ports, therefore removing 4 input/output ports also has 32 input/output ports to be used for being connected with detecting unit outward, pick-up transducers module output signal.In order to realize carrying out data acquisition to more detecting unit, following technical scheme can also be used: a slice single-chip microcomputer and multi-disc CPLD controller form controller core, SPI serial communication interface is all adopted to be electrically connected between each CPLD controller and single-chip microcomputer, the input/output port of each CPLD controller is all connected with the signal output part OUT of detecting unit, such as, adopt 3 CPLD controllers then can realize carrying out data acquisition to 96 detecting units.
Using method of the present utility model and the course of work as follows:
Sensor assembly of the present utility model is a kind of contactless, based on the object horizontal-shift quantity detection sensor of photoelectric measurement principle, common application is for detecting belt deviation (such as belt conveyer scale belt), concrete using method is arranged on by sensor base plate below tested belt (directly not contact with tested belt), LED light source plate is arranged on directly over sensor base plate, directly do not contact with tested belt equally, the above-mentioned setting of sensor base plate and LED light source plate can be realized by mechanical components such as mounting brackets.
In the prior art, the driving circuit be arranged in LED light source plate all has drive current adjustment end and output enable end (the R_EXT pin of such as MBI5026CF chip and OE pin) usually, above-mentioned two ports are connected with the IO of single-chip microcomputer, single-chip microcomputer just can control lighting of LED, extinguishes and brightness.And the lighting of LED, to extinguish and gamma correction is the essential condition parameter of test.
As shown in Figure 1, during concrete test, the length of the array of N number of detecting unit composition or the wide width (can according to the sensor circuit of the different array sizes of the size Selection of corresponding field tests testee) being greater than tested belt, like this, the tested belt be arranged between sensor base plate and LED light source plate must shelter from the light of corresponding part, detecting unit on this operative sensor base plate cannot receive light, and remaining part detecting unit then can receive light.
After sensor circuit powers on, the phototriode conducting in the detecting unit of light can be received, low level appears in the collector of phototriode; And the phototriode not conducting that can not receive in the detecting unit of light, there is high level in the collector of phototriode.
In other words, the detecting unit output high level of part is not covered by tested belt, and the detecting unit output low level of part is covered by tested belt, again because each detecting unit is arranged in sensor base plate with array way, after therefore the output signal of each detecting unit is passed to single-chip microcomputer by CPLD controller, single-chip microcomputer draws the horizontal direction position of current tested belt by logical operation.And by the horizontal direction position of tested belt more in the same time, single-chip microcomputer can judge whether tested belt there occurs horizontal-shift, if there occurs horizontal-shift single-chip microcomputer can send alerting signal, certainly concrete side-play amount also can be compared by twice, front and back position coordinates and draw.In addition above-mentioned judged result can be outputted to host computer for tester by single-chip microcomputer.
From above measuring principle, detecting unit quantity in array of detection units is more, array is more intensive, the precision then detected is higher, but the excessive sensor circuit output port that also can cause of detecting unit quantity is too much, circuit connecting wiring is complicated, and the drawbacks such as single-chip data treatment capacity increase.
Finally how the Control on Communication set forth between single-chip microcomputer and CPLD realizes: single-chip microcomputer produces the SPI communication interface that SPI work schedule realizes between single-chip microcomputer and CPLD controller, this communication mode at least has root 4 line when one-way communication (only need 3 lines also can realize), concrete respectively: 1, from device data input line SDI, be also main equipment DOL Data Output Line; 2, from device data output line SDO, be also main equipment Data In-Line; 3, clock cable SCLK, clock signal is produced by main equipment; 4, from devices enable signal wire CS.Main equipment and carry out synchronous serial-data transmission between equipment, under the shift pulse of main equipment, data step-by-step is transmitted, and high-order front, status, rear, is full-duplex communication, simply efficiently.In the utility model, single-chip microcomputer is main equipment, and CPLD is from equipment.
What finally illustrate is, above embodiment is only in order to illustrate the technical solution of the utility model and unrestricted, although be described in detail the utility model with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can modify to the technical solution of the utility model or equivalent replacement, and not departing from aim and the scope of technical solutions of the utility model, it all should be encompassed in the middle of right of the present utility model.

Claims (1)

1. based on an object horizontal-shift detection system for dual controller, it is characterized in that, form primarily of photoelectric testing sensor module, single-chip microcomputer and CPLD controller;
Described photoelectric testing sensor module is made up of sensor base plate and LED light source plate;
Described sensor base plate is made by insulating material; N number of detecting unit is arranged on sensor base plate according to rectangular array mode is evenly distributed; Be provided with LED and driving circuit thereof in LED light source plate, described driving circuit is electrically connected with LED; Described detecting unit comprises phototriode, and the collector of described phototriode is connected with positive source VCC by biasing resistor, and the emitter of phototriode is connected to the ground and connects, the signal output part OUT of the current collection of phototriode very detecting unit; Described LED light source plate is arranged on directly over sensor base plate; The light-sensitive surface of described phototriode is just to the light-emitting area of LED light source plate;
Described single-chip microcomputer realizes being electrically connected with described CPLD controller by SPI serial communication interface: the first input/output port of single-chip microcomputer is connected with the first input/output port of CPLD controller, and connecting line is designated as from device data input line SDI; Second input/output port of single-chip microcomputer is connected with the second input/output port of CPLD controller, and connecting line is designated as from device data output line SDO; 3rd input/output port of single-chip microcomputer is connected with the 3rd input/output port of CPLD controller, and connecting line is designated as clock cable SCLK; 4th input/output port of single-chip microcomputer is connected with the 4th input/output port of CPLD controller, and connecting line is designated as from devices enable signal wire CS;
The signal output part OUT of described N number of detecting unit is connected with N number of input/output port of CPLD controller is corresponding respectively.
CN201521048613.9U 2015-12-08 2015-12-08 Object level skew detecting system based on dual controller Expired - Fee Related CN205210613U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201521048613.9U CN205210613U (en) 2015-12-08 2015-12-08 Object level skew detecting system based on dual controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201521048613.9U CN205210613U (en) 2015-12-08 2015-12-08 Object level skew detecting system based on dual controller

Publications (1)

Publication Number Publication Date
CN205210613U true CN205210613U (en) 2016-05-04

Family

ID=55848321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201521048613.9U Expired - Fee Related CN205210613U (en) 2015-12-08 2015-12-08 Object level skew detecting system based on dual controller

Country Status (1)

Country Link
CN (1) CN205210613U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390602A (en) * 2017-09-12 2017-11-24 合肥乐卡五金制造有限公司 A kind of object of which movement detecting system and monitor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390602A (en) * 2017-09-12 2017-11-24 合肥乐卡五金制造有限公司 A kind of object of which movement detecting system and monitor

Similar Documents

Publication Publication Date Title
CN205209436U (en) A sensor circuit for horizontal offset of detecting object
CN209086366U (en) A kind of detection device of airborne GJB-289A bus communication cable
CN205941771U (en) Connector short circuit accredited testing organization
CN104865493A (en) CELL panel open-short circuit detection device and method
WO2024041259A1 (en) Intelligent lamp strip detection method, circuit and apparatus, and intelligent lamp strip
CN102331546A (en) Device for detecting quality of multi-core cable based on wireless transmit-receive mode
CN206804777U (en) Short circuit detection means
CN201796104U (en) Vehicle-mounted wire harness connection and disconnection detector
CN205210613U (en) Object level skew detecting system based on dual controller
CN208399592U (en) Cable through and insulation tester
CN209280273U (en) LED test card
CN202329850U (en) Temperature rise detecting system of switch apparatus
CN104408213A (en) Portable data acquisition card
CN205209437U (en) Horizontal off tracking detection device of belt based on singlechip
CN104467668A (en) Multi-channel photovoltaic module generating capacity test data collection system
CN110346534A (en) A kind of soil moisture automatic alarm system
CN203054149U (en) An automatic open circuit and short circuit testing system of a CMOS chip
CN102080951A (en) Cloth width measuring system
CN205204113U (en) Belt off tracking detection circuitry based on CPLD
CN202583875U (en) Robot photoelectric tracking system under multicolor background
CN210606102U (en) Fault detection system of traffic signal lamp
CN104251944A (en) LED (light emitting diode) drive module detection system
CN205138548U (en) Temperature and humidity measuring apparatus
CN207752087U (en) Line fault detecting system
CN206348374U (en) A kind of acquisition system based on photoimpact ammeter electric quantity metering result

Legal Events

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

Granted publication date: 20160504

Termination date: 20161208