Hi,
Finally I could get hold of AMG8833 sensor to test using RaspberryPi and Arduino.
At first I would list problem I faced using RaspberryPi.
I am trying to execute the code as specified in help link below:
https://learn.adafruit.com/adafruit-amg ... mal-cameraHowever, I am getting below error:
*****************************************************************************************************************************************
*****************************************************************************************************************************************
(py3cv4) pi@raspberrypi:~/Desktop/sunil/vision/code $ python Thermal8833_1.py
pygame 1.9.6
Hello from the pygame community.
https://www.pygame.org/contribute.htmlALSA lib bluealsa-pcm.c:763:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
Traceback (most recent call last):
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 184, in __probe_for_device
self.i2c.writeto(self.device_address, b"")
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/busio.py", line 111, in writeto
return self._i2c.writeto(address, buffer, stop=stop)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 49, in writeto
self._i2c_bus.write_bytes(address, buffer[start:end])
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 308, in write_bytes
self._device.write(buf)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 190, in __probe_for_device
self.i2c.readfrom_into(self.device_address, result)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/busio.py", line 101, in readfrom_into
return self._i2c.readfrom_into(address, buffer, stop=stop)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 56, in readfrom_into
readin = self._i2c_bus.read_bytes(address, end - start)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 179, in read_bytes
return self._device.read(number)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Thermal8833_1.py", line 36, in <module>
sensor = adafruit_amg88xx.AMG88XX(i2c_bus)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_amg88xx.py", line 134, in __init__
self.i2c_device = I2CDevice(i2c, addr)
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 69, in __init__
self.__probe_for_device()
File "/home/pi/.virtualenvs/py3cv4/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 192, in __probe_for_device
raise ValueError("No I2C device at address: %x" % self.device_address)
ValueError: No I2C device at address: 69
*****************************************************************************************************************************************
*****************************************************************************************************************************************
Further, when I check for I2C device, I find it very much in place (i.e. at Address 69) sometimes. I say sometimes, as I am getting different results for same AMG8833 device/RaspberryPi Setup
Please see snapshot of command output below:
pi@raspberrypi:~/Desktop/sunil/vision/code $
pi@raspberrypi:~/Desktop/sunil/vision/code $
pi@raspberrypi:~/Desktop/sunil/vision/code $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Desktop/sunil/vision/code $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Desktop/sunil/vision/code $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
May be because of this erratic behaviour of hardware setup, system is giving faults. But I do not know.
I tried with two AMG8833 sensors, and it is same behaviour for both of them.
Kindly help.
Thanks,
Sunil