CN104968094A - Machine vision system and light source controller thereof - Google Patents

Machine vision system and light source controller thereof Download PDF

Info

Publication number
CN104968094A
CN104968094A CN201510326057.5A CN201510326057A CN104968094A CN 104968094 A CN104968094 A CN 104968094A CN 201510326057 A CN201510326057 A CN 201510326057A CN 104968094 A CN104968094 A CN 104968094A
Authority
CN
China
Prior art keywords
light
light source
emitting mode
source controller
mcu
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.)
Pending
Application number
CN201510326057.5A
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.)
High Automatic Technology (shenzhen) Co Ltd That Receives
Original Assignee
High Automatic Technology (shenzhen) Co Ltd That Receives
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 High Automatic Technology (shenzhen) Co Ltd That Receives filed Critical High Automatic Technology (shenzhen) Co Ltd That Receives
Priority to CN201510326057.5A priority Critical patent/CN104968094A/en
Publication of CN104968094A publication Critical patent/CN104968094A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The present invention discloses a machine vision system and a light source controller thereof. The light source controller comprises: a trigger module used for receiving setting information of a light-emitting mode inputted by a user, wherein the light-emitting mode comprises color identification; a storage module used for storing the setting information of the light-emitting mode inputted by the user; an MCU used for calculating and outputting three PWM signals corresponding to the light-emitting mode according to a three primary colors light mixing principle when receiving the setting information of the light-emitting mode; and three BUCK converters respectively used for outputting a corresponding voltage to a light source with the corresponding color according to one PWM signal outputted by the MCU. Through adoption of the technical scheme of the present invention, in a light modulation process, an operator who does not know optical knowledge still can perform light modulation, and the operation is simple. In addition, stroboflash cannot occur, thereby solving the problems of color transformation and scintillation occurring during shooting of a camera in a machine vision system.

Description

