CN203981191U - A kind of photoelectric sensor of deviation-rectifying system - Google Patents

A kind of photoelectric sensor of deviation-rectifying system Download PDF

Info

Publication number
CN203981191U
CN203981191U CN201320852305.6U CN201320852305U CN203981191U CN 203981191 U CN203981191 U CN 203981191U CN 201320852305 U CN201320852305 U CN 201320852305U CN 203981191 U CN203981191 U CN 203981191U
Authority
CN
China
Prior art keywords
circuit
chip microcomputer
mcu single
signal
optical
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
CN201320852305.6U
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 wendte Industrial Co. Ltd.
Original Assignee
CHONGQING DONGDENG TECHNOLOGY Co Ltd
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 DONGDENG TECHNOLOGY Co Ltd filed Critical CHONGQING DONGDENG TECHNOLOGY Co Ltd
Priority to CN201320852305.6U priority Critical patent/CN203981191U/en
Application granted granted Critical
Publication of CN203981191U publication Critical patent/CN203981191U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model discloses a kind of photoelectric sensor of deviation-rectifying system.It comprises MCU single-chip microcomputer, optical transmission circuit, optical receiving circuit, output driving circuit and display circuit, MCU Single-chip Controlling optical transmission circuit sends light signal, optical receiving circuit receiving optical signals exchanges amplification, MCU single-chip microcomputer gathers signal fluctuation value the calculated difference of optical receiving circuit, key circuit arranges the state that material blocks completely or do not block, the highest minimum of signal calculated difference that lower optical receiving circuit was blocked or do not block in the storage of MCU single-chip microcomputer entirely, MCU single-chip microcomputer calculates two differences in proportion, using the result of calculating acquisition as signal, supply with output driving circuit, and control display circuit.The utility model has the advantages that, overcome the impact of the transparency of material, improved correction precision.

Description

A kind of photoelectric sensor of deviation-rectifying system
Technical field
The utility model belongs to deviation correction control system field, is specifically related to a kind of photoelectric sensor of deviation-rectifying system.
Background technology
At present, the sensor of deviation-rectifying system is divided into by material recognition object: follow limit sensor, with line sensor with limit, follow line sensor three major types.Wherein with line sensor with limit, with line sensor, generally be reflective, technical difficulty and cost are relatively high, and debugging difficulty is also larger; And mostly be U-shaped correlation with limit sensor, and difficulty and cost are relatively low, and debugging is convenient.
U-shaped emission sensor is divided into again two kinds of photoelectric sensor and ultrasonic sensors.The advantage of ultrasonic sensor is the impact that it is not subject to the transparency of material, so long as not netted or ventilative material, can accomplish to exempt from debugging, but cost is higher in a lot of occasions.Photoelectric sensor cost is lower, and the principal element that affects its job stability is the transparency of material, and correction precision is lower.
The circuit theory of existing photoelectric sensor as shown in Figure 1, it comprises MCU single-chip microcomputer 1, optical transmission circuit 2, optical receiving circuit 3, output driving circuit 4 and display circuit 5, MCU single-chip microcomputer 1 is controlled optical transmission circuit 2 and is sent light signal, optical receiving circuit 3 receiving optical signals become direct current signal from AC signal, send into output driving circuit 4, output driving circuit 4 carries out direct current amplification, MCU single-chip microcomputer 1 gathers the direct current signal of output driving circuit 4, and MCU single-chip microcomputer 1 is controlled display circuit 5 and shown corresponding state.
The principle of work of this photoelectric sensor is: MCU single-chip microcomputer provides the pulse signal of fixed frequency to optical transmission circuit, the power valve of optical transmission circuit produces corresponding frequencies utilizing emitted light, through U-shaped sensor inner side, be irradiated to the receiving tube of optical receiving circuit, inside material process U-shaped sensor, light beam detects, optical receiving circuit receives intensity of illumination, and amplify and filtering be processed into a DC voltage, send into output driving circuit, output driving circuit carries out direct current amplification by the DC voltage of reception again, for MCU single-chip microcomputer, gather, MCU single-chip microcomputer gathers actual voltage value and controls display circuit and shows corresponding state.
The shortcoming of existing photoelectric sensor is: if debug photoelectric sensor parameter with opaque material, while not blocking sensor light beam, be output as 5V, while entirely blocking sensor light beam, output voltage is 0V, now the normal work output voltage of this sensor is 0-5V, with the operation of just rectifying a deviation normally after this voltage matches controller, if but the on-the-spot material that to change transparency be 50%, there will be sensor output voltage scope to become 2.5-5V, must on controller, again do the matching operation of sensor actual output voltage.And controlled device is on the accuracy of identification restriction of voltage and the on-the-spot impact of disturbing, as because the high sensor actual output voltage of material transparency difference is less than 0.5V, controller likely occurs that erroneous judgement is disconnected, has a strong impact on correction precision.
Summary of the invention
Technical problem to be solved in the utility model is just to provide a kind of photoelectric sensor of deviation-rectifying system, and it can overcome the impact of the transparency of material, improves correction precision.
Technical problem to be solved in the utility model is to realize by such technical scheme, it comprises MCU single-chip microcomputer, optical transmission circuit, optical receiving circuit, output driving circuit and display circuit, MCU Single-chip Controlling optical transmission circuit sends light signal, the output terminal of optical receiving circuit connects the input end of MCU single-chip microcomputer, the output terminal of key circuit connects the control end of MCU single-chip microcomputer, MCU single-chip microcomputer output terminal connects output driving circuit, and the demonstration output port of MCU single-chip microcomputer connects display circuit.
Principle of work of the present utility model is: optical receiving circuit receiving optical signals exchanges amplification, MCU single-chip microcomputer gathers signal fluctuation value the calculated difference of optical receiving circuit, key circuit arranges the state that material blocks completely or do not block, the highest minimum of signal calculated difference that lower optical receiving circuit was blocked or do not block in the storage of MCU single-chip microcomputer entirely, MCU single-chip microcomputer calculates two differences in proportion, using the result of calculating acquisition as signal, supply with output driving circuit, and control display circuit.
Owing to thering is key circuit, the state that entirely blocks or do not block is set, MCU monolithic function obtains the maximum difference under this two states, and this maximum difference is preserved, simultaneously MCU single-chip microcomputer collection in worksite material partly blocks through light beam the signal fluctuation value producing in process, two kinds of differences are calculated in proportion, by display circuit, show on the one hand the state of material, to controller, provide signal to implement correction on the other hand.Because material transparency is different, its maximum difference and signal fluctuation value are all different, but its ratio is only relevant with occlusion state.Overcome like this impact of the transparency of material, improved correction precision.
Accompanying drawing explanation
Accompanying drawing of the present utility model is described as follows:
Fig. 1 is the schematic block circuit diagram of existing photoelectric sensor;
Fig. 2 is schematic block circuit diagram of the present utility model;
Fig. 3 is the circuit diagram of optical receiving circuit of the present utility model;
Fig. 4 is the main program flow chart that the utility model MCU single-chip machine information is processed;
Fig. 5 is timer interrupt program process flow diagram;
Fig. 6 is button setting program process flow diagram.
In figure: 1.MCU single-chip microcomputer; 2. optical transmission circuit; 3. optical receiving circuit; 4. output driving circuit; 5. display circuit; 6. key circuit.
Embodiment
Below in conjunction with drawings and Examples, the utility model is described in further detail:
As shown in Figure 2, the utility model comprises and includes MCU single-chip microcomputer 1, optical transmission circuit 2 optical receiving circuits 3, output driving circuit 4 and display circuit 5, MCU single-chip microcomputer 1 is controlled optical transmission circuit 2 and is sent light signal, the output terminal of optical receiving circuit 3 connects the input end of MCU single-chip microcomputer 1, the output terminal of key circuit 6 connects the control end of MCU single-chip microcomputer 1, MCU single-chip microcomputer 1 output terminal connects output driving circuit 4, and the demonstration output port of MCU single-chip microcomputer 1 connects display circuit 5.
In Fig. 2, optical receiving circuit 3 receiving optical signals exchange amplification, MCU single-chip microcomputer 1 gathers signal fluctuation value the calculated difference of optical receiving circuit 3, key circuit 6 arranges the state that material blocks completely or do not block, the highest minimum of signal calculated difference that lower optical receiving circuit 3 was blocked or do not block in 1 storage of MCU single-chip microcomputer entirely, MCU single-chip microcomputer 1 calculates two differences in proportion, using the result of calculating acquisition as signal, supply with output driving circuit 4, and control display circuit 5.
As shown in Figure 3, optical receiving circuit 3 comprises light receiving tube and amplifying circuit, after the output port interference filter electric capacity in parallel of light receiving tube, be connected to the input amplifier mouth that operational amplifier forms, amplifying circuit is done after interchange is amplified and is directly sent into MCU single-chip microcomputer 1 collection signal peak value the signal of light receiving tube output.
The flow process that MCU single-chip machine information of the present utility model is processed comprises the following steps:
Main program flow is as shown in Figure 4 as follows:
Program starts from S101;
At step S102, program initialization peripheral port, obtain the minimax voltage difference ADmax, the ADmin that preserved last time, and opening timing device, the timing value of timer has determined the transmission frequency of radiating circuit, because needing the high lower peak voltages of Real-time Collection signal, so frequency should not be too high (embodiment is shown in that S201 to S205 timer interrupts treatment scheme);
At step S103, time delay is waited for a period of time, and then carries out S104; The time delay stand-by period at least surpasses the time of twice interruption, makes interrupt routine upgrade at least respectively once the highest minimum voltage value;
At step S104, calculate the difference AD of two voltage AD1, AD2 of state-of-the-art record in interrupt function, then carry out S105.If AD1>AD2, AD=AD1-AD2; If AD1<AD2, AD=AD2-AD1;
At step S105, contrast the voltage difference of current calculating at the shared ratio of the corresponding full difference range of current material, rear execution S106.Ratio computing method are:
(AD-?ADmin)/(ADmax-ADmin)
At step S106, the corresponding ratio of calculating according to S105 light for LED do demonstration effect, and by the pwm signal of corresponding ratio, control output stage and export relevant voltage signal to controller;
At step S107, program current period is complete, and rebound S104 starts the computing in next cycle.
In master routine as interrupt request or button occur carry out by next jumping out the flow process that continues master routine after corresponding program.
Figure 5 shows that timer interrupt program flow process:
When timer interrupts occurring, program jumps to S201 and starts down to carry out:
At step S201, carry out S202 after switching current power valve state; As current power valve state is lighted for turn-offing;
At step S202, wait for certain hour, make receiving circuit output reach maximum or minimum peak, this time is the response time of sensor emission, receiving circuit, according to actual conditions, regulates, very short;
At step S203, S204, read current crest voltage, and save as crest voltage AD1 or the AD2 of power valve corresponding states;
At step S205, stop timing device interrupt routine, continues to carry out master routine.
Figure 6 shows that button setting program flow process:
When button is pressed, program jumps to S301 and starts to carry out:
At step S301, two magnitudes of voltage that calculate current timer interrupt function record with S104 obtain difference AD, are designated as ADmax, rear execution S302;
At step S302, wait for that next function button presses.Button is pressed rear execution S303;
At step S303, two magnitudes of voltage that calculate current timer interrupt function record with S104 obtain difference AD, are designated as ADmin, rear execution S304;
At step S304, the magnitude of voltage of record when contrasting twice button and pressing, and adjust position, make ADmin<ADmax, and preserve; Be specially, if ADmin>ADmax carries out following operation: otherwise do not change;
ADmin=ADmin+ADmax;ADmax=ADmin-ADmax;ADmin=ADmin-ADmax;
At step S304, finish setting option flow process, return and continue to carry out master routine.

