Sensor detecting device and detection method
Technical field
The present invention relates to a kind of checkout gear and detection method, in particular, relate to the checkout gear and the detection method of the transducer that uses in a kind of back projection television.
Background technology
Auto convergence is to guarantee the normal essential condition that shows of image in the production of back projection TV.The realization of auto convergence is four centers transducer being fixed in back projection TV.When factory adjusts, guarantee that red, green, blue three kinds of colors overlap, this moment, red, green, blue three kinds of scan lines scanned transducer, determined the center that assemble this moment, with the signal of transducer output this moment, via the A/D conversion, and were saved in the memory.After television set dispatched from the factory, because of the variation in magnetic field, converged position changed, thereby it is undesired to cause image to show.Turn on " auto convergence " function of television set this moment, red, green, blue three kinds of scan lines scan transducer, and the data and the normal data in the memory of inciting somebody to action this moment compare, if find that data are undesired, existing undesired data will be covered by normal data, and, redefine the center of image and convergence according to the position of transducer.If damaging appears in transducer, the center of convergence and image can't determine that data can not be preserved, and can not realize auto convergence, has a strong impact on the normal demonstration of image.Therefore, aborning, detect very necessary before the input of transducer.The existing sensors checkout gear is that light source is placed on and the corresponding position of transducer, and transducer is connected with digital multimeter with power supply respectively.Open light source, read this voltage, confirm whether in critical field from digital multimeter.Close light source, read this voltage, confirm whether in critical field from digital multimeter.If all in critical field, determine sensor is qualified for twice voltage.Since use external lights, as General desk lamp, or the family expenses fluorescent lamp, be subjected to the influence of external environment condition bigger.As: the people walks about, the moving of position, outside light intensity is very big to the result's influence that detects.And rely on the universal instrument reading, be easy to generate erroneous judgement during judgement.The light ON/OFF is leaned on manual operation, inconvenient operation, and production efficiency is low.
Summary of the invention
The objective of the invention is to, provide a kind of easy to use, accuracy of judgement, sensor detecting device that production efficiency is high and detection method.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of sensor detecting device, comprise power supply, transducer, sensor signal output circuit, microprocessor, demonstration and display control circuit, light source and control circuit for light source, be provided with light source with the corresponding position of described transducer, described transducer is connected with microprocessor by sensor signal output circuit, described microprocessor is connected with demonstration and display control circuit, control circuit for light source respectively, and described control circuit for light source is connected with light source; Described power supply is connected with transducer with microprocessor respectively.
Described sensor signal output circuit is formed V by divider resistance R3, R4 and switch triode Q4
CC-5V power supply provides operating voltage for transducer, and be connected with the collector electrode of switch triode Q4, the output of transducer is connected with divider resistance R4 one end, the other end of divider resistance R4 is connected with the base stage of dividing potential drop adjustable resistance R3 and switch triode Q4 respectively, and the emitter of switch triode Q4 is connected to the sensor signal input of microprocessor.
Described demonstration and display control circuit are made up of red and green color LED, switch triode Q2, Q3; V
CC-5V power supply is connected to the collector electrode of switch triode Q2, Q3; The base stage of switch triode Q2 is connected to the red LED control pin of microprocessor, receives the control signal that microprocessor sends, and the emitter of switch triode Q2 connects red LED, and red LED is controlled; The base stage of switch triode Q3 is connected to the green red LED control pin of microprocessor, receives the control signal that microprocessor sends, and the emitter of switch triode Q3 connects green LED, green LED is controlled the other end ground connection of dual-colored LED.
Described control circuit for light source is emitting led by height, switch triode Q1 and divider resistance R5, R6 form V
CC-5V power supply is connected with the LED input, the LED output is connected to the collector electrode of switch triode Q1, the lamp control signal output of microprocessor is connected with divider resistance R5, the other end of divider resistance R5 is connected with the base stage of divider resistance R6, switch triode Q1 respectively, the grounded emitter of switch triode Q1, the other end ground connection of divider resistance R6.
Described light source is high emitting led, the irradiation of light along continuous straight runs, and the transducer vertical direction is placed.
A kind of sensor detecting device carries out the method for sensor, it is characterized in that, comprises the steps:
(1) whether open light source, detecting has transducer to insert, if there is not transducer to insert, then shows no transducer access information;
(2) if there is transducer to insert, then the input signal to transducer detects, and whether normal, and judge whether information is normal if detecting level, if undesired, then show electric undesired information, and return the light source state of opening;
(3) if electricity is normal, then testing result is deposited in and open signal storage under the light source condition;
(4) close light source again, whether the detecting sensor input signal is normal, and judges whether information is normal, if undesired, then shows undesired information, and returns the light source state of opening;
(5) if normal, then call store in the memory open light source the time transducer output information, the output information of the transducer when closing light source compares, if the result is normal, then show the transducer normal information,, then show the undesired information of transducer if undesired, enter afterwards and open the light source state, wait the detection of pending next transducer.
Sensor detecting device of the present invention and detection method have following advantage:
1. owing to adopt Based Intelligent Control, by switch triode the switch of light source is controlled, judging for automation provides possibility.And, simplified operation, easy to use, improved production efficiency.Reduced the error that artificial judgement causes, improved the accuracy of judging, erroneous judgement is zero.
2. adopt highlighted LED, and the irradiation of light along continuous straight runs, the transducer vertical direction is placed, and reduces the influence of external light source.
Description of drawings
Fig. 1 is a sensor detecting device circuit diagram of the present invention;
Fig. 2 is the concrete circuit diagram of sensor detecting device of the present invention;
Fig. 3 is a sensor detecting method flow chart of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments to the detailed description of the invention.
The circuit diagram of sensor detecting device of the present invention comprises power supply, transducer, sensor signal output circuit, microprocessor, demonstration and display control circuit, light source and control circuit for light source as shown in Figure 1.Be provided with light source with the corresponding position of transducer.Transducer is connected with microprocessor by sensor signal output circuit, and microprocessor is connected with demonstration and display control circuit, control circuit for light source respectively, and control circuit for light source is connected with light source.Power supply is connected with transducer with microprocessor respectively.For fear of the influence of external light source to testing result, light source adopts high emitting led.
The concrete circuit diagram of sensor detecting device of the present invention as shown in Figure 2, wherein microprocessor adopts ATMEL AT89C51 or AT89C2051, is mainly used in identification, judgement and the external control of signal.Use 220V~5V power supply adaptor as the equipment work power supply.Use dual-colored LED to come display message as display device, redness is undesired, and green is normal, and is orange in detecting.Use high emitting led as the equipment light source.
Microprocessor is connected with sensor signal output circuit, demonstration and display control circuit, control circuit for light source respectively by different pins.
Sensor signal output circuit is formed V by divider resistance R3, R4 and switch triode Q4
CC-5V power supply provides operating voltage for transducer, and be connected with the collector electrode of switch triode Q4, the output of transducer is connected with divider resistance R4 one end, the other end of divider resistance R4 is connected with the base stage of dividing potential drop adjustable resistance R3 and switch triode Q4 respectively, to pass through adjusting dividing potential drop adjustable resistance R3, the base voltage that makes switch triode Q4 is about 2.3 volts.The emitter of switch triode Q4 is connected to the sensor signal input of microprocessor, i.e. the pin 4 of AT89C51.When switch triode Q4 base voltage during less than 2.0V, Q4 emitter output low level.Output signal is sent into microcontroller.Because switch triode Q4 base voltage directly influences the precision of system's judgement when ambient light changes, and can guarantee system accuracy by the adjustment of R3.
Demonstration and display control circuit are made up of double-colored (red, green) LED D2, switch triode Q2, Q3.V
CC-5V power supply is connected to the collector electrode of switch triode Q2, Q3.The base stage of switch triode Q2 is connected to the red LED control pin of microprocessor, and promptly the pin 1 of AT89C51 receives the control signal that microprocessor sends, and the emitter of switch triode Q2 connects red LED, and red LED is controlled.The base stage of switch triode Q3 is connected to the green red LED control pin of microprocessor, be the pin 2 of AT89C51, receive the control signal that microprocessor sends, the emitter of switch triode Q3 connects green LED, green LED is controlled the other end ground connection of dual-colored LED.Triode Q2, Q3 are operated on off state, base stage receives the control signal of sending from microcontroller, when red LED receives high level, red LED is luminous, when green LED receives high level, green LED is luminous, and two LED are simultaneously luminous when two LED receive high level simultaneously, for orange.
Control circuit for light source is formed V by the emitting led D1 of height, switch triode Q1 and divider resistance R5, R6
CC-5V power supply is connected with the LED input, the LED output is connected to the collector electrode of switch triode Q1, the lamp control signal output of microprocessor, the pin that is AT89C51 is connected with divider resistance R5, the other end of divider resistance R5 is connected with the base stage of divider resistance R6, switch triode Q1 respectively, the grounded emitter of switch triode Q1, the other end ground connection of divider resistance R6.By microcontroller output lamp control signal, through divider resistance R5, after the R6 dividing potential drop, be input to the base stage of Q1, when base stage was low level, the highlighted LED of D1 was not luminous, and when base stage was high level, the highlighted LED of D1 was luminous, used as light source.
Sensor flow chart of the present invention enters wait state as shown in Figure 3 behind the system boot.Whether connect light source, light source is opened, detecting has transducer to insert.If there is not transducer to insert, then microprocessor output high level is given red LED, shows there is not the transducer access information by red LED.
If there is transducer to insert, then the input signal to transducer detects, read the information of transducer output when opening light source, and judge whether information is normal, if it is undesired, then microprocessor output high level is given red LED, shows undesired information by red LED, and returns the light source state of opening.
If normal, then microprocessor output red and green high-level control signal, this moment, LED showed orangely, expression and will detect storage in memory just in detected state.Close light source afterwards, the input signal to transducer detects simultaneously, reads the information of transducer output when closing light source, and judge whether information is normal, if undesired, then microprocessor output high level is given red LED, show undesired information by red LED, and return the light source state of opening.
If normal, then call store in the memory open light source the time transducer output information, the output information of the transducer when closing light source is carried out and computing, and compared result is judged.If comparative result is 0, represent that then transducer is normal, then microprocessor output high level is given green LED, shows normal information by green LED.If comparative result is 1, represent that then transducer damages, then microprocessor output high level is given red LED, shows undesired information by red LED.Return the light source state of opening afterwards, carry out the detection of next transducer.
Owing to be subjected to the influence of external light source, before the use, the R3 adjustable resistance is adjusted, guarantee that test point voltage is 2.3 volts.After adjustment was finished, as long as transducer is inserted in the slot, system promptly detected automatically.
Although relate to a kind of sensor detecting device and detection method has been carried out special description to disclosed with reference to embodiment, embodiment described above is illustrative and not restrictive, under the situation that does not break away from the spirit and scope of the present invention, all variations and modification are all within the scope of the present invention.