Explorer HAT warning message

Hello,

I just bught an Explorer Hat for my Raspberry Pi Zero. When I connect the Explorer Hat, boot my Raspberry Pi Zero.
I noticed the the blue led is flashing while booting and stays on afterwards.
Then I start Python3 and enter the following commands:

root@raspberrypi:~# python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import explorerhat
Warning, could not find Analog or Touch…
Please check your i2c settings!
explorerhat.input
one, two, three, four
explorerhat.output
one, two, three, four
explorerhat.touch

explorerhat.light
green, red, blue, yellow

Also, enabling the red light gives an error:
>>> explorerhat.light.red.on()
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘explorerhat’ is not defined

My I2C is enabled via raspi-config.

I also have an Explorer pHat, and this works fine:

Can somebody help?

Is this an Explorer HAT pro, or the version without ADC and H-bridges?

Either way, try:

i2cdetect -y 1

does it return any addresses or just a matrix of disapointment?

HI RogueM,

Is is the Explorer HAT Pro (PIM082).

The result of the command with my Explorer HAT Pro is:

root@raspberrypi:~# 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: – -- – -- – -- – --

Am I doing something wrong? I am working with a Pi Zero.

BTW, when I use the command with my Explorer pHAT, it returns:
root@raspberrypi:~# i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- 48 – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

yes, that’s correct for the pHAT, 0x48 is the address of the ADC chip. The HAT pro version should display the same address as well as 0x28 for the Cap Touch.

Since you’ve got LED lighting up it seems you’ve got power to the board. You could check the header joints for any problems, such as pins hanging up in the air but it’s not always easy to tell with SMT headers.

If you can’t see anything unusual, then I’m afraid you likely will have to contact support@pimoroni.com and get it swapped :(

Hi RogueM,

I powered mmy Pi from a Power Bank. Now I have powered it directly from an adapter, and now it seems to be working:

root@raspberrypi:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – 28 – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – 48 – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –

And via Python3:
root@raspberrypi:~# python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import explorerhat
Explorer HAT Pro detected…
explorerhat.input
two, three, one, four
explorerhat.output
two, three, one, four
explorerhat.touch
four, one, five, six, two, three, eight, seven
explorerhat.light
green, red, yellow, blue

Seems to beworking now.

Anyway, thank you for your help!

oh, right. I’m surprised the HAT is drawing that much more than the pHAT. Good work and happy to hear you found the cause.