Claims (2)

1. the photoelectric sensor of a deviation-rectifying system, include MCU single-chip microcomputer (1), optical transmission circuit (2), optical receiving circuit (3), output driving circuit (4) and display circuit (5), MCU single-chip microcomputer (1) is controlled optical transmission circuit (2) and is sent light signal, it is characterized in that: the output terminal of optical receiving circuit (3) connects the input end of MCU single-chip microcomputer (1), the output terminal of key circuit (6) connects the control end of MCU single-chip microcomputer (1), MCU single-chip microcomputer (1) output terminal connects output driving circuit (4), the demonstration output port of MCU single-chip microcomputer (1) connects display circuit (5).
2. the photoelectric sensor of a kind of deviation-rectifying system according to claim 1, it is characterized in that: optical receiving circuit (3) comprises light receiving tube and amplifying circuit, amplifying circuit is done to exchange to amplify to the signal of light receiving tube output and is directly sent into MCU single-chip microcomputer (1) collection.
CN201320852305.6U 2013-12-23 2013-12-23 A kind of photoelectric sensor of deviation-rectifying system Expired - Fee Related CN203981191U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201320852305.6U CN203981191U (en) 2013-12-23 2013-12-23 A kind of photoelectric sensor of deviation-rectifying system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201320852305.6U CN203981191U (en) 2013-12-23 2013-12-23 A kind of photoelectric sensor of deviation-rectifying system

