Color detection and identification device
Technical Field
The utility model relates to a color check out test set, especially a colour detects recognition device.
Background
In the middle of industrial production, the color identification of object general overview, the product surface color detects, the product such as the color sign of product packing mainly through people's eye discernment object color, the producer need pay inefficiency when the high-priced labour cost, do not accord with the development of modern industrial automation production, and some inside circuit structure of colour detector on the market are complicated, need consume when considerable electric quantity influence the accuracy of measuring the structure because of unstable floating voltage easily, lead to detector short service life, and be unfavorable for carrying out long-time data display.
Disclosure of Invention
In order to overcome the defects of the prior art, the utility model provides a little, the strong colour of reliability of consumption detects recognition device.
The utility model provides a technical scheme that its technical problem adopted is:
the utility model provides a colour detects recognition device, comprises master control circuit, colour collection module, display circuit, transmission module and the power supply circuit who provides working power supply for above-mentioned circuit module, colour collection module and transmission module's output all with master control circuit's input electricity is connected, master control circuit output with display circuit's input electricity is connected.
The power supply circuit comprises a conversion chip IC1, a power interface J1, a control switch SW1, a diode D1, an inductor L2, a resistor R8, a resistor R9, a resistor R91, a resistor R11, a capacitor C10, a capacitor C11, a capacitor C19, a capacitor C14, a capacitor C31, a capacitor C30, a capacitor C20 and a capacitor C21; the 1 pin of the conversion chip IC1 is divided into two paths after passing through the capacitor C14, one path is connected with the 8 pins of the conversion chip IC1, and the other path is grounded through the inductor L2, the resistor R91, the resistor R11 and the resistor R9 in sequence; the 2 pins of the conversion chip IC1 are divided into three paths after passing through the switch SW1, one path is grounded through the power interface J1, and the second path and the third path are grounded through the capacitor C10 and the capacitor C11 respectively; the 3 pins of the conversion chip IC1 are suspended, the 4 pins are grounded through the capacitor C19, the 5 pins are connected with the node of the resistor R11 and the resistor R9, the 6 pins are divided into two paths, one path is grounded through the capacitor C31 and the resistor R8 in sequence, and the other path is grounded through the capacitor C30; the 7 pins of the conversion chip IC1 are divided into four paths, the first path is connected with the node of the inductor L2 and the capacitor C14 through the diode D1, the second path and the third path are respectively connected with the node of the inductor L2 and the resistor R91 through the capacitor C20 and the capacitor C21, and the fourth path is grounded.
The main control circuit comprises a control chip U1, a key K3, a capacitor C1, a resistor R2, a crystal oscillator Y1, a capacitor C2 and a capacitor C3; one end of the key K3 is connected with 5V voltage after being connected with the capacitor C1 in parallel, the other end of the key K3 is divided into two paths, one path is grounded through the resistor R2, and the other path is connected with a 9 pin of the control chip U1; one end of the capacitor C3 is grounded, the other end of the capacitor C3 is divided into two paths, one path is connected with a 19 pin of the control chip U1, and the other path is connected with an 18 pin of the control chip U1 through the crystal oscillator Y1; one end of the capacitor C2 is grounded, and the other end is connected with the node between the 18 pins of the control chip U1 and the crystal oscillator Y1.
The display circuit comprises a resistor R1, a resistor PR1 and an LCD display screen P1; pins 1 and 16 of the LCD display screen P1 are grounded, pins 2 and 15 are grounded with 5V voltage, pin 3 is grounded through the resistor R1, and pins 4, 5 and 6 are respectively grounded with pins 26, 27 and 28 of the control chip U1; the 7 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 2 pins of the exclusion PR1, and the other path is connected with the 39 pins of the control chip U1; the 8 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 3 pins of the resistor PR1, and the other path is connected with the 38 pin of the control chip U1; the 9 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 4 pins of the resistor PR1, and the other path is connected with the 37 pins of the control chip U1; the 10 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 5 pins of the exclusion PR1, and the other path is connected with the 36 pins of the control chip U1; the 11 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 6 pins of the resistor PR1, and the other path is connected with the 35 pins of the control chip U1; the 12 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 7 pins of the exclusion PR1, and the other path is connected with the 34 pins of the control chip U1; the 13 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 8 pins of the resistor PR1, and the other path is connected with the 33 pins of the control chip U1; the 14 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 9 pins of the exclusion PR1, and the other path is connected with the 32 pins of the control chip U1; the pin 1 of the resistor pack PR1 is divided into two paths, one path is connected with the pin 40 of the control chip U1, and the other path is connected with 5V voltage.
The model of the control chip U1 is stc89c 52.
The model of the color acquisition module is GY-31.
The transmission module is an SWD download interface.
The utility model has the advantages that: the utility model discloses a RGB colour data of colour collection module detection target, convey to main control circuit after the signal of telecommunication with light signal conversion, main control circuit carries out the colour data display that carries out the current detection target through display circuit's LCD display screen after the operation is handled, can feed back the RGB numerical value that detects the colour in real time, and whole circuit structure retrencies, replaces traditional artifical detection mode to carry out color discernment, has small, the strong, the low power dissipation advantage of stability.
Drawings
The present invention will be further explained with reference to the drawings and examples.
Fig. 1 is a schematic circuit diagram of the present invention.
Detailed Description
Referring to fig. 1, a colour detects recognition device comprises master control circuit, colour acquisition module, display circuit, transmission module and the power supply circuit who provides working power for above-mentioned circuit module, colour acquisition module and transmission module's output all with master control circuit's input electricity is connected, the master control circuit output with display circuit's input electricity is connected, and colour acquisition module detects the RGB colour data of target, conveys to master control circuit after converting light signal into the signal of telecommunication, and master control circuit carries out the colour data display that carries out current detection target through display circuit's LCD display screen after the operation handles, can feed back the RGB numerical value that detects the colour in real time, and whole circuit structure retrencies, replaces traditional artifical detection mode to carry out the colour discernment, has strong stability, the low-power consumption advantage.
The power supply circuit comprises a conversion chip IC1, a power interface J1, a control switch SW1, a diode D1, an inductor L2, a resistor R8, a resistor R9, a resistor R91, a resistor R11, a capacitor C10, a capacitor C11, a capacitor C19, a capacitor C14, a capacitor C31, a capacitor C30, a capacitor C20 and a capacitor C21; the 1 pin of the conversion chip IC1 is divided into two paths after passing through the capacitor C14, one path is connected with the 8 pins of the conversion chip IC1, and the other path is grounded through the inductor L2, the resistor R91, the resistor R11 and the resistor R9 in sequence; the 2 pins of the conversion chip IC1 are divided into three paths after passing through the switch SW1, one path is grounded through the power interface J1, and the second path and the third path are grounded through the capacitor C10 and the capacitor C11 respectively; the 3 pins of the conversion chip IC1 are suspended, the 4 pins are grounded through the capacitor C19, the 5 pins are connected with the node of the resistor R11 and the resistor R9, the 6 pins are divided into two paths, one path is grounded through the capacitor C31 and the resistor R8 in sequence, and the other path is grounded through the capacitor C30; the 7 pins of the conversion chip IC1 are divided into four paths, the first path is connected with the node of the inductor L2 and the capacitor C14 through the diode D1, the second path and the third path are respectively connected with the node of the inductor L2 and the resistor R91 through the capacitor C20 and the capacitor C21, and the fourth path is grounded; the node of the resistor 91 and the capacitor C21 is a working power supply output point and provides a 5V working power supply for a circuit module in the identification device; the power interface J1 is a DC direct current interface, the type of the conversion chip IC1 is TPS54331 and is used for limiting current and thermally protecting the whole power supply circuit, the capacitor C10, the capacitor C11, the capacitor C20 and the capacitor C21 are filter capacitors and filter interference for the power supply circuit, the diode D1 is a freewheeling diode, and the current of the power supply circuit can be smoothly changed by combining with the inductor L1, so that surge voltage is avoided, and a working power supply output by the power supply circuit is more smooth and stable.
The main control circuit comprises a control chip U1, a key K3, a capacitor C1, a resistor R2, a crystal oscillator Y1, a capacitor C2 and a capacitor C3; one end of the key K3 is connected with 5V voltage after being connected with the capacitor C1 in parallel, the other end of the key K3 is divided into two paths, one path is grounded through the resistor R2, and the other path is connected with a 9 pin of the control chip U1; one end of the capacitor C3 is grounded, the other end of the capacitor C3 is divided into two paths, one path is connected with a 19 pin of the control chip U1, and the other path is connected with an 18 pin of the control chip U1 through the crystal oscillator Y1; one end of the capacitor C2 is grounded, and the other end is connected with a node between the 18 pins of the control chip U1 and the crystal oscillator Y1; the model of control chip U1 is stc89C52, for low-power consumption microcontroller, carries out the operation to the colour RGB data that detect, and can further reduce recognition device's power consumption, button K3 is the reset button, enables recognition device and resumes initial condition to guarantee display circuit's display page integrality, crystal oscillator Y1, electric capacity C2 and electric capacity C3 constitute crystal oscillator circuit, for control chip U1 provides 32.768 KHz's crystal oscillator frequency.
The display circuit comprises a resistor R1, a resistor PR1 and an LCD display screen P1; pins 1 and 16 of the LCD display screen P1 are grounded, pins 2 and 15 are grounded with 5V voltage, pin 3 is grounded through the resistor R1, and pins 4, 5 and 6 are respectively grounded with pins 26, 27 and 28 of the control chip U1; the 7 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 2 pins of the exclusion PR1, and the other path is connected with the 39 pins of the control chip U1; the 8 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 3 pins of the resistor PR1, and the other path is connected with the 38 pin of the control chip U1; the 9 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 4 pins of the resistor PR1, and the other path is connected with the 37 pins of the control chip U1; the 10 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 5 pins of the exclusion PR1, and the other path is connected with the 36 pins of the control chip U1; the 11 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 6 pins of the resistor PR1, and the other path is connected with the 35 pins of the control chip U1; the 12 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 7 pins of the exclusion PR1, and the other path is connected with the 34 pins of the control chip U1; the 13 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 8 pins of the resistor PR1, and the other path is connected with the 33 pins of the control chip U1; the 14 pins of the LCD display screen P1 are divided into two paths, one path is connected with the 9 pins of the exclusion PR1, and the other path is connected with the 32 pins of the control chip U1; the pin 1 of the resistor pack PR1 is divided into two paths, one path is connected with the pin 40 of the control chip U1, and the other path is connected with 5V voltage; the model of LCD display screen P1 is LCD1602 LCD, has clear demonstration, small, light in weight, wide, the characteristics of ultra-low power consumption of viewing angle, can carry out clear information display at sunshine, exclusion PR1 is used for stabilizing the transfer signal between master control circuit and the display circuit, ensures identification device's stability, and the small characteristics of self, can further reduce identification device's occupation space.
The color acquisition module (marked as U2 in the figure) is GY-31 in model, has the advantages of wide light detection reaction range of more than 250000 and low energy consumption and high detection precision, detects RGB color data of a target, converts an optical signal into an electric signal and transmits the electric signal to the main control circuit, and the main control circuit performs operation processing and then displays the color data of the current detected target through an LCD display screen of the display circuit, so that the RGB numerical value of the detected color can be fed back in real time.
The transmission module (labeled as P2 in the figure) is an SWD download interface, and is used for interfacing with an upper computer, and acquiring programs and transmitting data.
The above embodiments do not limit the scope of the present invention, and those skilled in the art can make equivalent modifications and variations without departing from the overall concept of the present invention.