adafruit / Adafruit_CircuitPython_AMG88xx

circuit python driver from AMG88xx GRID-EYE 8x8 IR sensor
MIT License
38 stars 26 forks source link

Strange values from simpletest.py #11

Closed danielcrisp closed 4 years ago

danielcrisp commented 5 years ago

I've just tried the simpletest.py example on my GridEye + R-Pi and I'm getting some very odd temperature readings:

['0.0', '0.0', '0.0', '511.2', '510.5', '510.8', '509.8', '506.5']

['1.5', '0.2', '511.5', '510.8', '510.0', '510.0', '509.8', '506.8']

['0.8', '0.0', '511.2', '510.8', '510.0', '509.8', '508.8', '506.2']

['511.8', '511.0', '510.8', '509.8', '510.2', '509.5', '508.8', '507.0']

['511.0', '510.8', '510.8', '510.2', '510.2', '509.2', '509.0', '506.0']

['510.8', '511.0', '510.8', '511.0', '510.2', '510.8', '509.5', '506.5']

['510.5', '510.8', '510.5', '511.0', '510.5', '509.8', '509.2', '505.0']

['508.8', '510.8', '511.2', '510.0', '511.8', '510.8', '509.0', '503.5']

It is unseasonably warm here but 500+°c seems a little excessive.

Update: The thermistor is reading 44.6

Any ideas?

ladyada commented 5 years ago

could be bad wiring or corrupted data! where did you buy the sensor?

danielcrisp commented 5 years ago

Just replicated on another GridEye / R-Pi.

Thermistor: 46.0
['511.0', '511.2', '511.8', '510.5', '509.5', '0.8', '0.0', '511.8']

['511.8', '511.5', '511.2', '511.2', '508.8', '1.2', '0.5', '511.2']

['511.8', '511.2', '511.5', '510.5', '508.5', '1.2', '0.0', '0.0']

['0.0', '0.2', '0.0', '511.2', '509.0', '1.0', '0.0', '1.5']

['0.0', '1.2', '0.5', '0.2', '509.0', '0.0', '511.2', '508.8']

['1.2', '0.5', '511.2', '511.8', '511.2', '511.5', '510.5', '508.5']

['1.2', '0.0', '0.0', '0.0', '0.2', '0.0', '511.2', '509.0']

['1.0', '0.0', '1.5', '0.0', '1.2', '0.5', '0.2', '509.0']

Not sure who they were bought from, but it was bought in bulk through work so I'm pretty sure they're genuine.

We've been seeing interference in some environments in the readings when reading using smbus (and doing other stuff) so I was hoping that your simple test would be cleaner and the problems could be isolated to our code pipeline. But this looks like something else is going on!

I read here that GPIO wires can act as antenna and that enabling the pull-up / pull-down resistors can help. Does that sound feasible?

ladyada commented 5 years ago

if they're adafruit items - maybe post in the adafruit forums, also if you can test the breakout with an arduino that's a good idea!

danielcrisp commented 5 years ago

Ok, cool - I'll investigate. Thanks for the quick responses!

robmarkcole commented 5 years ago

@danielcrisp the grid-eye we are using does not have built in pull-up resistors, probably causing these odd readings

evaherrada commented 5 years ago

@danielcrisp Were you ever able to get more accurate readings?

danielcrisp commented 5 years ago

@dherrada I didn't, no, but I didn't persevere either. Did you get it working ok @robmarkcole?

danielcrisp commented 4 years ago

I don't know what I was doing wrong before, but I've just tried this again and I'm getting decent results now.