Vision Builder for Automated Inspection and light source controller thereof
Technical field
The present invention relates to lighting field, particularly relate to a kind of Vision Builder for Automated Inspection and light source controller thereof.
Background technology
Vision Builder for Automated Inspection is technology modules important in manufacturing industry, is widely used in the occasions such as the measurement of product, location, quality inspection.Vision Builder for Automated Inspection utilizes machine to replace human eye measure and judge, namely by plant equipment, imaging is carried out to target product, and imaging is converted to digital signal sends image processing system to, image processing system carries out Algorithm Analysis to these digital signals again, realizes Automated condtrol.Light source control technology is as one of key technology in machine vision applications, and it directly can affect picture quality and the effect of Vision Builder for Automated Inspection to a great extent.Such as, red light source is applicable to identifying the material of chip surface cyan and grey, and blue light is applicable to the material yellow and golden to chip surface and identifies.
Separate for each passage of the light source controller of Vision Builder for Automated Inspection at present, when needing the light source of particular color, client is needed to regulate respectively to carry out colour mixture to the brightness of each passage, complicated operation, and need tester to grasp certain optical knowledge, realize difficulty larger.In addition, when carrying out colour mixture, employing be PWM dimming mode, this mode makes the voltage exporting light source to be discontinuous in time, so the light-source brightness that Different periods photographs in the shooting process of camera high speed and color are different, just there will be stroboscopic.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of light modulation simple and there will not be Vision Builder for Automated Inspection and the light source controller thereof of stroboscopic.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of light source controller, and for controlling the luminescence of light supply apparatus, described light supply apparatus comprises red light source, green light source and blue-light source, and described light source controller comprises:
Trigger module, for receiving the configuration information of the light-emitting mode of user's input, described light-emitting mode comprises colour code;
Memory module, for storing the configuration information of the light-emitting mode of user's input;
MCU, for when receiving the configuration information of light-emitting mode, calculating according to three primary colors mixed light principle and exporting three road pwm signals corresponding to described light-emitting mode;
Three BUCK converters, are respectively used to the road pwm signal that exports according to described MCU and export corresponding voltage to the light source of respective color.
In light source controller of the present invention, described light-emitting mode also comprises brightness mark.
In light source controller of the present invention, described light supply apparatus also comprises white light source, and described light source controller also comprises the 4th BUCK converter; And,
Described light-emitting mode also comprises saturation mark;
Described MCU, also for calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to described light-emitting mode;
Four BUCK converters, are respectively used to the road pwm signal that exports according to described MCU and export corresponding voltage to the light source of respective color.
In light source controller of the present invention,
Described MCU, the voltage also for exporting four BUCK converters is sampled, and four sampled road magnitudes of voltage and current light-emitting mode is identified and bind, and sends into described memory module and store.
In light source controller of the present invention,
Described trigger module, also for receiving the call instruction of the light-emitting mode of user's input;
Described MCU, also for when receiving the call instruction of light-emitting mode, calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to described light-emitting mode; And the current voltage also for exporting four BUCK converters is sampled, and four sampled road magnitudes of voltage are contrasted to four road magnitudes of voltage corresponding to stored corresponding light-emitting mode, and judge whether to occur extremely according to comparing result.
In light source controller of the present invention,
Described trigger module, also for receiving the Time delay time of user's input and trigger sign under trigger mode;
Described MCU, also for starting to export the pwm signal corresponding to described light-emitting mode when receiving and triggering sign under trigger mode, and exports the corresponding time according to described Time delay time remaining.
In light source controller of the present invention, described trigger module comprises at least one button be connected with described MCU by GPIO mouth.
In light source controller of the present invention, described trigger module comprises the control panel be connected with described MCU by GPIO mouth.
In light source controller of the present invention, described trigger module comprises the UART mouth carrying out with host computer communicating.
The present invention also constructs a kind of Vision Builder for Automated Inspection, comprises the light source controller described in above any one.
Implement technical scheme of the present invention, when user needs the light source of particular color, only need input corresponding colour code, MCU automatically can calculate according to three primary colors mixed light principle and export this color of object mark corresponding tri-road pwm signal, then, three BUCK converters just can export corresponding voltage according to corresponding pwm signal to the light source of respective color, and the red, green, blue three-color light source in light supply apparatus carries out coloured light additive color mixture, thus makes this light supply apparatus send the light of color of object.Therefore, in dimming process, even if operating personnel do not understand that optical knowledge also can carry out light modulation, simple to operate.And, because the pwm signal exported MCU carries out BUCK conversion, make the voltage exporting light source to be continuous print in time, there will not be stroboscopic, solve the problem of the colour switching flicker that in Vision Builder for Automated Inspection, camera shooting can produce.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the logic diagram of light source controller of the present invention and light supply apparatus embodiment one;
Fig. 2 is the logic diagram of light source controller of the present invention and light supply apparatus embodiment two.
Embodiment
Fig. 1 is the logic diagram of light source controller of the present invention and light supply apparatus embodiment one, and in this embodiment, light supply apparatus 200 comprises red light source 51, green light source 52 and blue-light source 53.Light source controller 100 is for controlling the luminescence of light supply apparatus 200, and it specifically comprises MCU10, trigger module 20, memory module 30 and a BUCK converter 41, the 2nd BUCK converter 42, the 3rd BUCK converter 43.Wherein, memory module 30 can be built-in or be external in MCU10.In the light source controller 100 of this embodiment, trigger module 20 is for receiving the configuration information of the light-emitting mode of user's input, and this light-emitting mode such as comprises colour code, and colour code is such as color code; Memory module 30 is for storing the configuration information of the light-emitting mode of user's input; MCU10 is used for when receiving the configuration information of light-emitting mode, calculates and export three road pwm signals corresponding to this light-emitting mode according to three primary colors mixed light principle; One BUCK converter 41 exports corresponding voltage for the first via pwm signal exported according to MCU10 to red light source, 2nd BUCK converter 42 exports corresponding voltage for the second road pwm signal exported according to MCU10 to green light source, and the 3rd road pwm signal that the 3rd BUCK converter 43 is respectively used to export according to MCU10 exports corresponding voltage to blue-light source.Implement the technical scheme of this embodiment, when user needs the light source of particular color, only need input corresponding colour code, MCU10 automatically can calculate according to three primary colors mixed light principle and export this color of object mark corresponding tri-road pwm signal, then, three BUCK converters 41,42,43 just can export corresponding voltage according to corresponding pwm signal to the light source of respective color, red, green, blue light source 51,52,53 in light supply apparatus 200 carries out coloured light additive color mixture, thus makes this light supply apparatus 200 send the light of color of object.Therefore, in dimming process, even if operating personnel do not understand that optical knowledge also can regulate, simple to operate.And, because the pwm signal exported MCU10 carries out BUCK conversion, make the voltage exporting each light source to be continuous print in time, there will not be stroboscopic, solve the problem of the colour switching flicker that in Vision Builder for Automated Inspection, camera shooting can produce.
Fig. 2 is the logic diagram of light source controller of the present invention and light supply apparatus embodiment two, and this embodiment compares the embodiment one shown in Fig. 1, has following difference:
Light supply apparatus 200 also comprises white light source 54, and light source controller 100 also comprises the 4th BUCK converter 44.In addition, the configuration information of brightness mark and saturation mark is also comprised in the configuration information of light-emitting mode that trigger module 20 receives.And MCU10 is also for calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to this light-emitting mode.One BUCK converter 41 exports corresponding voltage for the first via pwm signal exported according to MCU10 to red light source, 2nd BUCK converter 42 exports corresponding voltage for the second road pwm signal exported according to MCU10 to green light source, the 3rd road pwm signal that 3rd BUCK converter 43 is respectively used to export according to MCU10 exports corresponding voltage to blue-light source, and the 4th road pwm signal that the 4th BUCK converter 44 is respectively used to export according to MCU10 exports corresponding voltage to white light source.This embodiment compares the embodiment shown in Fig. 1, and user, when light modulation, except the color of lamp light adjustable, also can carry out the adjustment of brightness and saturation easily.
It should be noted that at this, although user is when using light source controller 100 light modulation of this embodiment, can regulate brightness and saturation simultaneously, but should be understood that in other embodiments, also can only regulate brightness or saturation.
Preferably, in the light source controller 100 of this embodiment, the voltage of MCU10 also for exporting four BUCK converters 41,42,43,44 is sampled, and four sampled road magnitudes of voltage and current light-emitting mode are identified bind, and feeding memory module 30 stores, like this, user can store when often debugging out a kind of light-emitting mode, transfers when using to facilitate next time.
Further, trigger module 20 is also for receiving the call instruction of the light-emitting mode of user's input.And MCU10, also for when receiving the call instruction of light-emitting mode, calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to this light-emitting mode; And the current voltage also for exporting four BUCK converters 41,42,43,44 is sampled, and four sampled road magnitudes of voltage are contrasted to four road magnitudes of voltage corresponding to stored corresponding light-emitting mode, and judge whether to occur extremely according to comparing result, such as, if the magnitude of voltage of present sample and the difference of magnitude of voltage stored in preset range, then illustrate generation without exception; If the magnitude of voltage of present sample exceedes preset range with the difference of the magnitude of voltage stored, then illustrative system occurs abnormal.
In addition, this light source controller can be arranged to following two kinds of patterns: normal bright pattern and trigger mode.Under normal bright pattern, when trigger module receives configuration information or the call instruction of light-emitting mode, MCU exports the multi-channel PWM signal corresponding to this light-emitting mode at once; Under trigger mode, trigger module is also for receiving the Time delay time of user's input and triggering sign on, and, the multi-channel PWM signal of MCU also for starting to export corresponding to this light-emitting mode when receiving and triggering sign on, and export the corresponding time according to Time delay time remaining.Preferably, light-emitting mode mark can be bound with the Time delay time by MCU, and is stored in memory module, calls to facilitate next time.Such as, user pre-sets following information:
" trigger port 1 ": export " light-emitting mode identifier 3 (color code 201, brightness 90%) ", Time delay 20ms;
" trigger port 2 ": export " light-emitting mode identifier 1 (color code 156, brightness 50%) ", Time delay 15ms;
" trigger port 3 ": export " light-emitting mode identifier 2 (color code 073, brightness 75%) ", Time delay 25ms.
When user sends the call instruction of " trigger port 2 " by trigger module, and when input triggers sign on, now, it is 156 that MCU can export color code, and brightness is the light of 50%, and closes output after continuing to light 15ms.
In addition, preferably, trigger module can comprise the button that at least one is connected with MCU by GPIO mouth.Trigger module also can comprise the control panel be connected with MCU by GPIO mouth.Trigger module comprises the UART mouth carrying out with host computer communicating.Like this, user is by button and/or control panel and/or the corresponding light-emitting mode of upper computer selecting and under trigger mode, input triggering sign on, such as, select the light-emitting mode of the specific saturation of particular color certain luminance, trigger sign on such as user by serial ports transmission " triggering starts " or trigger interface 2 directly high level or the low level triggering by GPIO.
The present invention also constructs a kind of Vision Builder for Automated Inspection, comprises above-described light source controller.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.

