@djsfantasi Sorry for being late. I understand I2C communication But my problem is that I am having a problem to understand the working of the sensor for I2c protocol. the sensor has multiple registers. I do not understand which register to use after sending slave register@aspirea5745
so as I and @LesJones have suggested, take the code in post #11 and get it to work. If you have trouble understanding that, you’ll have an almost impossible time writing your own code.
As I’ve mentioned, I can help you with that step. I have a strong programming background, including Arduino C.
Just type @djsfantasi in your post and I’ll be notified. Kinda like the Bat Signal.
My attempt is that I selected a sensor that works on I2C. After that, I also downloaded the datasheet of that sensor Even after that, I did not understand, so I searched the source code Most of the code I get is for Arduino only, that
are going over my head
I have shown the sequence that I have understood from post #39. I hope these sequences are correct according to the given code.
My request is please confirm the following sequences I will ask all other doubts later

Updated: 0x48 is salve address with write mode bit I think it should be 0x90 or 0x9E post # 4
Last edited:
