Color recognition device and method for photoresistor

文档序号:5664 发布日期:2021-09-17 浏览:56次 中文

1. A color recognition device of a photo resistor, comprising:

a detection subject and a processor;

the detection main body comprises an enclosing cavity, a light transmitting opening is formed in the top surface of the enclosing cavity, and a photosensitive element and a light source are arranged on the bottom surface inside the enclosing cavity; the orthographic projection area of the light-transmitting opening on the bottom surface is just overlapped with the photosensitive element;

the processor is electrically connected with the photosensitive element and the light source respectively.

2. The color recognition device of a photo-resistor according to claim 1,

a plurality of the light sources are arranged on the bottom surface;

the photosensitive elements are arranged at the geometric center of the bottom surface, and the light sources are arranged to surround the photosensitive elements.

3. The color recognition device of a photo-resistor according to claim 2,

the photosensitive element comprises a photosensitive resistor, a photosensitive diode or a photosensitive triode;

the light source includes a light emitting diode.

4. The color recognition device of a photo-resistor according to claim 3,

a first port and a second port of the processor are respectively and electrically connected with a collector electrode and an emitter electrode of the phototriode;

a third port of the processor is electrically connected with a high potential end, and the high potential end is electrically connected with a positive electrode of the corresponding light emitting diode through a divider resistor;

the fourth port of the processor is electrically connected with the negative electrode of each light-emitting diode.

5. The color recognition device of a photo-resistor according to claim 4,

the number of the light-emitting diodes is four.

6. The color recognition device of a photo-resistor according to claim 1,

the color recognition device of the photoresistor further comprises a display, and the processor is electrically connected with the display.

7. The color recognition device of a photo-resistor according to claim 6,

the display comprises a nixie tube display, a liquid crystal display, an LED display or an OLED display.

8. The method for identifying a color identifying device of a photo resistor as claimed in claim 2, comprising the steps of:

s1) collecting color information of the object to be measured, wherein the object to be measured is close to the light-transmitting opening on the top surface of the surrounding cavity, so that the light source transmits through the light-transmitting opening to emit to the color surface of the object to be measured, and the color surface of the object to be measured reflects light to the bottom surface of the surrounding cavity;

s2) processing the optical signal, the main control module reads the voltage signal output by the photoresistor due to the reflected light, the voltage signal is processed and compared with the color voltage signal table in the storage module, and the color code is output;

s3) displaying the color code.

Background

At present, consumer electronic products such as daily necessities, toys, children education products and the like on the market often need a color recognition device of a photoresistor to assist in realizing certain functions. However, the existing color recognition device of the photoresistor for the articles has a complex structure and high cost, and creates obstacles for widely popularizing the color recognition function.

Disclosure of Invention

The present invention is directed to a color recognition apparatus and a color recognition method of a photo resistor, which can improve the above problems.

The embodiment of the invention is realized by the following steps:

in a first aspect, the present invention provides a color recognition device of a photo resistor, comprising:

a detection subject and a processor;

the detection main body comprises an enclosing cavity, a light transmitting opening is formed in the top surface of the enclosing cavity, and a photosensitive element and a light source are arranged on the bottom surface inside the enclosing cavity; the orthographic projection area of the light-transmitting opening on the bottom surface is just overlapped with the photosensitive element;

the processor is electrically connected with the photosensitive element and the light source respectively.

It can be understood that the invention discloses a color recognition device of a photoresistor, which comprises an enclosing cavity capable of forming a darkroom environment, wherein a photosensitive element and a light source are arranged in the enclosing cavity, and the photosensitive element is just aligned with a light-transmitting opening of the enclosing cavity. When the device is used, a user can place an article to be detected at the light transmitting opening, light beams emitted by the light source in the darkroom irradiate the article to be detected through the light transmitting opening, the photosensitive element receives the light beams reflected by the article to be detected and feeds corresponding electric signals back to the processor according to the reflected light beams, so that the processor can identify colors according to the electric signals.

In an alternative embodiment of the present invention, a plurality of the light sources are disposed on the bottom surface; the photosensitive elements are arranged at the geometric center of the bottom surface, and the light sources are arranged to surround the photosensitive elements.

It can be understood that the photosensitive element is arranged at the geometric center of the bottom surface, and the shape of the whole detection main body can be standardized, so that the structure of the whole detection main body is symmetrical, and the manufacturing is convenient.

In an alternative embodiment of the present invention, the photosensitive element includes a photoresistor, a photodiode, or a phototriode; the light source includes a light emitting diode.

