WB4WTN
Posts: 33
Joined: Thu Jan 17, 2013 9:27 pm

Newbie Question

Thu May 18, 2023 9:03 pm

I thought I might like to use the Sense Hat with my Pi 4, but in what I have read so far, one needs to be a Python programmer to get real use of the hat. Is there any pre-build software for the Hat?

User avatar
GTR2Fan
Posts: 1799
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Newbie Question

Thu May 18, 2023 9:08 pm

Pi4B 2GB Rev1.4 Mini-PC/Media Centre: ARM=2.25GHz @1.1v, Core=600MHz, GPU=850MHz. Raspberry Pi OS with KODI on 128GB Sandisk Extreme Pro A2 microSD card in Integral card reader in USB3.0 port (138MB/s read). Geekworm P173 case with copper shim on SOC.

WB4WTN
Posts: 33
Joined: Thu Jan 17, 2013 9:27 pm

Re: Newbie Question

Thu May 18, 2023 9:14 pm

Thanks, but as I read this, I still see that I need to be either a C++ or Python programmer. I'm not interested in programming, I want to gather data.

User avatar
GTR2Fan
Posts: 1799
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Newbie Question

Thu May 18, 2023 9:46 pm

I don't see how you're going to gather data without using software to access the hardware. That software will most likely be Python.

This weather sensor guide should give you some useful pointers...

https://maker.pro/raspberry-pi/projects ... ensor-data
Pi4B 2GB Rev1.4 Mini-PC/Media Centre: ARM=2.25GHz @1.1v, Core=600MHz, GPU=850MHz. Raspberry Pi OS with KODI on 128GB Sandisk Extreme Pro A2 microSD card in Integral card reader in USB3.0 port (138MB/s read). Geekworm P173 case with copper shim on SOC.

WB4WTN
Posts: 33
Joined: Thu Jan 17, 2013 9:27 pm

Re: Newbie Question

Thu May 18, 2023 9:51 pm

I understand that I will need software to gather data. If all I want is pressure readings why do I have to reinvent the wheel? Thanks for the reply.

ame
Posts: 7085
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Newbie Question

Thu May 18, 2023 10:07 pm

WB4WTN wrote:
Thu May 18, 2023 9:51 pm
I understand that I will need software to gather data. If all I want is pressure readings why do I have to reinvent the wheel? Thanks for the reply.
You don't have to reinvent the wheel. The software is already written:

Code: Select all

from sense_hat import SenseHat

sense = SenseHat()
pressure = sense.get_pressure()
print("Pressure: %s Millibars" % pressure)

# alternatives
print(sense.pressure)
This information is included in the Fine Manual:
https://pythonhosted.org/sense-hat/api/
Hmm. What can I put here?

Return to “Astro Pi”