JP7190857B2 - light sensor - Google Patents

light sensor Download PDF

Info

Publication number
JP7190857B2
JP7190857B2 JP2018186400A JP2018186400A JP7190857B2 JP 7190857 B2 JP7190857 B2 JP 7190857B2 JP 2018186400 A JP2018186400 A JP 2018186400A JP 2018186400 A JP2018186400 A JP 2018186400A JP 7190857 B2 JP7190857 B2 JP 7190857B2
Authority
JP
Japan
Prior art keywords
period
signal
logic circuit
peak
value
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.)
Active
Application number
JP2018186400A
Other languages
Japanese (ja)
Other versions
JP2020056641A (en
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.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2018186400A priority Critical patent/JP7190857B2/en
Publication of JP2020056641A publication Critical patent/JP2020056641A/en
Application granted granted Critical
Publication of JP7190857B2 publication Critical patent/JP7190857B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Spectrometry And Color Measurement (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Exposure Control For Cameras (AREA)
  • Studio Devices (AREA)

Description

本明細書中に開示されている発明は、光センサ(例えばカラーセンサ)に関する。 The invention disclosed herein relates to optical sensors (eg, color sensors).

蛍光灯やLED[Light Emitting Diode]照明機器などの人工照明は、商用電源周波数(日本国内であれば50Hzまたは60Hz)またはこれに応じた周波数で、その光量が周期的に変動する現象(いわゆるフリッカー)を生じる。このようなフリッカーの影響により、同じ環境下で撮影した写真であっても露光タイミングに応じた明暗の差を生じる。 Artificial lighting, such as fluorescent lamps and LED [Light Emitting Diode] lighting equipment, is a commercial power frequency (50 Hz or 60 Hz in Japan) or a frequency corresponding to this, and the phenomenon that the amount of light fluctuates periodically (so-called flicker) ). Under the influence of such flicker, there is a difference in brightness depending on the exposure timing even in photographs taken under the same environment.

そこで、デジタルカメラでは、環境光のフリッカー周期よりも十分に短いサンプリング周期(例えば500μs)で環境光の光量を逐次検出し、明暗の差が少ないタイミングで露光を行うことにより、フリッカーの影響が抑えられている。 Therefore, in a digital camera, the influence of flicker is suppressed by sequentially detecting the amount of ambient light at a sampling period (for example, 500 μs) sufficiently shorter than the flicker period of ambient light and performing exposure at timings when there is little difference between light and dark. It is

なお、上記に関連する従来技術の一例としては、特許文献1を挙げることができる。 As an example of conventional technology related to the above, Patent Document 1 can be cited.

特開2006-115173号公報Japanese Patent Application Laid-Open No. 2006-115173

ところで、スマートフォンなどの電子機器では、環境光の光量取得をカラーセンサが担っている。しかしながら、カラーセンサの出力値をマイコンで逐次読み出すためには、バスの通信速度(100K~1Mbps程度)が足りないので、実質的なサンプリング周期が長くなってしまう。そのため、精度の高いフリッカー検出を行うことが難しかった。 By the way, in an electronic device such as a smartphone, a color sensor is responsible for acquiring the amount of ambient light. However, the communication speed of the bus (approximately 100K to 1 Mbps) is not sufficient for the microcomputer to sequentially read out the output values of the color sensor, resulting in a substantial sampling cycle lengthening. Therefore, it has been difficult to perform highly accurate flicker detection.

本明細書中に開示されている発明は、本願の発明者らにより見出された上記の課題に鑑み、最小限の通信で精度の高いフリッカー検出を行うことのできる光センサを提供することを目的とする。 In view of the above-described problems found by the inventors of the present application, the invention disclosed in the present specification provides an optical sensor capable of performing highly accurate flicker detection with minimal communication. aim.

本明細書中に開示されている光センサは、環境光の光量に応じた第1光検出信号を出力する第1光検出回路と、前記第1光検出信号のピーク周期毎にフラグ信号のパルス出力を行うロジック回路と、を有する構成(第1の構成)とされている。 The optical sensor disclosed in this specification includes a first photodetection circuit that outputs a first photodetection signal corresponding to the amount of ambient light, and a pulse of a flag signal for each peak period of the first photodetection signal. and a logic circuit for outputting (first configuration).

なお、第1の構成から成る光センサにおいて、前記ロジック回路は、前記ピーク周期の実測値に応じて前記フラグ信号のパルス出力周期の基準値を設定する構成(第2の構成)にするとよい。 In the photosensor having the first configuration, the logic circuit may set a reference value of the pulse output period of the flag signal according to the measured value of the peak period (second configuration).

また、第2の構成から成る光センサにおいて、前記ロジック回路は、前記ピーク周期の実測値と前記パルス出力周期の基準値との誤差から前記パルス出力周期の補正値を求める構成(第3の構成)にするとよい。 In the photosensor having the second configuration, the logic circuit obtains the correction value of the pulse output period from the error between the measured value of the peak period and the reference value of the pulse output period (third configuration). ).

また、第2または第3の構成から成る光センサにおいて、前記ロジック回路は、前記第1光検出信号のピーク位置を複数検出して前記ピーク周期の実測値を求める構成(第4の構成)にするとよい。 Further, in the optical sensor having the second or third configuration, the logic circuit detects a plurality of peak positions of the first photodetection signal to obtain the actual measurement value of the peak period (fourth configuration). do it.

また、第4の構成から成る光センサにおいて、前記ロジック回路は、前記第1光検出信号の連続する3つの測定値を、D[n-1]、D[n]、D[n+1]として、D[n-1]<D[n]かつD[n]≧D[n+1]を満たすとき、D[n]を前記第1光検出信号のピーク値とする構成(第5の構成)にするとよい。 Further, in the photosensor having the fourth configuration, the logic circuit sets three consecutive measured values of the first photodetection signal as D[n−1], D[n], and D[n+1], If D[n−1]<D[n] and D[n]≧D[n+1] are satisfied, D[n] is the peak value of the first photodetection signal (fifth configuration) good.

また、第2~第5いずれかの構成から成る光センサにおいて、前記ロジック回路は、前記ピーク周期の実測値と前記パルス出力周期の基準値との誤差が所定の上限値に達したとき、または、前記誤差から求められる前記パルス出力周期の補正値が所定の上限値に達したとき、若しくは、外部センサの出力信号が所定の条件を満たしたときに、前記パルス出力周期の基準値を設定し直す構成(第6の構成)にするとよい。 Further, in the optical sensor having any one of the second to fifth configurations, the logic circuit detects when an error between the actual measurement value of the peak period and the reference value of the pulse output period reaches a predetermined upper limit, or and setting the reference value of the pulse output period when the corrected value of the pulse output period obtained from the error reaches a predetermined upper limit, or when the output signal of the external sensor satisfies a predetermined condition. A configuration (sixth configuration) for repairing is preferable.

また、第1~第6いずれかの構成から成る光センサは、前記環境光の色成分に応じた第2光検出信号を出力する第2光検出回路を有する構成(第7の構成)にするとよい。 Further, if the optical sensor having any one of the first to sixth configurations has a second photodetection circuit that outputs a second photodetection signal corresponding to the color component of the ambient light (seventh configuration) good.

また、第7の構成から成る光センサにおいて、前記ロジック回路は、前記第1光検出信号を第1周期でサンプリングし、前記第2光検出信号を前記第1周期よりも長い第2周期でサンプリングする構成(第8の構成)にするとよい。 In the photosensor having the seventh configuration, the logic circuit samples the first photodetection signal in a first cycle, and samples the second photodetection signal in a second cycle longer than the first cycle. A configuration (eighth configuration) is preferable.

また、本明細書中に開示されている電子機器は、第1~第8いずれかの構成から成る光センサと、前記光センサから前記フラグ信号の入力を受け付けるマイコンと、前記光センサと前記マイコンとの間を接続するバスと、を有する構成(第9の構成)とされている。 Further, the electronic device disclosed in this specification includes a photosensor having any one of the first to eighth configurations, a microcomputer receiving the input of the flag signal from the photosensor, the photosensor and the microcomputer and a bus connecting between and (ninth configuration).

第9の構成から成る電子機器は、カメラをさらに有し、前記マイコンは、前記フラグ信号に応じて前記カメラの露光タイミングを制御する構成(第10の構成)にするとよい。 The electronic device having the ninth configuration may further include a camera, and the microcomputer may control exposure timing of the camera according to the flag signal (tenth configuration).

本明細書中に開示されている発明によれば、最小限の通信で精度の高いフリッカー検出を行うことのできる光センサを提供することが可能となる。 According to the invention disclosed in this specification, it is possible to provide an optical sensor capable of highly accurate flicker detection with minimal communication.

カラーセンサの一構成例を示す図Diagram showing a configuration example of a color sensor 各種透過フィルタの光学特性を示す図Diagram showing the optical characteristics of various transmission filters ロジック回路の一構成例を示す図A diagram showing a configuration example of a logic circuit ピーク位置検出動作及びピーク周期補正動作の概要を示す図Diagram showing outline of peak position detection operation and peak cycle correction operation ピーク位置検出動作の詳細を示す図Diagram showing details of peak position detection operation ピーク位置検出動作の詳細を示すフローチャートFlowchart showing details of peak position detection operation スマートフォンの外観図External view of smartphone スマートフォンの内部構成例を示す図Diagram showing an example of the internal configuration of a smartphone

<カラーセンサ>
図1は、カラーセンサの一構成例を示す図である。本構成例のカラーセンサ1は、スマートフォンなどの電子機器に搭載されて、環境光の色成分(赤色成分R、緑色成分G、青色成分B、及び、赤外線成分IR)を検出する光センサICの一種であり、第1光検出回路10と、第2光検出回路20と、ロジック回路30と、赤外線遮断フィルタ40と、を有する。
<Color sensor>
FIG. 1 is a diagram showing a configuration example of a color sensor. The color sensor 1 of this configuration example is mounted on an electronic device such as a smartphone, and is a photosensor IC that detects the color components of ambient light (red component R, green component G, blue component B, and infrared component IR). It is one type, and has a first photodetection circuit 10 , a second photodetection circuit 20 , a logic circuit 30 , and an infrared cutoff filter 40 .

第1光検出回路10は、受光素子11と、AD[Analog-to-Digital]変換器12と、を含み、環境光の光量に応じた第1光検出信号S1を出力する。なお、第1光検出回路10は、蛍光灯やLED照明機器などの人工照明に起因する環境光のフリッカーを検出するために設けられている。 The first photodetection circuit 10 includes a light receiving element 11 and an AD [Analog-to-Digital] converter 12, and outputs a first photodetection signal S1 corresponding to the amount of ambient light. The first light detection circuit 10 is provided to detect flicker of ambient light caused by artificial lighting such as fluorescent lamps and LED lighting equipment.

受光素子11は、赤外線遮断フィルタ40を介して入射される環境光の光量に応じたアナログ電流信号を生成する。AD変換器12は、受光素子11からのアナログ電流信号をデジタル(例えば16ビット)の第1光検出信号S1に変換する。 The light receiving element 11 generates an analog current signal corresponding to the amount of ambient light incident through the infrared cut filter 40 . The AD converter 12 converts the analog current signal from the light receiving element 11 into a digital (for example, 16-bit) first photodetection signal S1.

第2光検出回路20は、受光素子(21R、21G、21B、21IR)と、AD変換器(22R、22G、22B、22IR)と、各種透過フィルタ(23R、23G、23B、23IR)と、を含み、環境光の色成分(R、G、B、IR)に応じた第2光検出信号(S2R、S2G、S2B、S2IR)を出力する。 The second photodetection circuit 20 includes light receiving elements (21R, 21G, 21B, 21IR), AD converters (22R, 22G, 22B, 22IR), and various transmission filters (23R, 23G, 23B, 23IR). and outputs second photodetection signals (S2R, S2G, S2B, S2IR) according to the color components (R, G, B, IR) of ambient light.

受光素子21Rは、赤色光透過フィルタ23Rを介して入射される赤色光の光量に応じたアナログ電流信号を生成する。AD変換器22Rは、受光素子21Rからのアナログ電流信号をデジタル(例えば16ビット)の赤色光検出信号S2Rに変換して出力する。赤色光透過フィルタ23Rは、図2の実線で示した光学特性を持ち、赤外線遮断フィルタ40を介して入射される環境光の赤色成分R(およそ波長620~750nm)を選択的に透過させる。 The light receiving element 21R generates an analog current signal corresponding to the amount of red light incident through the red light transmission filter 23R. The AD converter 22R converts the analog current signal from the light receiving element 21R into a digital (for example, 16-bit) red light detection signal S2R and outputs it. The red light transmission filter 23R has the optical characteristics indicated by the solid line in FIG. 2, and selectively transmits the red component R (wavelength of approximately 620 to 750 nm) of ambient light incident through the infrared cutoff filter 40. FIG.

受光素子21Gは、緑色光透過フィルタ23Gを介して入射される緑色光の光量に応じたアナログ電流信号を生成する。AD変換器22Gは、受光素子21Gからのアナログ電流信号をデジタル(例えば16ビット)の緑色光検出信号S2Gに変換して出力する。緑色光透過フィルタ23Gは、図2の小破線で示した光学特性を持ち、赤外線遮断フィルタ40を介して入射される環境光の緑色成分G(およそ波長495~570nm)を選択的に透過させる。 The light receiving element 21G generates an analog current signal corresponding to the amount of green light incident through the green light transmission filter 23G. The AD converter 22G converts the analog current signal from the light receiving element 21G into a digital (for example, 16-bit) green light detection signal S2G and outputs it. The green light transmission filter 23G has the optical characteristics indicated by the small dashed line in FIG. 2, and selectively transmits the green component G (wavelength of approximately 495 to 570 nm) of ambient light incident through the infrared cutoff filter 40 .

受光素子21Bは、青色光透過フィルタ23Bを介して入射される青色光の光量に応じたアナログ電流信号を生成する。AD変換器22Bは、受光素子21Bからのアナログ電流信号をデジタル(例えば16ビット)の青色光検出信号S2Bに変換して出力する。青色光透過フィルタ23Bは、図2の大破線で示した光学特性を持ち、赤外線遮断フィルタ40を介して入射される環境光の青色成分B(およそ波長450~495nm)を選択的に透過させる。 The light receiving element 21B generates an analog current signal corresponding to the amount of blue light incident through the blue light transmission filter 23B. The AD converter 22B converts the analog current signal from the light receiving element 21B into a digital (for example, 16-bit) blue light detection signal S2B and outputs it. The blue light transmission filter 23B has the optical characteristics indicated by the large dashed line in FIG. 2, and selectively transmits the blue component B (wavelength of approximately 450 to 495 nm) of ambient light incident through the infrared cutoff filter 40 .

