{"id":3541,"date":"2023-08-05T06:22:26","date_gmt":"2023-08-05T13:22:26","guid":{"rendered":"https:\/\/www.donluc.com\/?p=3541"},"modified":"2023-08-05T06:22:26","modified_gmt":"2023-08-05T13:22:26","slug":"project-26-radio-frequency-bluetooth-sparkfun-bme280-mk21","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=3541","title":{"rendered":"Project #26 &#8211; Radio Frequency &#8211; Bluetooth SparkFun BME280 &#8211; Mk21"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-3541-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #RadioFrequency #Bluetooth #SparkFun #BME280 #Arduino #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02a.png\" alt=\"Bluetooth SparkFun BME280\" width=\"720\" height=\"362\" class=\"alignnone size-full wp-image-3543\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02a-300x151.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02b.png\" alt=\"Bluetooth SparkFun BME280\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3544\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02c.png\" alt=\"Bluetooth SparkFun BME280\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3545\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/08\/DL2307Mk02c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>SparkFun Atmospheric Sensor Breakout &#8211; BME280<\/strong><\/p>\n<p>The SparkFun BME280 Atmospheric Sensor Breakout is the easy way to measure barometric pressure, humidity, and temperature readings all without taking up too much space. Basically, anything you need to know about atmospheric conditions you can find out from this tiny breakout. The BME280 Breakout has been design to be used in indoor\/outdoor navigation, weather forecasting, home automation, and even personal health and wellness monitoring.<\/p>\n<p><strong>DL2307Mk02<\/strong><\/p>\n<p>1 x SparkFun Thing Plus &#8211; ESP32 WROOM<br \/>\n1 x Android NextBook<br \/>\n1 x SparkFun BME280 &#8211; Temperature, Humidity, Barometric Pressure, and Altitude<br \/>\n1 x Lithium Ion Battery &#8211; 850mAh<br \/>\n1 x SparkFun Cerberus USB Cable<\/p>\n<p><strong>SparkFun Thing Plus &#8211; ESP32 WROOM<\/strong><\/p>\n<p>LED &#8211; LED_BUILTIN<br \/>\nSDA &#8211; Digital 23<br \/>\nSCL &#8211; Digital 22<br \/>\nRX2 &#8211; Bluetooth<br \/>\nTX2 &#8211; Bluetooth<br \/>\nVIN &#8211; +3.3V<br \/>\nGND &#8211; GND<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>DL2307Mk02p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/* ***** Don Luc Electronics \u00a9 *****\r\nSoftware Version Information\r\nProject #26 - Radio Frequency - SparkFun BME280 - Mk21\r\n26-21\r\nDL2307Mk02pr.ino\r\n1 x SparkFun Thing Plus - ESP32 WROOM\r\n1 x Android NextBook\r\n1 x SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\n1 x Lithium Ion Battery - 850mAh\r\n1 x SparkFun Cerberus USB Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ Bluetooth Serial\r\n#include &quot;BluetoothSerial.h&quot;\r\n#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)\r\n#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it\r\n#endif\r\n\/\/ Two Wire Interface (TWI\/I2C)\r\n#include &lt;Wire.h&gt;\r\n\/\/ SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\n#include &lt;SparkFunBME280.h&gt;\r\n\r\n\/\/ Bluetooth Serial\r\nBluetoothSerial SerialBT;\r\n\r\n\/\/ SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\nBME280 myBME280;\r\nfloat BMEtempC = 0;\r\nfloat BMEhumid = 0;\r\nfloat BMEpressure = 0;\r\nfloat BMEaltitudeM = 0;\r\nString FullString = &quot;&quot;;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;26-21&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\n  isBME280();\r\n\r\n  \/\/ Delay 1 sec\r\n  delay(1000);\r\n\r\n}\r\n<\/pre>\n<p><strong>getBME280.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\n\/\/ isBME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\nvoid isBME280(){\r\n\r\n  \/\/ Temperature Celsius\r\n  BMEtempC = myBME280.readTempC();\r\n  \/\/ Humidity\r\n  BMEhumid = myBME280.readFloatHumidity();\r\n  \/\/ Barometric Pressure\r\n  BMEpressure = myBME280.readFloatPressure();\r\n  \/\/ Altitude Meters\r\n  BMEaltitudeM = (myBME280.readFloatAltitudeMeters(), 2);\r\n\r\n  \/\/ FullString\r\n  FullString = &quot;Temperature = &quot; + String(BMEtempC,2) + &quot; Humidity = &quot;\r\n  + String(BMEhumid,2) + &quot; Barometric = &quot; + String(BMEpressure,2) \r\n  + &quot; Altitude Meters = &quot; + String(BMEaltitudeM,2) + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullString Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullString.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullString.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullString.c_str()[i]);\r\n    \r\n  }\r\n\r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup()\r\n{\r\n  \r\n  \/\/ Serial Begin\r\n  Serial.begin(115200);\r\n  Serial.println(&quot;Starting BLE work!&quot;);\r\n\r\n  \/\/ Bluetooth Serial\r\n  SerialBT.begin(&quot;Don Luc Electronics&quot;);\r\n  Serial.println(&quot;Bluetooth Started! Ready to pair...&quot;);\r\n\r\n  \/\/ Give display time to power on\r\n  delay(100);\r\n  \r\n  \/\/ Wire - Inialize I2C Hardware\r\n  Wire.begin();\r\n\r\n  \/\/ Give display time to power on\r\n  delay(100);\r\n\r\n  \/\/ SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude \r\n  myBME280.begin();\r\n\r\n  \/\/ Initialize digital pin LED_BUILTIN as an output\r\n  pinMode(LED_BUILTIN, OUTPUT);\r\n  \/\/ Turn the LED on HIGH\r\n  digitalWrite(LED_BUILTIN, HIGH);\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Technology Experience<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Machine Learning<\/li>\n<li>RTOS<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<\/ul>\n<p><strong>Instructor, E-Mentor, STEAM, and Arts-Based Training<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>IoT<\/li>\n<li>PIC Microcontrollers<\/li>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2023<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/@thesass2063<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #RadioFrequency #Bluetooth #SparkFun #BME280 #Arduino #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; SparkFun Atmospheric Sensor Breakout &#8211; BME280 The SparkFun BME280 Atmospheric Sensor Breakout is the easy way to measure barometric pressure, humidity, and temperature readings all without taking up too much space. Basically, anything you need to know &#8230; <a title=\"Project #26 &#8211; Radio Frequency &#8211; Bluetooth SparkFun BME280 &#8211; Mk21\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=3541\" aria-label=\"Read more about Project #26 &#8211; Radio Frequency &#8211; Bluetooth SparkFun BME280 &#8211; Mk21\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,49,38,80,59,5,287,82,10,43],"tags":[6,92,242,292,102,4,19,83,85,24,9,84,27,264,109,293,33,34],"class_list":["post-3541","post","type-post","status-publish","format-standard","hentry","category-radio-frequency","category-consultant","category-digitalelectronics","category-esp32","category-fritzing","category-microcontrollers","category-program","category-program-esp32","category-projects","category-sparkfun","tag-arduino","tag-battery","tag-bluetooth","tag-bluetooth-sparkfun-bme280","tag-components","tag-consultant","tag-electronics","tag-esp32","tag-fritzing","tag-microcontroller","tag-programming","tag-programming-esp32","tag-projects-2","tag-radio-frequency","tag-sparkfun","tag-sparkfun-bme280","tag-technology","tag-video-blog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3541"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3541\/revisions"}],"predecessor-version":[{"id":4207,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3541\/revisions\/4207"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}