Error with Skywriter Hat


#1

With completlety new hat i got this error:

pi@raspberrypi:~/Pimoroni/skywriter $ sudo python test.py
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import skywriter
  File "/usr/local/lib/python2.7/dist-packages/skywriter.py", line 488, in <module>
    i2c.write_i2c_block_data(SW_ADDR, 0xa1, [0b00000000, 0b00011111, 0b00000000, 0b00011111])
IOError: [Errno 5] Input/output error
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/lib/python2.7/dist-packages/skywriter.py", line 479, in _exit
    stop_poll()
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/lib/python2.7/dist-packages/skywriter.py", line 479, in _exit
    stop_poll()
TypeError: 'NoneType' object is not callable

Tested with few different sd cards with various raspbian image on two pi’s (pi zero and version b). Every time the same error. Installer throws no exceptions, everything went smoothly. Moreover:

pi@raspberrypi:~/Pimoroni/skywriter $ 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: – -- – -- – -- – --


[Errno 5] Input/output error with Skywriter HAT
#2

This is curious, the output of “i2cdetect” would suggest that i2c is set up and working correctly, but you should be seeing Skywriter HAT’s i2c address in that response. Do you have any other i2c devices which work? Although given you’ve tried it with two different Pi’s, it’s more likely than not a problem with the HAT.


#3

hold on, are you using Jessie Lite by any chance? something is not right there!


#4

Unfortunetelly not.

Currently not. Only difference with Lite, was much longer installation. Error output was the same.

UPDATE :
Tested with Pi2. Not working either. Always the same error.
I’m doing sth wrong or just out of luck and my hat is DOA?


#5

So nobody has any idea how to solve my problem?


#6

I am not entirely sure where we are at with this rash of DOA. A particular theory is that it is related to the EEPROM…

We’re still looking into it, but my best advise right now is to contact support@pimoroni.com and ask for a RMA and board swap.