受光素子21IRは、赤外線透過フィルタ23IRを介して入射される赤外線の光量に応じたアナログ電流信号を生成する。AD変換器22IRは、受光素子21IRからのアナログ電流信号をデジタル(例えば16ビット)の赤外線検出信号S2IRに変換して出力する。赤外線透過フィルタ23IRは、図2の一点鎖線で示した光学特性を持ち、環境光に含まれる赤外線成分IR(およそ波長750~1400nmの近赤外線)を選択的に透過させる。 The light receiving element 21IR generates an analog current signal corresponding to the amount of infrared light incident through the infrared transmission filter 23IR. The AD converter 22IR converts the analog current signal from the light receiving element 21IR into a digital (for example, 16-bit) infrared detection signal S2IR and outputs it. The infrared transmission filter 23IR has the optical characteristics indicated by the dashed line in FIG. 2, and selectively transmits the infrared component IR (near infrared rays with a wavelength of approximately 750 to 1400 nm) included in ambient light.

赤外線遮断フィルタ40は、受光素子11、赤色光透過フィルタ23R、緑色光透過フィルタ23G、及び、青色光透過フィルタ23Bそれぞれの上流側で、環境光に含まれる赤外線成分IRを遮断する。このような赤外線遮断フィルタ40を設けることにより、環境光の光量及びRGB成分(延いては色温度)を精度良く検出することができる。 The infrared cutoff filter 40 cuts off the infrared component IR contained in ambient light on the upstream side of each of the light receiving element 11, the red light transmission filter 23R, the green light transmission filter 23G, and the blue light transmission filter 23B. By providing such an infrared blocking filter 40, it is possible to accurately detect the amount of ambient light and the RGB components (and thus the color temperature).

なお、上記の受光素子(11、21R、21G、21B、21IR)としては、それぞれ、フォトダイオードやフォトトランジスタなどを好適に用いることができる。 A photodiode, a phototransistor, or the like can be preferably used as each of the light receiving elements (11, 21R, 21G, 21B, 21IR).

ロジック回路30は、第1光検出信号S1を第1周期でサンプリングすることにより、環境光のフリッカーを検出する一方、第2光検出信号(S2R、S2G、S2B、S2IR)を第1周期よりも長い第2周期(例えば第1周期の32倍)でサンプリングすることにより、環境光の色成分を検出する。 The logic circuit 30 detects the flicker of the ambient light by sampling the first photodetection signal S1 in the first period, while sampling the second photodetection signals (S2R, S2G, S2B, S2IR) more than the first period. Color components of the ambient light are detected by sampling at a longer second period (for example, 32 times the first period).

なお、ロジック回路30は、所定の通信規格(I2C[Inter-Integrated Circuit]など)に準拠したバス(不図示)を介して、カラーセンサ1外部のマイコン(不図示)とバス信号S3の双方向通信を行うインターフェイス機能を備えている。なお、バス信号S3には、例えば、環境光の色成分(R、G、B、IR)に関する測定データが含まれる。 Note that the logic circuit 30 communicates between a microcomputer (not shown) outside the color sensor 1 and a bus signal S3 via a bus (not shown) conforming to a predetermined communication standard (such as I2C [Inter-Integrated Circuit]). It has an interface function for communication. The bus signal S3 includes, for example, measurement data regarding color components (R, G, B, IR) of ambient light.

また、ロジック回路30は、マイコン側で環境光のフリッカー検出(さらにはその検出結果を反映した露光タイミング制御など)を行うことができるように、第1光検出信号S1のピーク周期毎(=環境光のフリッカー周期毎)に、フラグ信号S4のパルス出力を行う機能も備えている。 In addition, the logic circuit 30 performs flicker detection of ambient light on the microcomputer side (furthermore, exposure timing control reflecting the detection result, etc.) at each peak cycle (=environmental flicker) of the first light detection signal S1. It also has a function of outputting a pulse of the flag signal S4 at each flicker period of light.

以下では、ロジック回路30におけるフラグ信号S4のパルス出力機能について、具体的かつ詳細な説明を行う。 Below, the pulse output function of the flag signal S4 in the logic circuit 30 will be described specifically and in detail.

<ロジック回路>
図3は、ロジック回路30の一構成例(特にフラグ信号S4のパルス出力機能に関連する信号処理経路)を示すブロック図である。本構成例のロジック回路30は、積分部31と、ピーク位置検出部32と、ピーク周期補正部33と、を含む。
<Logic circuit>
FIG. 3 is a block diagram showing a configuration example of the logic circuit 30 (in particular, signal processing paths related to the pulse output function of the flag signal S4). The logic circuit 30 of this configuration example includes an integrator 31 , a peak position detector 32 , and a peak period corrector 33 .

積分部31は、所定のサンプリング周期Ts毎に第1光検出信号S1を積分することにより、環境光の光量に応じた積分信号S31を離散的に出力する。なお、上記のサンプリング周期Ts(=先述の第1周期に相当)については、デジタルカメラにおけるフリッカー検出用のサンプリング周期と同等の長さ(例えば500μs)に設定するとよい。 The integrator 31 integrates the first photodetection signal S1 every predetermined sampling period Ts, thereby discretely outputting an integrated signal S31 corresponding to the amount of ambient light. It should be noted that the sampling period Ts (=corresponding to the above-described first period) should be set to a length (for example, 500 μs) equivalent to the sampling period for flicker detection in a digital camera.

ピーク位置検出部32は、サンプリング周期Ts毎に逐次取得される積分信号S31から第1光検出信号S1のピーク位置S32を検出する(詳細は後述)。 The peak position detection unit 32 detects the peak position S32 of the first photodetection signal S1 from the integrated signal S31 that is sequentially acquired every sampling period Ts (details will be described later).

ピーク周期補正部33は、第1光検出信号S1のピーク位置S32から求めた第1光検出信号S1のピーク周期毎(=環境光のフリッカー周期毎)に、フラグ信号S4のパルス出力を行う。その際、ピーク周期補正部33は、フラグ信号S4のパルス出力周期を第1光検出信号S1のピーク周期と一致させるように補正する(詳細は後述)。 The peak cycle correction unit 33 outputs a pulse of the flag signal S4 for each peak cycle (=flicker cycle of ambient light) of the first photodetection signal S1 obtained from the peak position S32 of the first photodetection signal S1. At that time, the peak cycle correction unit 33 corrects the pulse output cycle of the flag signal S4 so as to match the peak cycle of the first photodetection signal S1 (details will be described later).

なお、上記の積分部31、ピーク位置検出部32、及び、ピーク周期補正部33は、ハードウェア的に実装してもよいし、或いは、ソフトウェア的に実装してもよい。 Note that the integrating section 31, the peak position detecting section 32, and the peak period correcting section 33 may be implemented in hardware or may be implemented in software.

<ピーク位置検出動作、ピーク周期補正動作>
図4は、ロジック回路30におけるピーク位置検出動作及びピーク周期補正動作の概要を示す図であり、積分信号S31及びフラグ信号S4それぞれの挙動が描写されている。
<Peak position detection operation, peak cycle correction operation>
FIG. 4 is a diagram showing an overview of the peak position detection operation and peak period correction operation in the logic circuit 30, and depicts behaviors of the integration signal S31 and the flag signal S4.

