Digital coding method with optical flare number of times expressing information
Technical field
The invention belongs to electronic signal coding techniques field, more particularly relate to design with the digital coding method of optical flare number of times expressing information.
Background technology
In a lot of electrical equipment or equipment,, can't or seldom provide the information of internal operation owing to inadequate resource or in order not increase cost.The method of having used at present that information is provided has: utilize the display screen demonstration, utilize a plurality of signal lamps combinations to show or utilize auditory tone cues or the like.The cost that these methods have is too high, and the available amount of information that has is less, and the identification that has is got up too complicated.
01119110.4 number Chinese patent provides a kind of coding method of optoelectronic information.It can utilize same system or different system to encode information such as figure, image, document, file and compressed file thereof, and piece image or image sets that available different colours or the different gray-scale pixels of encoding formed are represented.This coding method is very complicated, and the cost costliness is difficult to apply in household electrical appliance or conventional equipment.
Summary of the invention
Purpose of the present invention, just be to overcome above-mentioned shortcoming and defect, provide a kind of simple in structure, accurately and reliably, with low cost, be easy in household electrical appliance or conventional equipment, apply, good effective in high-grade, precision and advanced complex device, both can express information about power, also can express the ten's digit coding method with optical flare number of times expressing information of non electrical quantity information.
In order to achieve the above object, the present invention includes following steps:
1. design a kind of pulse-switching circuit, it can controlling light emitting device send the optical flare pulse, and this circuit also is connected with electric weight or non electrical quantity transducer, can be the optical flare pulse with electric weight or non electrical quantity information representation, also comprises power supply in the foregoing circuit;
2. the every switch of luminescent device once that is flicker and once be called as flicker once, each flicker has fixing period T (second), the lasting time of flickering in the one-period respectively is T/2;
3. glimmer continuously N time coding numerical value of luminescent device is N, use between two coding numerical value greater than 1 period T extinguish state at interval, be called To interval, N is a positive integer;
4. the coding numerical value of N after interval is the encoded digital information of output;
5. by the correspondence table of predefined coding numerical value and information, can learn electric weight or non electrical quantity information that luminescent device is expressed.
Luminescent device can be and sends monochromatic luminescent device.Too much cause count not obvious for preventing the coding numerical value number of times that glimmers this moment, and N is preferably less than 20.
Luminescent device also can be and sends two or more heterogeneous light luminescent devices.Should distinguish digitally coded figure place this moment with glow color, as corresponding position of a kind of glow color wherein, corresponding ten of another kind of glow color, corresponding hundred of the third glow color, first kind of glow color glimmers N1 time continuously, and second kind of glow color glimmers N2 time continuously, and the third glow color glimmers N3 time continuously, the digital coding value then is N3 * 100+N2 * 10+N1, wherein N1, N2, N3 be positive integer and<10.T change-over time between the different colours is the fall time, and t 〉=0 should be arranged.The rest may be inferred for more multiple light color.
The present invention both can be the decimal system, also can be the M scale coding, and M is 〉=2 positive integer.Luminescent device is distinguished digitally coded figure place for sending two or more heterogeneous light luminescent devices with glow color at this moment.First kind of color corresponding to first, glimmer N1 time continuously, second kind of color corresponding to second, glimmer N2 time continuously, the third color corresponding to the 3rd, glimmer N3 time continuously, the digital coding value then is N1+N2 * M+N3 * M * M, wherein N1, N2, N3 be positive integer and<M.T change-over time between the different colours is the fall time, t 〉=0.The rest may be inferred for more multiple light color.
Luminescent device can adopt light-emitting diode.The color that light-emitting diode can send is abundant, and is beautiful in colour, cheap, and dependable performance is highly suitable for household electrical appliance or conventional equipment or high accuracy point complex device.Luminescent device also can adopt bulb or fluorescent tube.Bulb or fluorescent tube are cheap, are particularly useful for household electrical appliance or conventional equipment.
Luminescent device can also adopt laser generator.Though the laser generator price is more expensive, energy is high and concentrated, and the reliability height is particularly useful for complex device.
The invention provides a kind of simple in structure, accurately and reliably, with low cost, be easy in household electrical appliance or conventional equipment, apply, good effective in high-grade, precision and advanced complex device, both can express information about power, also can express the digital coding method with optical flare number of times expressing information of non electrical quantity information.
Description of drawings
Fig. 1 is the circuit block diagram of embodiment 1.
The coding sequential chart that Fig. 2 is embodiment 1 luminescent device when monochromatic.
Coding sequential chart when Fig. 3 is double-colored for embodiment 2 luminescent devices.
Coding sequential chart when Fig. 4 is three looks for embodiment 3 luminescent devices.
Embodiment
Embodiment 1.A kind of digital coding method, its circuit theory with optical flare number of times expressing information as shown in Figure 1, the coding sequential as shown in Figure 2.Its luminescent device adopts single color LED.It may further comprise the steps:
1. design a kind of pulse-switching circuit (1), it can controlling light emitting device (2) send the optical flare pulse, this circuit also is connected with electric weight or non electrical quantity transducer (3), can be the optical flare pulse with electric weight or non electrical quantity information representation, also comprises power supply (4) in the foregoing circuit;
2. the every switch of luminescent device once that is flicker and once be called as flicker once, each flicker has fixing period T (second), the lasting time of flickering in the one-period respectively is T/2;
3. glimmer continuously N time coding numerical value of luminescent device is N, use between two coding numerical value greater than 1 period T extinguish state at interval, be called To interval, N is a positive integer;
4. the coding numerical value of N after interval is the encoded digital information of output;
5. by the correspondence table of predefined coding numerical value and information, can learn electric weight or non electrical quantity information that luminescent device is expressed.
Embodiment 2.A kind of digital coding method with optical flare number of times expressing information, its coding sequential as shown in Figure 3.Red for sending, the white two kinds of heterogeneous light light-emitting diodes of its luminescent device.Distinguish digitally coded figure place with glow color, wherein white is corresponding, red corresponding ten.Continuously flicker N1 time of white is redly glimmered N2 time continuously, and the digital coding value then is N=N2 * 10+N1, wherein N1, N2 be positive integer and<10.T change-over time between the different colours is the fall time, t 〉=0.This is a kind of metric coding method.All the other steps are with embodiment 1.
Embodiment 3.A kind of digital coding method with optical flare number of times expressing information, its coding sequential as shown in Figure 4.Luminescent device is for sending three kinds of heterogeneous light light-emitting diodes.It distinguishes digitally coded figure place with glow color, corresponding position of first kind of white wherein, second kind red corresponding ten, hundred of the third blue looks corresponding.First kind of white is glimmered N1 time continuously, and second kind of redness glimmered N2 time continuously, and the third blue look glimmers N3 time continuously, the digital coding value then is N=N3 * 100+N2 * 10+N1, wherein N1, N2, N3 be positive integer and<10, t change-over time between the different colours is the fall time, t 〉=0.This also is a kind of metric coding method.All the other steps are still with embodiment 1.
Embodiment 1~embodiment is 3 simple in structure, accurately and reliably, with low cost, both can express information about power, also can express non electrical quantity information.It is easy to apply in household electrical appliance or conventional equipment, also can be applicable in the complex device.