In an alternative embodiment of the present invention, the first port and the second port of the processor are electrically connected to a collector and an emitter of the phototransistor, respectively; a third port of the processor is electrically connected with a high potential end, and the high potential end is electrically connected with a positive electrode of the corresponding light emitting diode through a divider resistor; the fourth port of the processor is electrically connected with the negative electrode of each light-emitting diode.

It will be appreciated that in use, the processor controls the switching of the light source in the enclosure chamber via the third port and the fourth port, and the processor receives the feedback electrical signal from the light sensitive element via the first port and the second port.

In an alternative embodiment of the present invention, the number of the light emitting diodes is four.

In an alternative embodiment of the present invention, the color recognition device of the light dependent resistor further comprises a display, and the processor is electrically connected to the display.

It can be understood that the processor can display the judgment result through the display after identifying the color of the object to be detected according to the electric signal fed back by the photosensitive element.

In alternative embodiments of the invention, the display comprises a nixie tube display, a liquid crystal display, an LED display, or an OLED display.

In a second aspect, the present invention provides a method for identifying a color identification device of a photoresistor, comprising the steps of:

s1) collecting color information of the object to be measured, wherein the object to be measured is close to the light-transmitting opening on the top surface of the surrounding cavity, so that the light source transmits through the light-transmitting opening to emit to the color surface of the object to be measured, and the color surface of the object to be measured reflects light to the bottom surface of the surrounding cavity;

s2) processing the optical signal, the main control module reads the voltage signal output by the photoresistor due to the reflected light, the voltage signal is processed and compared with the color voltage signal table in the storage module, and the color code is output;

s3) displaying the color code.

Has the advantages that:

the invention discloses a color recognition device of a photoresistor, which comprises an enclosing cavity capable of forming a darkroom environment, wherein a photosensitive element and a light source are arranged in the enclosing cavity, and the photosensitive element is just aligned to a light-transmitting opening of the enclosing cavity. When the device is used, a user can place an article to be detected at the light transmitting opening, light beams emitted by the light source in the darkroom irradiate the article to be detected through the light transmitting opening, the photosensitive element receives the light beams reflected by the article to be detected and feeds corresponding electric signals back to the processor according to the reflected light beams, so that the processor can identify colors according to the electric signals.

In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

FIG. 1 is a schematic view of a main structure of a color recognition device of a photo resistor according to the present invention;

FIG. 2 is a schematic view of the bottom structure of the detection body shown in FIG. 1;

FIG. 3 is a schematic circuit connection diagram of the color recognition device of the light dependent resistor shown in FIG. 1;

FIG. 4 is a schematic diagram of the connection relationship of another color recognition device of a photoresistor provided by the present invention;

FIG. 5 is a schematic external view of a coffee capsule maker according to the present invention;

fig. 6 is a schematic sectional view of the capsule coffee maker shown in fig. 5.

FIG. 7 is a typical response curve for a silicon photodiode, with wavelength nm on the abscissa and responsivity (mA/mW) on the ordinate.

Reference numerals:

the coffee machine comprises a detection body 10, a surrounding cavity 11, a light transmission opening 12, a photosensitive element 13, a phototransistor 130, a light source 14, a light emitting diode 140, a voltage division resistor 15, a processor 20, a display 30, a coffee machine body 40, a capsule drawer 50, a capsule groove 51 and a through hole 52.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In a first aspect, as shown in fig. 1 and 2, the present invention provides a color recognition device 100 of a photo resistor, comprising: a test subject 10 and a processor 20 (not shown in the figure).

The detection main body 10 comprises a surrounding cavity 11, a light-transmitting opening 12 is formed in the top surface of the surrounding cavity 11, and a photosensitive element 13 and a light source 14 are arranged on the bottom surface inside the surrounding cavity 11; the orthographic projection area of the light-transmitting opening 12 on the bottom surface is just overlapped with the photosensitive element 13; the processor 20 is electrically connected to the light sensitive element 13 and the light source 14, respectively.

It can be understood that the invention discloses a color recognition device of a light-sensitive resistor, which comprises an enclosing cavity 11 capable of forming a darkroom environment, wherein a light-sensitive element 13 and a light source 14 are arranged in the enclosing cavity 11, wherein the light-sensitive element 13 is exactly aligned with a light-transmitting opening 12 of the enclosing cavity 11. When the device is used, a user can place an object to be detected at the light-transmitting opening 12, the light beam emitted by the light source 14 in the darkroom irradiates the object to be detected through the light-transmitting opening 12, the light-sensitive element 13 receives the light beam reflected by the object to be detected, and a corresponding electric signal is fed back to the processor 20 according to the reflected light beam, so that the processor 20 can identify the color according to the electric signal.