ロジック回路30(特にピーク位置検出部32)は、サンプリング周期Ts毎に積分信号S31を逐次サンプリングする(図中の黒丸を参照)。そして、ロジック回路30は、積分信号S31のサンプリング結果から、積分信号S31のピーク位置(=積分信号S31のピーク値が検出されるタイミングに相当、図中の白丸を参照)を複数検出し、積分信号S31のピーク周期(=環境光のフリッカー周期)の実測値を求める。 The logic circuit 30 (in particular, the peak position detector 32) sequentially samples the integrated signal S31 every sampling period Ts (see black circles in the figure). Then, the logic circuit 30 detects a plurality of peak positions of the integrated signal S31 (=corresponding to the timing at which the peak value of the integrated signal S31 is detected, see white circles in the figure) from the sampling result of the integrated signal S31, and integrates An actual measurement value of the peak period (= flicker period of ambient light) of the signal S31 is obtained.

図中のA区間(=基準値設定期間に相当)に着目すると、積分信号S31の第1ピーク位置(=ピーク値D1の検出タイミング)から第2ピーク位置(=ピーク値D2の検出タイミング)までの時間を測定することにより、ピーク周期の実測値T1が求められる。また、積分信号S31の第2ピーク位置(=ピーク値D2の検出タイミング)から第3ピーク位置(=ピーク値D3の検出タイミング)までの時間を測定することにより、ピーク周期の実測値T2が求められる。 Focusing on the A section (=corresponding to the reference value setting period) in FIG. By measuring the time of , an actual measurement value T1 of the peak period is obtained. Further, by measuring the time from the second peak position (=detection timing of the peak value D2) to the third peak position (=detection timing of the peak value D3) of the integrated signal S31, the measured value T2 of the peak period is obtained. be done.

ロジック回路30は、上記のようにして求められたピーク周期の実測値T1及びT2から、フラグ信号S4のパルス出力周期の基準値Tを設定する。例えば、基準値Tは、ピーク周期の実測値T1及びT2の平均値(T=(T1+T2)/2)に設定すればよい。 The logic circuit 30 sets the reference value T of the pulse output period of the flag signal S4 from the measured values T1 and T2 of the peak period obtained as described above. For example, the reference value T may be set to the average value (T=(T1+T2)/2) of the measured values T1 and T2 of the peak period.

なお、本図では、測定開始からフリッカー周期の3倍程度に設定された基準値設定期間(=A区間)において、パルス出力周期の基準値Tを算出する例を挙げたが、A区間の長さはこれに限定されるものではなく、例えば、基準値設定期間を延長して3点以上の実測値(T1、T2、T3、…)から基準値Tを算出してもよいし、逆に、基準値設定期間を短縮して1点の実測値T1をそのまま基準値Tとして採用してもよい。 In this figure, an example is given in which the reference value T of the pulse output period is calculated in the reference value setting period (=A section) set to about three times the flicker period from the start of measurement. The length is not limited to this. For example, the reference value setting period may be extended and the reference value T may be calculated from three or more measured values (T1, T2, T3, . . . ). Alternatively, the actual measurement value T1 at one point may be used as the reference value T as it is by shortening the reference value setting period.

その後、ロジック回路30は、基準値Tに設定されたパルス出力周期毎に、フラグ信号S4のパルス出力を行う。本図に即して述べると、ロジック回路30は、積分信号S31の第3ピーク位置(=ピーク値D3の検出タイミング)を起算点として、パルス出力周期(=基準値T)が経過する度に、フラグ信号S4のパルス出力を行う。 After that, the logic circuit 30 outputs a pulse of the flag signal S4 every pulse output period set to the reference value T. FIG. Referring to this figure, the logic circuit 30 starts from the third peak position (=detection timing of the peak value D3) of the integrated signal S31, and every time the pulse output period (=reference value T) elapses, , pulse output of the flag signal S4.

このように、ロジック回路30は、積分信号S31のデータ値(例えば16ビット値)をそのままバス信号S3として出力するのではなく、積分信号S31のピーク周期毎(=環境光のフリッカー周期毎)に、フラグ信号S4のパルス出力を行う機能を備えている。 In this way, the logic circuit 30 does not output the data value (for example, 16-bit value) of the integration signal S31 as it is as the bus signal S3, but instead outputs it at each peak period of the integration signal S31 (=every flicker period of ambient light). , has a function of outputting a pulse of the flag signal S4.

従って、マイコン側では、1ビットのフラグ信号S4を監視するだけで、環境光のフリッカー検出を行うことができるので、バスの通信速度に依らず、必要最小限の通信で精度の高いフリッカー検出を行うことが可能となる。 Therefore, the microcomputer can detect the flicker of the ambient light simply by monitoring the 1-bit flag signal S4. Therefore, the flicker can be detected with high accuracy with the minimum necessary communication regardless of the communication speed of the bus. can be done.

また、ロジック回路30は、A区間以降も積分信号S31の逐次サンプリングを継続してピーク周期の実測値を求め続けており、これらの実測値とパルス出力周期の基準値との誤差から、パルス出力周期の補正値を求める機能を備えている。 In addition, the logic circuit 30 continues to sequentially sample the integrated signal S31 even after the A period to obtain actual measured values of the peak period. It has a function to obtain the correction value of the period.

図中のB区間(=補正値算出期間に相当)に着目すると、積分信号S31の第3ピーク位置(=ピーク値D3の検出タイミング)から第4ピーク位置(=ピーク値D4の検出タイミング)までの時間を測定することにより、ピーク周期の実測値T3が求められる。また、積分信号S31の第4ピーク位置(=ピーク値D4の検出タイミング)から第5ピーク位置(=ピーク値D5の検出タイミング)までの時間を測定することにより、ピーク周期の実測値T4が求められる。また、積分信号S31の第5ピーク位置(=ピーク値D5の検出タイミング)から第6ピーク位置(=ピーク値D6の検出タイミング)までの時間を測定することにより、ピーク周期の実測値T5が求められる。 Focusing on the B section (=corresponding to the correction value calculation period) in FIG. By measuring the time of , an actual measurement value T3 of the peak period is obtained. Further, by measuring the time from the fourth peak position (=detection timing of the peak value D4) to the fifth peak position (=detection timing of the peak value D5) of the integrated signal S31, the measured value T4 of the peak period is obtained. be done. Further, by measuring the time from the fifth peak position (=detection timing of the peak value D5) to the sixth peak position (=detection timing of the peak value D6) of the integrated signal S31, the measured value T5 of the peak period is obtained. be done.

さらに、ピーク周期の実測値T3~T5とパルス出力周期の基準値Tをそれぞれ比較することにより、誤差d1(=T3-T)、誤差d2(=T4-T)、及び、誤差d3(=T5-T)が求められる。 Furthermore, by comparing the measured values T3 to T5 of the peak period with the reference value T of the pulse output period, the error d1 (=T3-T), the error d2 (=T4-T), and the error d3 (=T5 -T) is required.

そして、ロジック回路30は、上記のようにして求められた誤差d1~d3から、パルス出力周期の補正値αを設定する。例えば、補正値αは、誤差d1~d3の平均値(α=(d1+d2+d3)/3)に設定すればよい。 Then, the logic circuit 30 sets the correction value α of the pulse output period from the errors d1 to d3 obtained as described above. For example, the correction value α may be set to the average value of the errors d1 to d3 (α=(d1+d2+d3)/3).