Claims (10)

1. a light source controller, for controlling the luminescence of light supply apparatus, described light supply apparatus comprises red light source, green light source and blue-light source, it is characterized in that, described light source controller comprises:
Trigger module, for receiving the configuration information of the light-emitting mode of user's input, described light-emitting mode comprises colour code;
Memory module, for storing the configuration information of the light-emitting mode of user's input;
MCU, for when receiving the configuration information of light-emitting mode, calculating according to three primary colors mixed light principle and exporting three road pwm signals corresponding to described light-emitting mode;
Three BUCK converters, are respectively used to the road pwm signal that exports according to described MCU and export corresponding voltage to the light source of respective color.
2. light source controller according to claim 1, is characterized in that, described light-emitting mode also comprises brightness mark.
3. light source controller according to claim 1, is characterized in that, described light supply apparatus also comprises white light source, and described light source controller also comprises the 4th BUCK converter; And,
Described light-emitting mode also comprises saturation mark;
Described MCU, also for calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to described light-emitting mode;
Four BUCK converters, are respectively used to the road pwm signal that exports according to described MCU and export corresponding voltage to the light source of respective color.
4. light source controller according to claim 3, is characterized in that,
Described MCU, the voltage also for exporting four BUCK converters is sampled, and four sampled road magnitudes of voltage and current light-emitting mode is identified and bind, and sends into described memory module and store.
5. light source controller according to claim 4, is characterized in that,
Described trigger module, also for receiving the call instruction of the light-emitting mode of user's input;
Described MCU, also for when receiving the call instruction of light-emitting mode, calculating according to three primary colors mixed light principle and exporting four road pwm signals corresponding to described light-emitting mode; And the current voltage also for exporting four BUCK converters is sampled, and four sampled road magnitudes of voltage are contrasted to four road magnitudes of voltage corresponding to stored corresponding light-emitting mode, and judge whether to occur extremely according to comparing result.
6. the light source controller according to any one of claim 1-5, is characterized in that,
Described trigger module, also for receiving the Time delay time of user's input and trigger sign under trigger mode;
Described MCU, also for starting to export the pwm signal corresponding to described light-emitting mode when receiving and triggering sign under trigger mode, and exports the corresponding time according to described Time delay time remaining.
7. light source controller according to claim 1, is characterized in that, described trigger module comprises at least one button be connected with described MCU by GPIO mouth.
8. light source controller according to claim 1, is characterized in that, described trigger module comprises the control panel be connected with described MCU by GPIO mouth.
9. light source controller according to claim 1, is characterized in that, described trigger module comprises the UART mouth carrying out with host computer communicating.
10. a Vision Builder for Automated Inspection, is characterized in that, comprises the light source controller described in any one of claim 1-9.
CN201510326057.5A 2015-06-12 2015-06-12 Machine vision system and light source controller thereof Pending CN104968094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510326057.5A CN104968094A (en) 2015-06-12 2015-06-12 Machine vision system and light source controller thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510326057.5A CN104968094A (en) 2015-06-12 2015-06-12 Machine vision system and light source controller thereof