Publications (1)

Publication Number Publication Date
CN203981191U true CN203981191U (en) 2014-12-03

Family

ID=51978621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201320852305.6U Expired - Fee Related CN203981191U (en) 2013-12-23 2013-12-23 A kind of photoelectric sensor of deviation-rectifying system

Country Status (1)

Country Link
CN (1) CN203981191U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114279482A (en) * 2021-11-26 2022-04-05 山东云海国创云计算装备产业创新中心有限公司 Transmission sensor calibration method and system
CN117073535A (en) * 2023-07-10 2023-11-17 深圳市志奋领科技有限公司 Deviation correcting sensor system and deviation correcting method
CN117146709A (en) * 2023-10-30 2023-12-01 钛玛科(北京)工业科技有限公司 Deviation rectifying control device and system based on automatic selection of sensor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114279482A (en) * 2021-11-26 2022-04-05 山东云海国创云计算装备产业创新中心有限公司 Transmission sensor calibration method and system
CN114279482B (en) * 2021-11-26 2024-04-09 山东云海国创云计算装备产业创新中心有限公司 Verification method and system for transmission sensor
CN117073535A (en) * 2023-07-10 2023-11-17 深圳市志奋领科技有限公司 Deviation correcting sensor system and deviation correcting method
CN117146709A (en) * 2023-10-30 2023-12-01 钛玛科(北京)工业科技有限公司 Deviation rectifying control device and system based on automatic selection of sensor
CN117146709B (en) * 2023-10-30 2024-02-02 钛玛科(北京)工业科技有限公司 Deviation rectifying control device and system based on automatic selection of sensor

Similar Documents

Publication Publication Date Title
CN203981191U (en) A kind of photoelectric sensor of deviation-rectifying system
CN100425191C (en) Air pressure sensing vacuum cleaner
CN207181719U (en) Low energy consumption auto-induction apparatus
CN202918268U (en) Detection control circuit for human body infrared signal and environmental brightness signal
CN204576135U (en) A kind of SCM Based multifunctional intellectual detection control device
CN204859641U (en) Automatic LED street lamp of luminance is adjusted to sensitization
CN202512457U (en) Micro optical fiber spectroscope constant temperature control device
CN202789641U (en) Automatic orientation electric fan
CN102374563B (en) There is range hood and the control method thereof of automatic flue gas detection device
CN106440213A (en) Air conditioner and control method and system for the same
CN103716945A (en) Indoor lighting control system
CN202958031U (en) New type intelligent and energy-saving controller of LED (Light Emitting Diode) desk lamp
CN102374562B (en) There is the range hood of automatic flue gas detection device
CN102563197A (en) Constant-temperature automatic control method and device for central heating flow valve
CN201927178U (en) Intelligent traffic system
CN202235410U (en) Automatic photograph exposure control system
CN203490469U (en) LED voice control projection alarm clock
CN202885174U (en) Energy-saving air conditioner capable of detecting human body
CN205034106U (en) Environment -friendly vacuum pump controller
CN210222120U (en) Equal-precision broadband frequency meter based on STM32
TWI500948B (en) Power detection and calibration device, and power detection and calibration method
CN106093595A (en) Bulky capacitor assembly detects device discharge time
CN202372818U (en) Multi-mode infrared control switch
CN210781423U (en) Electromagnetic heating drive circuit based on single chip microcomputer control
CN104267240A (en) Low-power-consumption vibration detection lithium battery pack voltage detecting method and device

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160119

Address after: 400000, No. 12, Jian steel village, Pingshan industrial area, Wansheng, Chongqing

Patentee after: Chongqing wendte Industrial Co. Ltd.

Address before: Three road 400041 Chongqing Jiulongpo Branch Park No. 67 (Shiqiaopu standard workshop G building 3 floor)

Patentee before: CHONGQING DONGDENG TECHNOLOGY CO., LTD.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141203

Termination date: 20161223

CF01 Termination of patent right due to non-payment of annual fee