なお、本図では、フリッカー周期の3倍程度に設定された補正値算出期間(=B区間)において、パルス出力周期の補正値αを算出する例を挙げたが、補正値算出期間の長さはこれに限定されるものではなく、例えば、補正値算出期間を延長して4点以上の誤差から補正値αを算出してもよいし、逆に、補正値算出期間を短縮して2点以下の誤差から補正値αを算出してもよい。 In this figure, an example is given in which the correction value α of the pulse output period is calculated in the correction value calculation period (=B section) set to about three times the flicker period, but the length of the correction value calculation period is not limited to this, for example, the correction value calculation period may be extended and the correction value α may be calculated from four or more errors, or conversely, the correction value calculation period may be shortened and two points The correction value α may be calculated from the following errors.

その後、ロジック回路30は、補正済みのパルス出力周期(=T+α)毎に、フラグ信号S4のパルス出力を行う。本図に即して述べると、ロジック回路30は、積分信号S31の第6ピーク位置(=ピーク値D6の検出タイミング)を起算点として、補正済みのパルス出力周期(=T+α)が経過する度に、フラグ信号S4のパルス出力を行う。 After that, the logic circuit 30 outputs a pulse of the flag signal S4 every corrected pulse output cycle (=T+α). In line with this figure, the logic circuit 30 starts from the sixth peak position (=detection timing of the peak value D6) of the integrated signal S31, and every time the corrected pulse output period (=T+α) elapses, , the pulse output of the flag signal S4 is performed.

また、図中のC区間以降も、上記同様の信号処理により、補正値αが逐次更新される。 Further, the correction value α is successively updated by the same signal processing as described above even after the C section in the figure.

このように、ロジック回路30は、積分信号S31のピーク周期(=環境光のフリッカー周期)と、フラグ信号S4のパルス出力周期との間にずれが生じた場合には、そのずれをなくすように、パルス出力周期を定期的に補正する機能を備えている。従って、フリッカー検出精度を高めることが可能となる。 In this way, the logic circuit 30 eliminates any deviation between the peak period of the integration signal S31 (=flicker period of ambient light) and the pulse output period of the flag signal S4. , and has a function to periodically correct the pulse output period. Therefore, it is possible to improve flicker detection accuracy.

なお、ロジック回路30は、例外処理として、所定の再設定条件が満たされたときに、パルス出力周期の基準値Tを設定し直す機能も備えている。 The logic circuit 30 also has a function of resetting the reference value T of the pulse output period when a predetermined resetting condition is satisfied as exception processing.

例えば、積分信号S31のピーク周期の実測値T*とパルス出力周期の基準値Tとの誤差d(=T*-T)が所定の上限値に達したとき、または、誤差dに応じたパルス出力周期の補正値αが所定の上限値に達したときには、現在保持されている基準値T自体がもはや適正でないと考えられるので、再度の基準値設定期間(=A区間)を経て基準値Tの再設定が行われる。 For example, when the error d (=T*-T) between the measured value T* of the peak period of the integral signal S31 and the reference value T of the pulse output period reaches a predetermined upper limit, or when the pulse corresponding to the error d When the correction value α of the output cycle reaches a predetermined upper limit value, the currently held reference value T itself is considered to be no longer appropriate. is reset.

また、カラーセンサ1以外に設けられている外部センサの出力信号が所定の条件を満たしたときにも、パルス出力周期の基準値Tを再設定すべき場合がある。例えば、照度センサで所定の閾値を超える照度の変動が検出された場合(例えば照度の異なる部屋に移動した場合)、若しくは、加速度センサまたはジャイロセンサで所定の閾値を超える加速度または角速度の変動が検出された場合(例えばカラーセンサ1が搭載される電子機器の向きを変えた場合)には、現在保持されている基準値T自体を更新する方が望ましいと考えられるので、再度の基準値設定期間(=A区間)を経て基準値Tの再設定が行われる。 Also, when the output signal of an external sensor provided other than the color sensor 1 satisfies a predetermined condition, the reference value T of the pulse output cycle may need to be reset. For example, when an illuminance sensor detects a change in illuminance exceeding a predetermined threshold (for example, when moving to a room with different illuminance), or when an acceleration sensor or gyro sensor detects a change in acceleration or angular velocity exceeding a predetermined threshold. (for example, when the orientation of the electronic device in which the color sensor 1 is mounted is changed), it is considered preferable to update the currently held reference value T itself. The reference value T is reset after (=A section).

図5は、ロジック回路30におけるピーク位置検出動作(例えば、図4のA区間におけるピーク値D1~D3の検出動作、または、B区間におけるピーク値D4~D6の検出動作に相当)の詳細を示す図である。 FIG. 5 shows the details of the peak position detection operation in the logic circuit 30 (e.g. corresponding to the detection operation of the peak values D1 to D3 in the A section of FIG. 4 or the detection operation of the peak values D4 to D6 in the B section of FIG. 4). It is a diagram.

まず、一つ目のピーク値D[n]に着目して説明する。ロジック回路30(特にピーク位置検出部32)は、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[n-1]、D[n]、D[n+1]として、D[n-1]<D[n]かつD[n]≧D[n+1]を満たすときに、D[n]を一つ目のピーク値として取得する。 First, the description will focus on the first peak value D[n]. The logic circuit 30 (especially the peak position detector 32) converts three consecutive measured values of the integration signal S31 (and the first photodetection signal S1) into D[n−1], D[n], D[ n+1], D[n] is acquired as the first peak value when D[n−1]<D[n] and D[n]≧D[n+1] are satisfied.

次に、二つ目のピーク値D[2n]に着目して説明する。ロジック回路30(特にピーク位置検出部32)は、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[2n-1]、D[2n]、D[2n+1]として、D[2n-1]<D[2n]かつD[2n]≧D[2n+1]を満たすときに、D[2n]をピーク値として取得する。 Next, a description will be given focusing on the second peak value D[2n]. The logic circuit 30 (especially the peak position detector 32) converts three consecutive measured values of the integration signal S31 (and the first photodetection signal S1) into D[2n−1], D[2n], D[ 2n+1], D[2n] is acquired as a peak value when D[2n−1]<D[2n] and D[2n]≧D[2n+1] are satisfied.

最後に、三つ目のピーク値D[3n]に着目して説明する。ロジック回路30(特にピーク位置検出部32)は、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[3n-1]、D[3n]、D[3n+1]として、D[3n-1]<D[3n]かつD[3n]≧D[3n+1]を満たすときに、D[3n]をピーク値として取得する。 Finally, description will be made focusing on the third peak value D[3n]. The logic circuit 30 (especially the peak position detector 32) converts three consecutive measured values of the integration signal S31 (and the first photodetection signal S1) into D[3n−1], D[3n], D[ 3n+1], D[3n] is acquired as a peak value when D[3n−1]<D[3n] and D[3n]≧D[3n+1] are satisfied.

図6は、図5で説明したピーク位置検出動作の詳細を示すフローチャートである。測定が開始されると、ステップ#1では、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[n-1]、D[n]、D[n+1]として、D[n-1]<D[n]かつD[n]≧D[n+1]を満たすか否かの判定が行われる。ここで、イエス判定が下された場合には、フローがステップ#2に進められる。一方、ノー判定が下された場合には、フローがステップ#1に戻されて上記の判定処理が繰り返される。なお、ステップ#1での判定処理は、一つ目のピーク値D[n]を検出する動作に相当する。 FIG. 6 is a flow chart showing details of the peak position detection operation described in FIG. When the measurement is started, in step #1, three consecutive measured values of the integration signal S31 (and thus the first photodetection signal S1) are obtained as D[n−1], D[n], D[n+1 ], it is determined whether or not D[n−1]<D[n] and D[n]≧D[n+1] are satisfied. Here, if the determination is YES, the flow proceeds to step #2. On the other hand, if a negative determination is made, the flow returns to step #1 and the above determination processing is repeated. Note that the determination process in step #1 corresponds to the operation of detecting the first peak value D[n].

