<?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=Team11_temperature_and_humidity_sensor</id>
	<title>Team11 temperature and humidity 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=Team11_temperature_and_humidity_sensor"/>
	<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Team11_temperature_and_humidity_sensor&amp;action=history"/>
	<updated>2026-05-02T23:12:57Z</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=Team11_temperature_and_humidity_sensor&amp;diff=1185&amp;oldid=prev</id>
		<title>95.90.194.23: Created page with &quot;= SENS BME680 Temperature, Humidity, Air Pressure &amp; Gas Sensor = The SENS BME680 is a temperature, humidity, air pressure and gas (air quality) sensor. The breakout board is e...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.sketching-with-hardware.org/wiki/index.php?title=Team11_temperature_and_humidity_sensor&amp;diff=1185&amp;oldid=prev"/>
		<updated>2022-10-03T10:43:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= SENS BME680 Temperature, Humidity, Air Pressure &amp;amp; Gas Sensor = The SENS BME680 is a temperature, humidity, air pressure and gas (air quality) sensor. The breakout board is e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= SENS BME680 Temperature, Humidity, Air Pressure &amp;amp; Gas Sensor =&lt;br /&gt;
The SENS BME680 is a temperature, humidity, air pressure and gas (air quality) sensor. The breakout board is equipped with a 3.3V regulator and I2C as well as SPI digital interface. This lets you use it safely with any kind of microcontroller with 3.3V-5V power or logic.&lt;br /&gt;
&lt;br /&gt;
* Temperature - operation range from -40 to 85°C with an accuracy of ±1°C (full accuracy from 0 to 65°C)&lt;br /&gt;
* Humidity - operation range from 0 to 100% with an accuracy of ±3%&lt;br /&gt;
* Air pressure - operation range from 300 to 1100 hPa with an accuracy of ±1 hPa&lt;br /&gt;
* Air quality - a MOX (Metal-oxide) sensor that detects VOCs (like ethanol and carbon monoxide) in the air&lt;br /&gt;
&lt;br /&gt;
== Technical Specifications ==&lt;br /&gt;
The SENS BME680 is an I2C and SPI sensor. That means it uses the two I2C/SPI data/clock wires available on most microcontrollers and can share those pins with other sensors as long as they don&amp;#039;t have an address collision.&lt;br /&gt;
&lt;br /&gt;
=== Pinout ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;VCC&amp;#039;&amp;#039;&amp;#039; – power pin which can take 3-5VDC and safely converts it down using the built-in voltage regulator&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GND&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SCL&amp;#039;&amp;#039;&amp;#039; - SCL pin for I2C communication / SCK pin for SPI communication&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SDA&amp;#039;&amp;#039;&amp;#039; - SDA pin for I2C communication / SDI (MOSI)  pin for SPI communication&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SDO&amp;#039;&amp;#039;&amp;#039; - SDO (MISO) pin for SPI communication&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CS&amp;#039;&amp;#039;&amp;#039; - Chip select pin for SPI communication&lt;br /&gt;
&lt;br /&gt;
== Advantages and Disadvantages ==&lt;br /&gt;
=== Advantages ===&lt;br /&gt;
* Best alternative to the DHT22 sensor which is a popular standard. However, it would be too large/clunky as a smartwatch component&lt;br /&gt;
* I2C and SPI bus interface&lt;br /&gt;
* 4-in-1 digital sensor&lt;br /&gt;
&lt;br /&gt;
=== Disadvantages ===&lt;br /&gt;
* Size 30 x 14 x 10mm&lt;br /&gt;
* Relatively heavy (10g) in comparison to similar sensors&lt;br /&gt;
&lt;br /&gt;
= How to get it to work =&lt;br /&gt;
== Wiring with an ESP8266 ==&lt;br /&gt;
* Connect VCC to the power supply (3-5V is fine) - 3V&lt;br /&gt;
* Connect GND to common power/data ground - G&lt;br /&gt;
* Connect SCL to the I2C clock SCL pin on your microcontroller - GPIO5 (D1)&lt;br /&gt;
* Connect SDA to the I2C data SDA pin on your microcontroller - GPIO4 (D2)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2020/07/ESP8266-BME680-Environmental-Sensor-Wiring-Diagram-I2C.png?w=831&amp;amp;quality=100&amp;amp;strip=all&amp;amp;ssl=1 See schematic wiring diagram ]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Required Library ==&lt;br /&gt;
* Download and save following code as &amp;#039;&amp;#039;&amp;#039;[https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/ESP-MicroPython/bme680.py bme680.py]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* upload library to your 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 machine import Pin, I2C&lt;br /&gt;
from time import sleep&lt;br /&gt;
from bme680 import *&lt;br /&gt;
&lt;br /&gt;
# Create sensor object, communicating over the board&amp;#039;s default I2C bus&lt;br /&gt;
i2c = I2C(scl=Pin(5), sda=Pin(4))&lt;br /&gt;
bme = BME680_I2C(i2c=i2c)&lt;br /&gt;
&lt;br /&gt;
# Print out temperature, humidity, air pressure and air quality values&lt;br /&gt;
while True:&lt;br /&gt;
    temp = str(round(bme.temperature, 2)) + &amp;#039; °C&amp;#039;&lt;br /&gt;
    hum = str(round(bme.humidity, 2)) + &amp;#039; %&amp;#039;&lt;br /&gt;
    pres = str(round(bme.pressure, 2)) + &amp;#039; hPa&amp;#039;&lt;br /&gt;
    gas = str(round(bme.gas/1000, 2)) + &amp;#039; KOhms&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    print(&amp;#039;Temperature:&amp;#039;, temp)&lt;br /&gt;
    print(&amp;#039;Humidity:&amp;#039;, hum)&lt;br /&gt;
    print(&amp;#039;Pressure:&amp;#039;, pres)&lt;br /&gt;
    print(&amp;#039;Gas:&amp;#039;, gas)&lt;br /&gt;
    print(&amp;#039;----------&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    sleep(5)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Instructional Video ==&lt;br /&gt;
&amp;lt;youtube&amp;gt;g_oUZPzScyk&amp;lt;/youtube&amp;gt;&lt;/div&gt;</summary>
		<author><name>95.90.194.23</name></author>
	</entry>
</feed>