Skip to content

tm2space/tm2_sunsense_lib

Repository files navigation

tm2_sunsense_lib (TM2Space SunSense C library)

SunSense by TakeMe2Space

About the Library

This is a C implementation of the TM2S SunSense. It uses the i2c library to communicate with the sensor. The default address of 0x29 on the i2c bus. If you want to optimise the library for other hardware, the customise the i2c_functions.c to update the appropiate method of read/write to the i2c bus.

Communication Protocol

The sensor works on i2c. It returns the lux_count as observed by the sensor. The sensor internally updates the lux_count every 400ms, esp when there is a substantial change in ambient luminosity. Also the sensor has an internal temperature compensation logic which ensures you do not have to worry about the ambient temperature the sensor is experiencing. Ensure that the operating temperature of the sensor is between -40 to 110 degrees Celcius.

About

TM2Space SunSense C library .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages