Patent ID: 9618609
Date: 2017-04-11
CPC Classifications: G01S,G01V,G06F

Claim:
1. An optical sensor, comprising: a light-emitting element which turns off and turns on alternately for each of a plurality of continuous periods constituting a period group; a light-receiving element which receives light emitted from the light-emitting element and reflected by an object to be sensed and which generates a photocurrent; and an integrating circuit which integrates the photocurrent in a first polarity direction in a period during which the light-emitting element turns on and integrates the photocurrent in a second polarity direction opposite to the first polarity direction in a period during which the light-emitting element turns off, wherein a sum of a length of an integration period in a first period of the period group and a length of an integration period in a last period of the period group is same as a length of one integration period in a period other than the first period and the last period in the period group.