摘要 |
In certain example embodiments, techniques for operating vehicle lights are provided. A capacitive light sensor is configured to sense a presence and intensity of light over at least one wavelength, with each said wavelength being associated with a respective output channel of the light sensor. A buffer is filled with data from the at least one output channel, with the buffer being filled with a predetermined number of data points at a predetermined frequency. An edge change is detected in the data in the buffer. An on/off state of the vehicle lights is maintained when an edge change is not detected. When an edge change is detected, when the data passes from a high value to a low value through a first predefined threshhold and remains lower than the first predefined threshold for a persistence interval, the vehicle lights are turned on, and when the data passes from a low value to a high value through a second predefined threshold and remains higher than the second predefined threshold value for the persistence interval, the vehicle lights are turned off. The second threshold is equal to the first threshold plus a hysteresis factor. The capacitive light sensing approaches of certain example embodiments may be time, space, and/or wavelength multiplexed. |