Publications (1)

Publication Number Publication Date
CN104968094A true CN104968094A (en) 2015-10-07

Family

ID=54221983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510326057.5A Pending CN104968094A (en) 2015-06-12 2015-06-12 Machine vision system and light source controller thereof

Country Status (1)

Country Link
CN (1) CN104968094A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102217A (en) * 2016-06-13 2016-11-09 深圳市联君科技股份有限公司 A kind of polychromatic source automatic regulating system being applied to vision-based detection and method
CN106507539A (en) * 2016-11-24 2017-03-15 广东工业大学 A kind of luminous source system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117190A1 (en) * 2002-03-01 2005-06-02 Kenichi Iwauchi Light emitting device and display unit using the light emitting device and reading device
CN101677482A (en) * 2008-09-17 2010-03-24 深圳市斯派克光电科技有限公司 Control circuit of intellectualized LED street lamp
CN203086808U (en) * 2013-01-17 2013-07-24 厦门理工学院 Mixed color LED adjustable color temperature constant illumination intelligent LED plane lighting device
CN103607800A (en) * 2013-03-27 2014-02-26 中感科技有限公司 Intelligent dimming module and intelligent dimming LED lamp and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117190A1 (en) * 2002-03-01 2005-06-02 Kenichi Iwauchi Light emitting device and display unit using the light emitting device and reading device
CN101677482A (en) * 2008-09-17 2010-03-24 深圳市斯派克光电科技有限公司 Control circuit of intellectualized LED street lamp
CN203086808U (en) * 2013-01-17 2013-07-24 厦门理工学院 Mixed color LED adjustable color temperature constant illumination intelligent LED plane lighting device
CN103607800A (en) * 2013-03-27 2014-02-26 中感科技有限公司 Intelligent dimming module and intelligent dimming LED lamp and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102217A (en) * 2016-06-13 2016-11-09 深圳市联君科技股份有限公司 A kind of polychromatic source automatic regulating system being applied to vision-based detection and method
CN106507539A (en) * 2016-11-24 2017-03-15 广东工业大学 A kind of luminous source system