ステップ#1でイエス判定が下された場合(すなわち一つ目のピーク値D[n]が検出された場合)、ステップ#2では、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[2n-1]、D[2n]、D[2n+1]として、D[2n-1]<D[2n]かつD[2n]≧D[2n+1]を満たすか否かの判定が行われる。ここで、イエス判定が下された場合には、フローがステップ#3に進められる。一方、ノー判定が下された場合には、フローがステップ#2に戻されて上記の判定処理が繰り返される。なお、ステップ#2での判定処理は、二つ目のピーク値D[2n]を検出する動作に相当する。 If a YES determination is made in step #1 (that is, if the first peak value D[n] is detected), in step #2, the integration signal S31 (and thus the first photodetection signal S1) D[2n−1], D[2n], and D[2n+1] are three consecutive measured values, and whether D[2n−1]<D[2n] and D[2n]≧D[2n+1] are satisfied A determination is made as to whether or not Here, if the determination is YES, the flow proceeds to step #3. On the other hand, if the determination is NO, the flow returns to step #2 and the above determination process is repeated. Note that the determination process in step #2 corresponds to the operation of detecting the second peak value D[2n].

ステップ#2でイエス判定が下された場合(すなわち二つ目のピーク値D[2n]が検出された場合)、ステップ#3では、積分信号S31(延いては第1光検出信号S1)の連続する3つの測定値を、D[3n-1]、D[3n]、D[3n+1]として、D[3n-1]<D[3n]、かつ、D[3n]≧D[3n+1]を満たすか否かの判定が行われる。ここで、イエス判定が下された場合には、フローがステップ#4に進められる。一方、ノー判定が下された場合には、フローがステップ#3に戻されて上記の判定処理が繰り返される。なお、ステップ#3での判定処理は、三つ目のピーク値D[3n]を検出する動作に相当する。 If a YES determination is made in step #2 (that is, if the second peak value D[2n] is detected), in step #3, the integrated signal S31 (and thus the first photodetection signal S1) Let D[3n−1], D[3n], and D[3n+1] be three consecutive measurements, and let D[3n−1]<D[3n] and D[3n]≧D[3n+1] A determination is made as to whether or not the conditions are satisfied. Here, if the determination is YES, the flow proceeds to step #4. On the other hand, if a negative determination is made, the flow returns to step #3 and the above determination processing is repeated. Note that the determination process in step #3 corresponds to the operation of detecting the third peak value D[3n].

ステップ#3でイエス判定が下された場合(すなわち三つ目のピーク値D[3n]が検出された場合)、ステップ#4では、上記で求められたピーク値D[n]、D[2n]、D[3n]を用いて、ピーク周期の算出及び補正(先に説明したパルス出力周期の基準値T及び補正値αの算出に相当)が行われる。 If the determination in step #3 is YES (that is, the third peak value D[3n] is detected), in step #4, the peak values D[n] and D[2n] obtained above are ] and D[3n] are used to calculate and correct the peak period (corresponding to the calculation of the reference value T and the correction value α of the pulse output period described above).

その後、フローがステップ#1に戻されて、上記一連の信号処理が繰り返される。 After that, the flow is returned to step #1, and the above series of signal processing is repeated.

<スマートフォンへの適用>
図7は、スマートフォンの外観図である。スマートフォンXは、図1のカラーセンサ1を搭載する電子機器の具体例であり、外観的には、例えば、タッチパネル機能を備えたディスプレイX1(液晶ディスプレイや有機EL[electro-luminescence]ディスプレイ)と、カメラX2と、スピーカX3及びマイクX4と、カラーセンサX10と、を有する。
<Application to smartphones>
FIG. 7 is an external view of a smartphone. The smartphone X is a specific example of an electronic device equipped with the color sensor 1 shown in FIG. It has a camera X2, a speaker X3 and a microphone X4, and a color sensor X10.

なお、背景技術の項でも述べたが、蛍光灯やLED照明機器などの照明器具Yは、商用電源周波数(日本国内であれば50Hzまたは60Hz)またはこれに応じた周波数で、フリッカーを生じる。そのため、照明器具Yに照らされた環境下において、スマートフォンXを用いた撮影を行う場合、カメラX2の露光タイミングを適切に制御しなければ、同じ環境下で撮影した写真であっても、意図しない明暗の差を生じるおそれがある。 As described in the Background Art section, lighting fixtures Y such as fluorescent lamps and LED lighting equipment generate flicker at the commercial power supply frequency (50 Hz or 60 Hz in Japan) or a frequency corresponding thereto. Therefore, when photographing using the smartphone X in an environment illuminated by the lighting device Y, unless the exposure timing of the camera X2 is appropriately controlled, even if the photograph is taken in the same environment, it is not intended. There is a risk of causing a difference in brightness.

そこで、本構成例のスマートフォンXは、カラーセンサX10として、先述のカラーセンサ1(図1を参照)を搭載し、明暗の差が少ないタイミングで露光を行うことにより、フリッカーの影響を抑える機能を備えている。以下、スマートフォンXの内部構成を例示しつつ、そのフリッカー抑制機能について詳述する。 Therefore, the smartphone X of this configuration example is equipped with the above-mentioned color sensor 1 (see FIG. 1) as the color sensor X10, and has a function of suppressing the influence of flicker by performing exposure at a timing when there is little difference between light and dark. I have. Hereinafter, the flicker suppressing function will be described in detail while exemplifying the internal configuration of the smartphone X. FIG.

図8は、スマートフォンXの内部構成例を示す図である。本図で示すように、スマートフォンXは、先出のカラーセンサX10以外にも、種々のセンサ(ここでは、照度センサX11、加速度センサX12、ジャイロセンサX13)を備えている。 FIG. 8 is a diagram showing an internal configuration example of the smartphone X. As shown in FIG. As shown in this figure, the smartphone X includes various sensors (here, an illuminance sensor X11, an acceleration sensor X12, and a gyro sensor X13) in addition to the color sensor X10 described above.

カラーセンサX10は、バスX20を介してマイコンX30に接続されており、環境光の色成分(赤色成分R、緑色成分G、青色成分B、及び赤外線成分IR)を検出して、その検出結果(=バス信号S3)をマイコンX30に出力する。また、カラーセンサX10は、先出のフラグ信号S4をマイコンX30に送出するための信号経路も備えている。 The color sensor X10 is connected to the microcomputer X30 via a bus X20, detects color components of ambient light (red component R, green component G, blue component B, and infrared component IR), and detects the detection result ( = output the bus signal S3) to the microcomputer X30. The color sensor X10 also has a signal path for sending the aforementioned flag signal S4 to the microcomputer X30.

照度センサX11は、バスX20を介してマイコンX30に接続されており、周囲の照度を検出して、その検出結果をマイコンX30に出力する。 The illuminance sensor X11 is connected to the microcomputer X30 via the bus X20, detects ambient illuminance, and outputs the detection result to the microcomputer X30.

加速度センサX12は、バスX20を介してマイコンX30に接続されており、スマートフォンXの加速度を検出して、その検出結果をマイコンX30に出力する。 The acceleration sensor X12 is connected to the microcomputer X30 via the bus X20, detects acceleration of the smartphone X, and outputs the detection result to the microcomputer X30.

