Patent attributes
One innovative aspect is directed to heart rate data collection. In some implementations, a circuit includes a light detector for generating a first electrical signal based on received light. The circuit includes a switching circuit, having a first and a second configuration, configured to receive a first voltage signal based on the first electrical signal and to switch among the first and the second configurations. The circuit includes first and second sampling circuits for sampling a value of the first voltage signal when the switching circuit is in the first configuration and second configurations, respectively. The circuit includes an ambient light cancellation circuit for generating a current signal to counter a first component of the first electrical signal when the first switching circuit is in the first configuration.