HI,
I am using an arduino uno with an ambient light sensor (SFH 5712 and this link is its datasheet http://docs-asia.electrocomponents.com/webdocs/0dab/0900766b80dab386.pdf)
I searched the forum and found it is possible to use the sensor with the library called "wire".
However, i found that the lux level turns out to be a combination of two hex numbers stored in the LSB (0x8C) and MSB (0x8D).
There is a calculation example in the datasheet, here it comes:
LSB data and MSB data neet to be combined to a 16bit word as follows:
LSB data = 0xF0 (1111 0000)
MSB data = 0x83 (1000 0011)
-> in hex: out = 83F0 = 33776 counts
-> in binary: out= 1000 0011 combined with 1111 0000: 1000 0011 1111 0000 = 33776 counts
I want to ask how can i get the data from the sensor and do the calculation with the answer as decimal as above. ( A4 as the SDA and A5 as the SCL)
Thank you in advance. I really appreciate it . And i am sorry for my bad English.