ジャイロセンサX13は、バスX20を介してマイコンX30に接続されており、スマートフォンXの角速度を検出して、その検出結果をマイコンX30に出力する。 The gyro sensor X13 is connected to the microcomputer X30 via the bus X20, detects the angular velocity of the smartphone X, and outputs the detection result to the microcomputer X30.

バスX20は、所定の通信規格(例えばI2C)に準拠して各種センサX10~X13とマイコンX20との間を接続する信号伝達経路である。 The bus X20 is a signal transmission path that connects the various sensors X10 to X13 and the microcomputer X20 according to a predetermined communication standard (eg, I2C).

マイコンX30は、スマートフォンXの動作を統括的に制御する主体である。例えば、カラーセンサX10との連携機能に着目すると、マイコンX30は、カラーセンサX10で測定された環境光の色成分(色温度)に応じて、ディスプレイX1のバックライトを調整したり、カメラX2のホワイトバランスを調整したりする機能を備えている。 The microcomputer X30 is a main body that controls the operation of the smartphone X in a centralized manner. For example, focusing on the function of linking with the color sensor X10, the microcomputer X30 adjusts the backlight of the display X1 or the backlight of the camera X2 according to the color components (color temperature) of the ambient light measured by the color sensor X10. It has the ability to adjust the white balance.

また、マイコンX30は、カラーセンサ10から入力されるフラグ信号S4に応じて、カメラX2の露光タイミングを制御する機能も備えている。より具体的に述べると、マイコンX30は、フラグ信号S4にパルスが生成されるタイミング(=周期的に変動する周囲光の光量が最も大きくなるタイミング)で、カメラX2の露光を行うようにタイミング制御を行う。このような構成とすることにより、フリッカーの影響を抑えて常に明るい撮像を得ることが可能となる。 The microcomputer X30 also has a function of controlling the exposure timing of the camera X2 according to the flag signal S4 input from the color sensor 10. FIG. More specifically, the microcomputer X30 performs timing control so that the camera X2 is exposed at the timing at which a pulse is generated in the flag signal S4 (=the timing at which the amount of periodically fluctuating ambient light is maximized). I do. With such a configuration, it is possible to suppress the influence of flicker and always obtain a bright image.

また、マイコンX30は、照度センサX11で所定の閾値を超える照度の変動が検出された場合、若しくは、加速度センサX12またはジャイロセンサX13で所定の閾値を超える加速度または角速度の変動が検出された場合、バス信号S3を用いてその旨をカラーセンサX10に通知する機能を備えている。このような構成とすることにより、カラーセンサX10は、フラグ信号S4のパルス出力周期について、その基準値Tを更新すべきタイミングを知ることができるので、フリッカー検出精度を高めることが可能となる。 Further, when the illuminance sensor X11 detects a change in illuminance exceeding a predetermined threshold, or when the acceleration sensor X12 or the gyro sensor X13 detects a change in acceleration or angular velocity exceeding a predetermined threshold, the microcomputer X30 It has a function of notifying the color sensor X10 to that effect by using the bus signal S3. With such a configuration, the color sensor X10 can know the timing at which the reference value T should be updated for the pulse output period of the flag signal S4, so it is possible to improve the flicker detection accuracy.

<その他の変形例>
なお、本明細書中に開示されている種々の技術的特徴は、上記実施形態のほか、その技術的創作の主旨を逸脱しない範囲で種々の変更を加えることが可能である。すなわち、上記実施形態は、全ての点で例示であって制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態に限定されるものではなく、特許請求の範囲と均等の意味及び範囲内に属する全ての変更が含まれると理解されるべきである。
<Other Modifications>
In addition to the above embodiments, the various technical features disclosed in this specification can be modified in various ways without departing from the gist of the technical creation. That is, the above-described embodiments should be considered as examples and not restrictive in all respects, and the technical scope of the present invention is not limited to the above-described embodiments. It is to be understood that a range and equivalents are meant to include all changes that fall within the range.

本明細書中に開示されている発明は、例えば、スマートフォンなどの携帯電話、タブレット端末、ノートパソコン、携帯ゲーム機、液晶テレビ、ないしは、デジタルスチルカメラやデジタルビデオカメラなどに利用することが可能である。 The invention disclosed in this specification can be used, for example, in mobile phones such as smartphones, tablet terminals, laptop computers, portable game machines, liquid crystal televisions, digital still cameras, digital video cameras, and the like. be.

1 カラーセンサ(光センサ)
10 第1光検出回路
11 受光素子(フォトダイオード)
12 AD変換器
20 第2光検出回路
21R、21G、21B、21IR 受光素子(フォトダイオード)
22R、22G、22B、22IR AD変換器
23R、23G、23B、23IR 各種透過フィルタ(R、G、B、IR)
30 ロジック回路
31 積分部
32 ピーク位置検出部
33 ピーク周期補正部
40 赤外線遮断フィルタ
X スマートフォン(電子機器)
X1 ディスプレイ
X2 カメラ
X3 スピーカ
X4 マイク
X10 カラーセンサ
X11 照度センサ
X12 加速度センサ
X13 ジャイロセンサ
X20 バス
X30 マイコン
Y 照明器具(フリッカー光源)
1 Color sensor (optical sensor)
10 first photodetector circuit 11 light receiving element (photodiode)
12 AD converter 20 Second photodetector circuit 21R, 21G, 21B, 21IR Light receiving element (photodiode)
22R, 22G, 22B, 22IR AD converter 23R, 23G, 23B, 23IR Various transmission filters (R, G, B, IR)
30 Logic circuit 31 Integration unit 32 Peak position detection unit 33 Peak cycle correction unit 40 Infrared cut filter X Smart phone (electronic device)
X1 Display X2 Camera X3 Speaker X4 Microphone X10 Color sensor X11 Illuminance sensor X12 Acceleration sensor X13 Gyro sensor X20 Bus X30 Microcomputer Y Lighting equipment (flicker light source)

Claims (10)