Similar Documents

Publication Publication Date Title
CN104751756B (en) Conditioning optics, method and the display device of display panel
CN106132002B (en) Control LED light color color-mixture device and its method
CN105430790B (en) Light mixing method for LED light source and linear lighting lamp
CN101810058A (en) Illuminating apparatus
WO2006110286A2 (en) An led assembly with a communication protocol for led light engines
CN106535406B (en) The brightness correcting method of three primary colors LED light source
CN204046868U (en) A kind of lighting device
CN103826368B (en) The control method that LED illumination lamp colour temperature and brightness adjustment are independent of each other
CN108668411B (en) Color correction method for color lamp
CN109951922A (en) A kind of light source light spectrum self-correcting and self-test closed-loop control system and its control method
CN103529630A (en) Light source apparatus and image projection apparatus
CN103366680A (en) Led display screen white balance correction technology
CN100501953C (en) Luminous diode color matching method
CN103906325B (en) Illumination control method and system
CN110557865A (en) Batch color correction system and method for intelligent color LED bulbs
CN106531065B (en) A kind of parallel regulating system of one-to-many gamma curve and method
CN104968094A (en) Machine vision system and light source controller thereof
CN210444529U (en) Batch color correction system for intelligent colored LED bulbs
CN107945730A (en) A kind of control method of the LED standard screen based on two-level current
CN108189616A (en) A kind of drawing electronics ager
CN208041638U (en) The lighting system of comprehensive a variety of lighting effects
CN110213554A (en) A kind of method that image maps player and pixel debugging
CN205179455U (en) Linear illumination lamps and lanterns
CN106885217A (en) The full-automatic white balance adjusting methods of RGB of LED
CN204141476U (en) A kind of LED backlight device for beer bottle on-line monitoring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151007