<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.sketching-with-hardware.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Team14_barometric_pressure_sensor</id>
	<title>Team14 barometric pressure sensor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.sketching-with-hardware.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Team14_barometric_pressure_sensor"/>
	<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Team14_barometric_pressure_sensor&amp;action=history"/>
	<updated>2026-05-02T23:05:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://www.sketching-with-hardware.org/wiki/index.php?title=Team14_barometric_pressure_sensor&amp;diff=1187&amp;oldid=prev</id>
		<title>62.216.214.31: Created page with &quot;= PIM472 BME280 Temperature, Pressure, &amp; Humidity Sensor = The BME280 is a sensor from Bosch used for measuring the temperature, air pressure and humidity. It is a nice enviro...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Team14_barometric_pressure_sensor&amp;diff=1187&amp;oldid=prev"/>
		<updated>2022-10-12T21:52:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= PIM472 BME280 Temperature, Pressure, &amp;amp; Humidity Sensor = The BME280 is a sensor from Bosch used for measuring the temperature, air pressure and humidity. It is a nice enviro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= PIM472 BME280 Temperature, Pressure, &amp;amp; Humidity Sensor =&lt;br /&gt;
The BME280 is a sensor from Bosch used for measuring the temperature, air pressure and humidity. It is a nice environmental sensor for indoors or even outdoors in a suitable enclosure. The breakout board is compatible with 3.3 or 5 operating supply voltage and uses an I2C interface. This makes the sensor compatible for operating using any model of Raspberry Pi or Arduino microcontroller.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pressure:&amp;#039;&amp;#039;&amp;#039; range of 300 to 1100 hPa, sensitivity error ±0.25%, RMS Noise 0.2Pa&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Temperature:&amp;#039;&amp;#039;&amp;#039; range of -40 to 85°C &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Humidity:&amp;#039;&amp;#039;&amp;#039; accuracy tolerance ±3% relative humidity&lt;br /&gt;
&lt;br /&gt;
== Technical Specifications ==&lt;br /&gt;
If you’re using a Raspberry Pi, you can solder the PIM472 onto the bottom left 5 pins on your Raspberry Pi&amp;#039;s GPIO header (pins 1, 3, 5, 6, 9).&lt;br /&gt;
&lt;br /&gt;
===Pinout===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2-6V&amp;#039;&amp;#039;&amp;#039; - Power supply, compatible with 3.3V and 5V&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SDA&amp;#039;&amp;#039;&amp;#039; - Serial Data Input: I2C communication&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SCL&amp;#039;&amp;#039;&amp;#039; - Serial Clock Input: I2C communication&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GND&amp;#039;&amp;#039;&amp;#039; - Ground&lt;br /&gt;
&lt;br /&gt;
== Advantages and Disadvantages ==&lt;br /&gt;
&lt;br /&gt;
=== Advantages ===&lt;br /&gt;
* Three sensors in one&lt;br /&gt;
* Many uses for mobile applications and wearables: health monitoring (heat stroke and dehydration warning, lung volume ), weather forecast, indoor and outdoor navigation, control of heating, ventilation, air conditioning (HVAC) systems, sports and leisure&lt;br /&gt;
* I2C and SPI bus interface&lt;br /&gt;
&lt;br /&gt;
=== Disadvantages ===&lt;br /&gt;
* Price (~16€) high if you don’t need all three sensor functions&lt;br /&gt;
&lt;br /&gt;
= Getting the BME280 to work =&lt;br /&gt;
&lt;br /&gt;
== Wiring with Wemos D1 Mini ==&lt;br /&gt;
* Connect 2-6V to power supply (3.3V or 5V) - we use 5V&lt;br /&gt;
* Connect SDA to any I2C data SDA pin - GPIO4 (D2)&lt;br /&gt;
* Connect SCL to any I2C data SCL pin - GPIO5 (D1)&lt;br /&gt;
* Connect GND to ground - G&lt;br /&gt;
&lt;br /&gt;
== Required Library ==&lt;br /&gt;
* Download and save this code as &amp;#039;&amp;#039;&amp;#039;[https://github.com/RuiSantosdotme/ESP-MicroPython/blob/master/code/WiFi/HTTP_Client_IFTTT_BME280/BME280.py BME280.py]&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
* Upload the code to the microcontroller&lt;br /&gt;
&lt;br /&gt;
== Code Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;#039;line&amp;#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# import modules&lt;br /&gt;
from time import sleep&lt;br /&gt;
from machine import Pin, I2C&lt;br /&gt;
import BME280&lt;br /&gt;
&lt;br /&gt;
# Initialise the BME280&lt;br /&gt;
sda = Pin(4)&lt;br /&gt;
scl = Pin(5)&lt;br /&gt;
i2c = machine.I2C(sda=sda, scl=scl)&lt;br /&gt;
bme280 = BME280.BME280(i2c=i2c)&lt;br /&gt;
&lt;br /&gt;
# Print out temperature, air pressure and humidity values&lt;br /&gt;
while True:&lt;br /&gt;
    temperature = bme280.temperature&lt;br /&gt;
    pressure = bme280.pressure&lt;br /&gt;
    humidity = bme280.humidity&lt;br /&gt;
    &lt;br /&gt;
    print(&amp;#039;Temperature: &amp;#039;, temperature)&lt;br /&gt;
    print(&amp;#039;Air pressure: &amp;#039;, pressure)&lt;br /&gt;
    print(&amp;#039;Humidity: &amp;#039;, humidity)&lt;br /&gt;
    print(&amp;quot;----------------------&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    sleep(2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Instructional Video ==&lt;/div&gt;</summary>
		<author><name>62.216.214.31</name></author>
	</entry>
</feed>