{"id":846,"date":"2017-12-24T17:16:43","date_gmt":"2017-12-24T17:16:43","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=846"},"modified":"2020-10-12T16:32:21","modified_gmt":"2020-10-12T16:32:21","slug":"how-to-build-a-wireless-bluetooth-weather-station-arduino","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=846","title":{"rendered":"How to build a wireless Bluetooth weather station (Arduino)"},"content":{"rendered":"<h1>In this tutorial we will take a look at how you can use a Arduino with a hc-06 and hc-05 Bluetooth module and a dht11 or dht22 temp and humidity sensor to make a wireless Bluetooth weather station&#8230;<\/h1>\n<p><iframe loading=\"lazy\" title=\"How to build a wireless Bluetooth weather station (Arduino)\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ITMLXg-MH1A?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h1><strong><a href=\"https:\/\/www.facebook.com\/zarduino\/\">Check us out on Facebook!<\/a><\/strong><\/h1>\n<h1><\/h1>\n<h1>Links For More INFO:<\/h1>\n<p><a href=\"https:\/\/thezhut.com\/?page_id=173\" target=\"_blank\" rel=\"noopener noreferrer\">How to set up and use a 1602 I2C serial LCD with your ARDUINO.<\/a><\/p>\n<p><a href=\"https:\/\/thezhut.com\/?page_id=837\" target=\"_blank\" rel=\"noopener noreferrer\">DHT11 and DHT22 temp and humidity sensor<\/a><\/p>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/dht11_pinout.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-849\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/dht11_pinout.jpg?w=300\" alt=\"\" width=\"631\" height=\"482\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/dht11_pinout.jpg 594w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/dht11_pinout-300x229.jpg 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/a><\/p>\n<h2>Parts List:<\/h2>\n<p>#affiliate links#<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=ddbb09074c977d3662fda5230a02c1dc\" target=\"_blank\" rel=\"noopener noreferrer\">2X ARDUINO board&#8217;s<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=dht11&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e7c4adc78ac21ff5f89ec5ab4e47d4aa\" target=\"_blank\" rel=\"noopener noreferrer\">DHT11 or DHT22<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=i2c 1602&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=b6602997f16082065c192b60138fac5c\" target=\"_blank\" rel=\"noopener noreferrer\">I2C LCD Screen<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=hc-05&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=13e1c5584d946e1c6e42416e0b567882\" target=\"_blank\" rel=\"noopener noreferrer\">HC-05<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=hc-06&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=994357ef13e173cff7c53e1a947b388b\" target=\"_blank\" rel=\"noopener noreferrer\">HC-06<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=logic level converter&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=5ff6d29f6a0514a7c6102ea0f8b6f92d\" target=\"_blank\" rel=\"noopener noreferrer\">2X Logic LVL Converters<\/a><\/p>\n<h2>SCHEMATICS:<\/h2>\n<h1>RX &#8211;<\/h1>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-850\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx.jpg?w=300\" alt=\"\" width=\"618\" height=\"435\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx.jpg 1218w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx-300x211.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx-768x539.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_rx-1024x719.jpg 1024w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><\/p>\n<h1>TX &#8211;<\/h1>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-851\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg?w=300\" alt=\"\" width=\"616\" height=\"433\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx.jpg 1218w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-300x211.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-768x539.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/12\/weather_tx-1024x719.jpg 1024w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n<h2>ARDUINO Code:<\/h2>\n<h2>TX code:<\/h2>\n<p>#include &lt;SimpleDHT.h&gt;<br \/>\n#define pinDHT11 6 \/\/data pin<br \/>\nSimpleDHT11 dht11;<\/p>\n<p>void setup() {<br \/>\nSerial.begin(9600);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nbyte temperature = 0;<br \/>\nbyte humidity = 0;<br \/>\ndht11.read(pinDHT11, &amp;temperature, &amp;humidity, NULL);<br \/>\nSerial.write(temperature);<br \/>\ndelay(1000);<br \/>\nSerial.write(humidity+200);<br \/>\ndelay(1000);<\/p>\n<p>}<\/p>\n<h2>RX Code:<\/h2>\n<p>#include &lt;Wire.h&gt;<br \/>\n#include &lt;LiquidCrystal_I2C.h&gt;<br \/>\nLiquidCrystal_I2C lcd(0x3f, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);<br \/>\nint temperature;<br \/>\nint humidity;<br \/>\nvoid setup() {<br \/>\nSerial.begin(9600);<br \/>\nlcd.begin(16, 2); \/\/ initialize the lcd for 16 chars 2 lines<br \/>\nlcd.clear();<br \/>\nlcd.setCursor(0, 0);<br \/>\nlcd.print(&#8220;Temperature&#8221;);<br \/>\nlcd.setCursor(15, 0);<br \/>\nlcd.print(&#8220;C&#8221;);<br \/>\nlcd.setCursor(0, 1);<br \/>\nlcd.print(&#8220;Humidity&#8221;);<br \/>\nlcd.setCursor(12, 1);<br \/>\nlcd.print(&#8220;%&#8221;);<br \/>\nlcd.setCursor(12, 0);<br \/>\nlcd.print(temperature);<br \/>\nlcd.setCursor(9, 1);<br \/>\nlcd.print(humidity);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\nif (Serial.available() &gt; 0){<br \/>\nint val = Serial.read();<\/p>\n<p>if (val &lt;= 199)<br \/>\n{<br \/>\ntemperature = val;<br \/>\n}<\/p>\n<p>else if (val &gt;= 200)<br \/>\n{<br \/>\nhumidity = (val &#8211; 200);<br \/>\nlcd.clear();<br \/>\nlcd.setCursor(0, 0);<br \/>\nlcd.print(&#8220;Temperature&#8221;);<br \/>\nlcd.setCursor(14, 0);<br \/>\nlcd.print(&#8220;C&#8221;);<br \/>\nlcd.setCursor(0, 1);<br \/>\nlcd.print(&#8220;Humidity&#8221;);<br \/>\nlcd.setCursor(11, 1);<br \/>\nlcd.print(&#8220;%&#8221;);<br \/>\nlcd.setCursor(12, 0);<br \/>\nlcd.print(temperature);<br \/>\nlcd.setCursor(9, 1);<br \/>\nlcd.print(humidity);<br \/>\n}<\/p>\n<p>delay(100);<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will take a look at how you can use a Arduino with a hc-06 and hc-05 Bluetooth module and a dht11 or dht22 temp and humidity sensor to make a wireless Bluetooth weather station&#8230; Check us &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=846\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":10,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-846","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=846"}],"version-history":[{"count":3,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/846\/revisions"}],"predecessor-version":[{"id":1598,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/846\/revisions\/1598"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/10"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}