Yeah, if you use a cobbler the ribbon cable goes out away from the Pi, not over the top of it. The deal with the mini hacker kit is where pin 1 has to be. That's why the cable goes the way it does. If you think about it though, any hat you plug in goes across the Pi the same way.richrarobi wrote:I have a sensehat on a pi 2. I have tried extending headers, and putting everything on the side to allow convection. The sense hat (both sensors) consistently would read 21 degrees C when it is about 18 in here (Brrr!) - Has to be radiant heat from the pi-2 processor, because I moved the Hat to a Pimoroni Black Hat Hackr, and the sensors read 17.49 and 17.56......Correct at last
Note that with the extended header, I also had some problems with the hat that were probably down to the pins on the header being thinner and so not making best contact .....So far no probs with the ribbon connection, it works.
The pi is vertical on its side, gpio lowest, ribbon comes off the gpio going upwards, then away from the board, has a right angle bend and the hackr is away to the left, horizontal.
For my mind the design of the Hackr is cack handed because with pi horizontal, the cable run would be wrong (obstructing the heat flow of the pi to exit opposite side of the board or making the Hackr upside down.) Cable runs are always a pain.
AndersM wrote:I also noted that it takes a long time, ~15 min, for the temperature to stabilize.
Code: Select all
#Simple meteorology from sense_hat import SenseHat import time sense = SenseHat() while True : pressure = sense.get_pressure() temp = sense.get_temperature() humidity = sense.get_humidity() calctemp = 0.0071*temp*temp+0.86*temp-10.0 calchum=humidity*(2.5-0.029*temp) print '%.0f %.1f %.0f' % (pressure, calctemp, calchum) time.sleep(5)
Code: Select all
[email protected]:~$ i2cdump -r 0x30-0x3f 1 0x5f b WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-1, address 0x5f, mode byte Probe range limited to 0x30-0x3f. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 30: 3e 8c a0 17 00 c4 1a 00 d4 02 cf d8 00 00 2e 03 >???.??.????...?