<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL20471_%E2%80%93_Environment_Sensor_HAT%2Fen</id>
	<title>WSAL20471 – Environment Sensor HAT/en - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL20471_%E2%80%93_Environment_Sensor_HAT%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL20471_%E2%80%93_Environment_Sensor_HAT/en&amp;action=history"/>
	<updated>2026-10-23T21:59:49Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in JW Tech Wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.jw-tech.eu/index.php?title=WSAL20471_%E2%80%93_Environment_Sensor_HAT/en&amp;diff=1560&amp;oldid=prev</id>
		<title>JWTechPublisher: Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex</title>
		<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL20471_%E2%80%93_Environment_Sensor_HAT/en&amp;diff=1560&amp;oldid=prev"/>
		<updated>2026-09-05T22:32:22Z</updated>

		<summary type="html">&lt;p&gt;Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOINDEX__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Documentation notice:&amp;#039;&amp;#039;&amp;#039; This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
The Waveshare Environment Sensor HAT adds five onboard sensors to a Raspberry Pi: ambient light (TSL25911), temperature/humidity/pressure (BME280), 9-axis motion (ICM20948), UV light (LTR390-UV-1), and VOC (SGP40). All sensors are connected via a shared I2C bus, requiring only two signal wires. The module plugs into the 40-pin GPIO header of common Raspberry Pi boards.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL20471 WSAL20471 – Environment Sensor HAT for Raspberry Pi, I2C Bus]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Connection: 40-pin GPIO header; compatible with common Raspberry Pi boards. The I2C bus connects all five sensors over just two wires.&lt;br /&gt;
* TSL25911 ambient light sensor: I2C address 0x29, effective range 0–88,000 lux; measures visible and infrared light using a broadband photodiode plus an IR photodiode on a single CMOS chip with a 16-bit dynamic range.&lt;br /&gt;
* BME280: I2C address 0x76. Temperature −40 to +85 °C (resolution 0.01 °C, accuracy ±1 °C); humidity 0–100 %RH (resolution 0.008 %RH, accuracy ±3 %RH, response time ~1 s); pressure 300–1100 hPa (resolution 0.18 hPa, accuracy ±1 hPa).&lt;br /&gt;
* ICM20948 9-axis sensor: I2C address 0x68. Accelerometer, gyroscope, and magnetometer are each 16-bit. Accelerometer range selectable: ±2/±4/±8/±16 g; gyroscope: ±250/±500/±1000/±2000 °/s; magnetometer: ±4900 µT.&lt;br /&gt;
* LTR390-UV-1 UV sensor: I2C address 0x53, sensitivity band 280–430 nm. Readings are raw ADC values; calibration uses formulas from the manual depending on the gain setting.&lt;br /&gt;
* SGP40 VOC sensor: I2C address 0x60 per the spec table (the text section mistakenly says 0x59). Measurement range 0–1,000 ppm ethanol equivalent; response time &amp;amp;lt;10 s (tau 63%), start-up time &amp;amp;lt;60 s; the chip supports humidity compensation.&lt;br /&gt;
* HAT power: onboard regulators convert 5 V to 3.3 V or 1.8 V; a level shifter converts 5 V logic to 1.8 V for the sensors.&lt;br /&gt;
* Python environment setup: &amp;#039;sudo apt-get install python3-smbus&amp;#039;, &amp;#039;sudo -H apt-get install python3-pil&amp;#039;, and &amp;#039;sudo apt-get install i2c-tools&amp;#039;. For C demos: download the &amp;#039;lg&amp;#039; driver archive, extract it, then run &amp;#039;make install&amp;#039;.&lt;br /&gt;
* Obtain demo code: &amp;#039;sudo apt-get install p7zip-full&amp;#039;, then download and extract the provided .7z archive and change into its directory. Run commands: for C &amp;#039;cd c &amp;amp;amp;&amp;amp;amp; make clean &amp;amp;amp;&amp;amp;amp; make -j 8 &amp;amp;amp;&amp;amp;amp; sudo ./main&amp;#039;; for Python &amp;#039;cd python &amp;amp;amp;&amp;amp;amp; sudo python test.py&amp;#039;. Individual sensors can be launched separately, e.g. &amp;#039;sudo python TSL2591.py&amp;#039;, &amp;#039;sudo python BME280.py&amp;#039;, &amp;#039;sudo python ICM20948.py&amp;#039;, &amp;#039;sudo python LTR390.py&amp;#039;, &amp;#039;sudo python SGP40.py&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Commands and examples – verify before use:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
wget https://github.com/joan2937/lg/archive/master.zip&lt;br /&gt;
unzip master.zip&lt;br /&gt;
cd lg-master&lt;br /&gt;
sudo make install&lt;br /&gt;
sudo apt-get install python3-smbus&lt;br /&gt;
sudo -H apt-get install python3-pil&lt;br /&gt;
sudo apt-get install i2c-tools&lt;br /&gt;
sudo apt-get install p7zip-full&lt;br /&gt;
wget https://files.waveshare.com/upload/b/ba/Environment_Sensor_HAT_Code.7z&lt;br /&gt;
7z x Environment_Sensor_HAT_Code.7z -r -o./Environment_Sensor_HAT_Code&lt;br /&gt;
cd Environment_Sensor_HAT_Code&lt;br /&gt;
cd c&lt;br /&gt;
make clean&lt;br /&gt;
make -j 8&lt;br /&gt;
sudo ./main&lt;br /&gt;
cd python&lt;br /&gt;
sudo python test.py&lt;br /&gt;
sudo python TSL2591.py&lt;br /&gt;
sudo python BME280.py&lt;br /&gt;
sudo python ICM20948.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* SGP40 I2C address: the specification table lists 0x60, but the individual sensor section states 0x59. Verify the correct address on the device before use.&lt;br /&gt;
* Temperature readings may be skewed by heat dissipation from the Raspberry Pi; add cooling (e.g., a fan) if needed.&lt;br /&gt;
* The UV sensor returns raw ADC values; without calibration according to the manual, the values cannot be directly interpreted as a physical quantity.&lt;br /&gt;
* The VOC sensor requires up to 60 s start-up time before stable measurements are possible; the Python demo shows unprocessed raw values that must be processed via the Sensirion C algorithm.&lt;br /&gt;
* All launch examples are demonstration paths; actual file names and directories may differ depending on your local setup.&lt;br /&gt;
* Compatibility: The HAT is stated to work with all common Raspberry Pi models; any board-specific limitations should be checked before integration.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/Environment_Sensor_HAT Environment Sensor HAT - Waveshare Wiki]&lt;br /&gt;
* Source revision: 89822&lt;br /&gt;
* Captured: 2026-09-02T03:54:00+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;0333e174980fa4c685847b3139367eb18fa80e1aba31f00d103cf229c83d725b&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>