Error in python with explorer hat pro


#1

I installed exporerhat on a clean installed Jessie (update/upgrade done).

When I launch python or python3, after a while I get this message (a script running or not).

Press CTRL+C to exit.*

Explorer HAT Pro detected…*
Exception in thread Thread-9:*
Traceback (most recent call last):*
File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner*
self.run()*
File “/usr/local/lib/python2.7/dist-packages/cap1xxx.py”, line 217, in run*
if self.todo() == False:*
File “/usr/local/lib/python2.7/dist-packages/cap1xxx.py”, line 442, in _poll*
if self.wait_for_interrupt():*
File “/usr/local/lib/python2.7/dist-packages/cap1xxx.py”, line 363, in wait_for_interrupt*
status = self._interrupt_status() # self._read_byte(R_MAIN_CONTROL)*
File “/usr/local/lib/python2.7/dist-packages/cap1xxx.py”, line 353, in _interrupt_status*
return self._read_byte(R_MAIN_CONTROL) & 1*
File “/usr/local/lib/python2.7/dist-packages/cap1xxx.py”, line 480, in _read_byte*
return self.i2c.read_byte_data(self.i2c_addr, register)*
IOError: [Errno 5] Input/output error*

Even if I just import explorer hat in one of the pythons, and do nothing more for a while, this happens.

Anybody any idea what is wrong ?


#2

This is Python crashing out when it fails to talk to the Cap Touch chip on Explorer HAT. It could be a flaky electrical connection between the Pi and HAT, or possible the chip itself misbehaving, or some marginal solder connection on the board itself.

Is your Explorer HAT Pro plugged right onto your Pi, or connected via something else?