I had this posted at the bottom of another chain in the forum, wasn’t getting any views so I figured I’d make it a topic, hoping to get some responses before the weekend.
I’m working on a python version of the driver for the human presence sensor. Got the whole thing written. Just ported the c++ one provided with some guidance from a few other sensors with python code already created from them. Seems to work. I can read and write to to all the configuration registers etc. I can read the high and low order data registers but they are always 0. Its like the chip isn’t really on - its not collecting data.
Its in continuos mode (100). The data ready flags (DR and DRDY) never change to 1.
Anybody got any ideas what to look at?
I’m reading the high and low bytes separeately using readByte from the qwiic_i2c module. All the IR registers and temperature value bytes come back as 0. I know I’ve got to put the bytes together and deal with two’s complement, but with all 0s not sure how any of that could be an issue. I’m also reading the dummy register to let it know it can refill data.
It just seems like I’m missing something that says “GO”. I’m doing all the initial setup the c++ driver does. Wondering if its also missing something.
Thanks.