環境光の光量に応じた第1光検出信号を出力する第1光検出回路と、
前記第1光検出信号のピーク周期毎にフラグ信号のパルス出力を行うロジック回路と、
を有し、
前記ロジック回路は、基準値設定期間において前記ピーク周期の実測値に応じて前記フラグ信号のパルス出力周期の基準値を設定し、補正値算出期間において前記ピーク周期の複数の実測値と前記パルス出力周期の前記基準値をそれぞれ比較することにより複数の誤差を求めて前記複数の誤差の平均値から前記パルス出力周期の補正値を設定することを特徴とする光センサ。
a first photodetection circuit that outputs a first photodetection signal according to the amount of ambient light;
a logic circuit that outputs a pulse of a flag signal for each peak period of the first photodetection signal;
has
The logic circuit sets a reference value of the pulse output period of the flag signal according to the measured value of the peak period during a reference value setting period, and sets the plurality of measured values of the peak period and the pulse output during a correction value calculation period. An optical sensor , wherein a plurality of errors are obtained by comparing the reference values of the periods, respectively, and a correction value for the pulse output period is set from an average value of the plurality of errors .
前記ロジック回路は、前記補正値算出期間の満了後、補正済みの前記パルス出力周期毎に前記フラグ信号のパルス出力を行うことを特徴とする請求項1に記載の光センサ。 2. The optical sensor according to claim 1, wherein the logic circuit outputs a pulse of the flag signal every corrected pulse output period after the correction value calculation period expires. 前記ロジック回路は、前記補正値を逐次更新することを特徴とする請求項1または請求項2に記載の光センサ。 3. The optical sensor according to claim 1, wherein the logic circuit successively updates the correction value. 前記ロジック回路は、前記第1光検出信号のピーク位置を複数検出して前記ピーク周期の実測値を求めることを特徴とする請求項1~請求項3のいずれか一項に記載の光センサ。 The photosensor according to any one of claims 1 to 3 , wherein the logic circuit detects a plurality of peak positions of the first photodetection signal and obtains an actual measurement value of the peak period. 前記ロジック回路は、前記第1光検出信号の連続する3つの測定値を、D[n-1]、D[n]、D[n+1]として、D[n-1]<D[n]かつD[n]≧D[n+1]を満たすとき、D[n]を前記第1光検出信号のピーク値とすることを特徴とする請求項4に記載の光センサ。 The logic circuit defines three consecutive measured values of the first photodetection signal as D[n−1], D[n], and D[n+1], where D[n−1]<D[n] and 5. The optical sensor according to claim 4, wherein D[n] is the peak value of the first photodetection signal when D[n]≧D[n+1]. 前記ロジック回路は、前記ピーク周期の実測値と前記パルス出力周期の基準値との誤差が所定の上限値に達したとき、または、前記誤差から求められる前記パルス出力周期の補正値が所定の上限値に達したとき、若しくは、外部センサの出力信号が所定の条件を満たしたときに、前記パルス出力周期の基準値を設定し直すことを特徴とする請求項~請求項5のいずれか一項に記載の光センサ。 The logic circuit operates when an error between the measured value of the peak period and the reference value of the pulse output period reaches a predetermined upper limit, or when the correction value of the pulse output period obtained from the error reaches a predetermined upper limit. or when the output signal of the external sensor satisfies a predetermined condition, the reference value of the pulse output period is reset. 10. The optical sensor according to claim 1. 前記環境光の色成分に応じた第2光検出信号を出力する第2光検出回路をさらに有することを特徴とする請求項1~請求項6のいずれか一項に記載の光センサ。 7. The photosensor according to claim 1, further comprising a second photodetection circuit that outputs a second photodetection signal corresponding to the color component of the ambient light. 前記ロジック回路は、前記第1光検出信号を第1周期でサンプリングし、前記第2光検出信号を前記第1周期よりも長い第2周期でサンプリングすることを特徴とする請求項7に記載の光センサ。 8. The logic circuit of claim 7, wherein the logic circuit samples the first photodetection signal in a first period and samples the second photodetection signal in a second period longer than the first period. light sensor. 請求項1~請求項8のいずれか一項に記載の光センサと、
前記光センサから前記フラグ信号の入力を受け付けるマイコンと、
前記光センサと前記マイコンとの間を接続するバスと、
を有することを特徴とする電子機器。
The optical sensor according to any one of claims 1 to 8,
a microcomputer that receives the input of the flag signal from the optical sensor;
a bus connecting between the optical sensor and the microcomputer;
An electronic device comprising:
カメラをさらに有し、
前記マイコンは、前記フラグ信号に応じて前記カメラの露光タイミングを制御することを特徴とする請求項9に記載の電子機器。
further having a camera;
10. The electronic device according to claim 9, wherein the microcomputer controls exposure timing of the camera according to the flag signal.
JP2018186400A 2018-10-01 2018-10-01 light sensor Active JP7190857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018186400A JP7190857B2 (en) 2018-10-01 2018-10-01 light sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018186400A JP7190857B2 (en) 2018-10-01 2018-10-01 light sensor

Publications (2)

Publication Number Publication Date
JP2020056641A JP2020056641A (en) 2020-04-09
JP7190857B2 true JP7190857B2 (en) 2022-12-16

Family

ID=70107041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018186400A Active JP7190857B2 (en) 2018-10-01 2018-10-01 light sensor

Country Status (1)

Country Link
JP (1) JP7190857B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11422025B2 (en) * 2020-12-16 2022-08-23 Pixart Imaging Inc. Optical sensor capable of synchronizing to ambient light flicker

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014220763A (en) 2013-05-10 2014-11-20 キヤノン株式会社 Imaging device, control method, program, and storage medium
JP2015138011A (en) 2014-01-24 2015-07-30 清水建設株式会社 Mobile carriage for photographing camera
JP2016134753A (en) 2015-01-19 2016-07-25 キヤノン株式会社 Image processing apparatus, information processing method, and program
JP2016135173A (en) 2015-01-23 2016-07-28 日本電信電話株式会社 Biomedical information measurement device, system, and method
JP2018006802A (en) 2016-06-27 2018-01-11 キヤノン株式会社 Imaging apparatus, control method therefor, and program
JP2018064214A (en) 2016-10-13 2018-04-19 キヤノン株式会社 Imaging apparatus and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08201158A (en) * 1995-01-30 1996-08-09 Tec Corp Electronic balance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014220763A (en) 2013-05-10 2014-11-20 キヤノン株式会社 Imaging device, control method, program, and storage medium
JP2015138011A (en) 2014-01-24 2015-07-30 清水建設株式会社 Mobile carriage for photographing camera
JP2016134753A (en) 2015-01-19 2016-07-25 キヤノン株式会社 Image processing apparatus, information processing method, and program
JP2016135173A (en) 2015-01-23 2016-07-28 日本電信電話株式会社 Biomedical information measurement device, system, and method
JP2018006802A (en) 2016-06-27 2018-01-11 キヤノン株式会社 Imaging apparatus, control method therefor, and program
JP2018064214A (en) 2016-10-13 2018-04-19 キヤノン株式会社 Imaging apparatus and control method thereof

Also Published As

Publication number Publication date
JP2020056641A (en) 2020-04-09

Similar Documents

Publication Publication Date Title
CN101534395B (en) System and method for adjusting screen brightness
CN103929598B (en) A kind of automatic explosion method and camera module detection method
CN105744247B (en) The method, apparatus of blank level adjustment and mobile equipment are carried out in a mobile device
WO2014110191A1 (en) Lighting system characterization
JP2014519045A (en) Method and apparatus for controlling light emitting devices in a terminal device, and terminal device
CN104344888B (en) Optical sensor semiconductor integrated circuit
CN104333750B (en) Photometric system and its applicable light measuring method and smart mobile phone
JP6391352B2 (en) Imaging apparatus, control method, program, and storage medium
JP7190857B2 (en) light sensor
US8419193B2 (en) Projection apparatus
WO2017051511A1 (en) Illuminance acquiring device, illuminance control system, and program
US10986282B2 (en) Image pickup apparatus that performs flash shooting suitable for both main subject and background, control method therefor, and light emission control apparatus
US20100271538A1 (en) Imaging apparatus
US20170353660A1 (en) Image capturing device and control method capable of adjusting exposure timing based on detected light quantity change characteristic
US9906705B2 (en) Image pickup apparatus
JP2007127781A (en) Projection display
US8988550B2 (en) Image-pickup apparatus and method of controlling the same
TWI398161B (en) Method of calibrating sensitivity gain
JP6456038B2 (en) Electronic device, light amount change characteristic calculation method, program, and storage medium
JP4731845B2 (en) Imaging apparatus and control method thereof
JP2015220673A (en) Imaging apparatus, control method, program, and storage medium
JP2017097288A (en) Imaging apparatus, method for controlling teh same, and control program
JP2016134753A (en) Image processing apparatus, information processing method, and program
CN102111559B (en) Method for correcting sensitivity gain
JP2011232461A (en) Strobe device, imaging device, camera system, reaching distance deriving method and reaching distance deriving program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220628

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220801

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221206

R150 Certificate of patent or registration of utility model

Ref document number: 7190857

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150