In an alternative embodiment of the invention, as shown in fig. 2, a plurality of light sources 14 are provided on the bottom surface; the light sensor 13 is disposed at a geometrically central position of the bottom surface, and the respective light sources 14 are disposed so as to surround the light sensor 13.

It can be understood that the light sensor 13 is disposed at the geometric center of the bottom surface, and the shape of the whole detection body 10 can be standardized, so that the structure of the whole detection body 10 is symmetrical, and the manufacturing is convenient.

In an alternative embodiment of the present invention, the light sensitive element 13 comprises a light sensitive resistor, a light sensitive diode or a light sensitive triode 130; the light source 14 includes a light emitting diode 140.

In an alternative embodiment of the present invention, as shown in fig. 3, the first and second ports of the processor 20 are electrically connected to the collector and emitter of the phototransistor 130, respectively; the third port of the processor 20 is electrically connected to a high potential terminal, which is electrically connected to the positive electrode of the corresponding led 140 through the voltage dividing resistor 15; the fourth port of the processor 20 is electrically connected to the negative electrode of each light emitting diode 140.

It will be appreciated that, in use, the processor 20 controls the switching of the light source 14 in the enclosure 11 via the third and fourth ports, and the processor 20 receives the feedback electrical signal from the light sensitive element 13 via the first and second ports.

In an alternative embodiment of the present invention, the number of the light emitting diodes 140 is four.

As shown in fig. 4, the present invention further provides another color recognition device 200 of a photo resistor, in contrast to the color recognition device 100 of a photo resistor, the color recognition device 200 of a photo resistor further includes a display 30, and the processor 20 is electrically connected to the display 30.

It is understood that the processor 20 can display the judgment result through the display 30 after recognizing the color of the object to be detected according to the electrical signal fed back by the light sensitive element 13.

In alternative embodiments of the present invention, display 30 comprises a nixie tube display 30, a liquid crystal display, an LED display, or an OLED display.

In a second aspect, as shown in fig. 5 and 6, the present invention provides a coffee capsule machine comprising: coffee machine body 40, capsule drawer 50 and colour identification means 100 or 200 of the photoresistor of any of the first aspects. A capsule drawer 50 is removably arranged on the coffee machine main body 40, and a capsule groove 51 is arranged on the capsule drawer 50 to contain coffee capsules to be drunk; the capsule drawer 50 is provided with a through hole 52 at one side facing the inside of the coffee machine main body 40, the through hole 52 is communicated with the capsule groove 51, the detection main body 10 is arranged inside the coffee machine main body, and the light transmission opening 12 is aligned with the through hole 52.

It will be appreciated that different coffee varieties require different temperatures and amounts of water in making the beverage. The capsule coffee machine provided by the invention comprises the color recognition device of the photoresistor, the color recognition device of the photoresistor can detect the color of the coffee capsule in the capsule drawer 50 through the through hole 52 to recognize the coffee variety so as to control the water tank electric control valve and the heating device of the capsule coffee machine to match with the coffee variety, and the coffee capsule is matched with a proper amount of temperature and water quantity to prepare delicious coffee.

The invention discloses a method for identifying a color identification device of a photoresistor, which comprises the following steps:

s1) collecting color information of the object to be measured, wherein the object to be measured is close to the light-transmitting opening on the top surface of the surrounding cavity, so that the light source transmits through the light-transmitting opening to emit to the color surface of the object to be measured, and the color surface of the object to be measured reflects light to the bottom surface of the surrounding cavity;

s2) processing the optical signal, the main control module reads the voltage signal output by the photoresistor due to the reflected light, the voltage signal is processed and compared with the color voltage signal table in the storage module, and the color code is output;

s3) displaying the color code.

As shown in FIG. 7, the response characteristic of the silicon photodiode to incident light with a certain wavelength is used as the basis for the main control module of the circuit board to detect and determine the wavelength of the incident light, and the light of each color has a corresponding relationship with the wavelength, for example, purple light at 450nm, blue light at 480nm, cyan light at 480nm, yellow light at 580 nm, yellow light at 605 nm, and red light at 700nm, so that the color of the object to be detected can be fed back to the circuit board by using the characteristic in a low-cost manner, and the invention can be used in a plurality of fields.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种儿科临床智能诊断检测装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!