melexis / mlx90640-library

MLX90640 library functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sub page number is not updated

achao1104 opened this issue · comments

Hello,

I am using the library, everything works fine, but it looks once sub page 0 is read and the bit3 is cleared, the next page is still the same number, however, I am expecting once the page 0 is read and the next page would be page 1 and then page 0 and then page 1

1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 34.335(23,29) avg1 22.065 avg2 12.119 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 34.403(22,20) avg1 22.130 avg2 11.988 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 35.753(22,20) avg1 21.202 avg2 12.015 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0001
min 0.000(0,0) max 34.701(22,16) avg1 21.142 avg2 12.036 control reg 1b01 sub page 1
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 18.691(14,15) max 35.008(21,12) avg1 31.817 avg2 24.035 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 18.691(14,15) max 34.701(22,16) avg1 32.284 avg2 23.909 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 16.839(8,30) max 34.701(22,16) avg1 31.184 avg2 23.401 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0000
min 18.691(14,15) max 34.701(22,16) avg1 29.174 avg2 23.438 control reg 1b01 sub page 0
1status reg 0009
2controlRegister1 1b01

Hello,

The measurements inside should be continuously running and if the readout is late some data could be lost. What is most likely happening is that the speed of your code is too slow for the refresh rate you chose. As a result you are skipping frames.

Best regards