{"id":3574,"date":"2023-09-02T11:37:47","date_gmt":"2023-09-02T18:37:47","guid":{"rendered":"https:\/\/www.donluc.com\/?p=3574"},"modified":"2023-09-02T11:37:47","modified_gmt":"2023-09-02T18:37:47","slug":"project-26-radio-frequency-bluetooth-serial-terminal-for-windows-10-mk25","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=3574","title":{"rendered":"Project #26 &#8211; Radio Frequency &#8211; Bluetooth Serial Terminal for Windows 10 &#8211; Mk25"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-3574-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #RadioFrequency #Bluetooth #GPS #SparkFun #BME280 #CCS811 #IMU #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\/09\/DL2307Mk06a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06a.png\" alt=\"Bluetooth Serial Terminal for Windows 10\" width=\"720\" height=\"386\" class=\"alignnone size-full wp-image-3576\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06a-300x161.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\/09\/DL2307Mk06b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06b.png\" alt=\"Bluetooth Serial Terminal for Windows 10\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3577\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06b-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\/09\/DL2307Mk06c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06c.png\" alt=\"Bluetooth Serial Terminal for Windows 10\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3578\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2023\/09\/DL2307Mk06c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Bluetooth Serial Terminal for Windows 10<\/strong><\/p>\n<p>You can use this App to communicate with Serial Bluetooth devices like the RN-42, ESP32, that are used for arduino projects and other custom projects. Make sure to pair the device first in PC Settings.<\/p>\n<ul>\n<li>Use the rfcomm protocol to communicate with serial bluetooth devices.<\/li>\n<li>You can send and recieve data in either hex or string format.<\/li>\n<li>UI more responsive while updating terminal.<\/li>\n<li>Bytes that do not have proper ascii mapping are converted to space characters.<\/li>\n<li>Transmit data is displayed on terminal if it is successfully sent.<\/li>\n<li>Communicate with Serial Bluetooth devices.<\/li>\n<\/ul>\n<p><strong>DL2307Mk06<\/strong><\/p>\n<p>1 x SparkFun Thing Plus &#8211; ESP32 WROOM<br \/>\n1 x Bluetooth Serial Terminal for Windows 10<br \/>\n1 x SparkFun BME280 &#8211; Temperature, Humidity, Barometric Pressure, and Altitude<br \/>\n1 x SparkFun Air Quality Breakout &#8211; CCS811<br \/>\n1 x Pololu AltIMU-10 v5<br \/>\n1 x GPS Receiver &#8211; GP-20U7<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 \/>\nGPR &#8211; Digital 16<br \/>\nGPT &#8211; Digital 17<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>DL2307Mk06ps.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 - Bluetooth Serial Terminal for Windows 10 - Mk25\r\n26-25\r\nDL2307Mk06p.ino\r\n1 x SparkFun Thing Plus - ESP32 WROOM\r\n1 x Bluetooth Serial Terminal for Windows 10\r\n1 x SparkFun BME280 - Temperature, Humidity, Barometric Pressure, and Altitude\r\n1 x SparkFun Air Quality Breakout - CCS811\r\n1 x Pololu AltIMU-10 v5\r\n1 x GPS Receiver - GP-20U7\r\n1 x Lithium Ion Battery - 85mAh\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\/\/ SparkFun CCS811 - eCO2 &amp; tVOC\r\n#include &lt;SparkFunCCS811.h&gt;\r\n\/\/ Includes and variables for IMU integration\r\n\/\/ STMicroelectronics LSM6DS33 gyroscope and accelerometer\r\n#include &lt;LSM6.h&gt;\r\n\/\/ STMicroelectronics LIS3MDL magnetometer\r\n#include &lt;LIS3MDL.h&gt;\r\n\/\/ STMicroelectronics LPS25H digital barometer\r\n#include &lt;LPS.h&gt;\r\n\/\/ GPS Receiver\r\n#include &lt;TinyGPS++.h&gt;\r\n\/\/ ESP32 Hardware Serial\r\n#include &lt;HardwareSerial.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\/\/ SparkFun CCS811 - eCO2 &amp; tVOC\r\n\/\/ Default I2C Address\r\n#define CCS811_ADDR 0x5B \r\nCCS811 myCCS811(CCS811_ADDR);\r\nfloat CCS811CO2 = 0;\r\nfloat CCS811TVOC = 0;\r\nString FullStringA = &quot;&quot;;\r\n\r\n\/\/ 9DoF IMU\r\n\/\/ STMicroelectronics LSM6DS33 gyroscope and accelerometer\r\nLSM6 imu;\r\n\/\/ Accelerometer and Gyroscopes\r\n\/\/ Accelerometer\r\nint imuAX;\r\nint imuAY;\r\nint imuAZ;\r\nString FullStringB = &quot;&quot;;\r\n\/\/ Gyroscopes \r\nint imuGX;\r\nint imuGY;\r\nint imuGZ;\r\nString FullStringC = &quot;&quot;;\r\n\/\/ STMicroelectronics LIS3MDL magnetometer\r\nLIS3MDL mag;\r\n\/\/ Magnetometer\r\nint magX;\r\nint magY;\r\nint magZ;\r\nString FullStringD = &quot;&quot;;\r\n\/\/ STMicroelectronics LPS25H digital barometer\r\nLPS ps;\r\n\/\/ Digital Barometer\r\nfloat pressure;\r\nfloat altitude;\r\nfloat temperature;\r\nString FullStringF = &quot;&quot;;\r\n\r\n\/\/ ESP32 HardwareSerial\r\nHardwareSerial tGPS(2);\r\n\r\n\/\/ GPS Receiver\r\n#define gpsRXPIN 16\r\n\/\/ This one is unused and doesnt have a conection\r\n#define gpsTXPIN 17\r\n\/\/ The TinyGPS++ object\r\nTinyGPSPlus gps;\r\n\/\/ Latitude\r\nfloat TargetLat;\r\n\/\/ Longitude\r\nfloat TargetLon;\r\nString FullStringG = &quot;&quot;;\r\n\/\/ GPS Date, Time, Speed, Altitude\r\n\/\/ GPS Date\r\nString TargetDat;\r\n\/\/ GPS Time\r\nString TargetTim;\r\n\/\/ GPS Speeds M\/S\r\nString TargetSMS;\r\n\/\/ GPS Speeds Km\/h\r\nString TargetSKH;\r\n\/\/ GPS Altitude Meters\r\nString TargetALT;\r\n\/\/ GPS Status\r\nString GPSSt = &quot;&quot;;\r\nString FullStringH = &quot;&quot;;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;26-25&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  \/\/ SparkFun CCS811 - eCO2 &amp; tVOC\r\n  isCCS811();\r\n\r\n  \/\/ Accelerometer and Gyroscopes\r\n  isIMU();\r\n\r\n  \/\/ Magnetometer\r\n  isMag();\r\n\r\n  \/\/ Barometer\r\n  isBarometer();\r\n\r\n  \/\/ isGPS\r\n  isGPS();\r\n\r\n  \/\/ Delay 1 sec\r\n  delay(1000);\r\n\r\n}\r\n<\/pre>\n<p><strong>getAccelGyro.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Accelerometer and Gyroscopes\r\n\/\/ Setup IMU\r\nvoid setupIMU() {\r\n\r\n  \/\/ Setup IMU\r\n  imu.init();\r\n  \/\/ Default\r\n  imu.enableDefault();\r\n  \r\n}\r\n\/\/ Accelerometer and Gyroscopes\r\nvoid isIMU() {\r\n\r\n  \/\/ Accelerometer and Gyroscopes\r\n  imu.read();\r\n  \/\/ Accelerometer x, y, z\r\n  imuAX = imu.a.x;\r\n  imuAY = imu.a.y;\r\n  imuAZ = imu.a.z;\r\n  \/\/ Gyroscopes x, y, z\r\n  imuGX = imu.g.x;\r\n  imuGY = imu.g.y;\r\n  imuGZ = imu.g.z;\r\n\r\n  \/\/ FullString B\r\n  FullStringB = &quot;Accelerometer X = &quot; + String(imuAX) + &quot; Accelerometer Y = &quot;\r\n  + String(imuAY) + &quot; Accelerometer Z = &quot; + String(imuAZ) \r\n  + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullStringB Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullStringB.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullStringB.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullStringB.c_str()[i]);\r\n    \r\n  }\r\n\r\n  \/\/ FullString C\r\n  FullStringC = &quot;Gyroscopes X = &quot; + String(imuGX) + &quot; Gyroscopes Y = &quot;\r\n  + String(imuGY) + &quot; Gyroscopes Z = &quot; + String(imuGZ) \r\n  + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullStringC Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullStringC.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullStringC.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullStringC.c_str()[i]);\r\n    \r\n  }\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>getBarometer.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ STMicroelectronics LPS25H digital barometer\r\n\/\/ Setup Barometer\r\nvoid isSetupBarometer(){\r\n\r\n  \/\/ Setup Barometer\r\n  ps.init();\r\n  \/\/ Default\r\n  ps.enableDefault();\r\n  \r\n}\r\n\/\/ Barometer\r\nvoid isBarometer(){\r\n\r\n  \/\/ Barometer\r\n  pressure = ps.readPressureMillibars();\r\n  \/\/ Altitude Meters\r\n  altitude = ps.pressureToAltitudeMeters(pressure);\r\n  \/\/ Temperature Celsius\r\n  temperature = ps.readTemperatureC();\r\n\r\n  \/\/ FullStringF\r\n  FullStringF = &quot;Barometer = &quot; + String(pressure,2) + &quot; Altitude Meters = &quot;\r\n  + String(altitude,2) + &quot; Temperature Celsius = &quot;\r\n  + String(temperature,2) + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullStringF Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullStringF.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullStringF.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullStringF.c_str()[i]);\r\n    \r\n  }\r\n  \r\n}\r\n<\/pre>\n<p><strong>getCCS811.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ CCS811 - eCO2 &amp; tVOC\r\n\/\/ isCCS811 - eCO2 &amp; tVOC\r\nvoid isCCS811(){\r\n\r\n  \/\/ This sends the temperature &amp; humidity data to the CCS811\r\n  myCCS811.setEnvironmentalData(BMEhumid, BMEtempC);\r\n\r\n  \/\/ Calling this function updates the global tVOC and eCO2 variables\r\n  myCCS811.readAlgorithmResults();\r\n\r\n  \/\/ eCO2 Concentration\r\n  CCS811CO2 = myCCS811.getCO2();\r\n  \r\n  \/\/ tVOC Concentration\r\n  CCS811TVOC = myCCS811.getTVOC();\r\n\r\n  \/\/ FullStringA\r\n  FullStringA = &quot;TVOCs = &quot; + String(CCS811TVOC,2) + &quot; eCO2 = &quot;\r\n  + String(CCS811CO2,2) + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullStringA Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullStringA.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullStringA.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullStringA.c_str()[i]);\r\n    \r\n  }\r\n\r\n}\r\n<\/pre>\n<p><strong>getGPS.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ GPS Receiver\r\n\/\/ Setup GPS\r\nvoid setupGPS() {\r\n\r\n  \/\/ Setup GPS\r\n  tGPS.begin(  9600 , SERIAL_8N1 , gpsRXPIN , gpsTXPIN );\r\n  \r\n}\r\n\/\/ isGPS\r\nvoid isGPS(){\r\n\r\n  \/\/ Receives NEMA data from GPS receiver\r\n  \/\/ This sketch displays information every time a new sentence is correctly encoded\r\n  while ( tGPS.available() &gt; 0)\r\n    \r\n    if (gps.encode( tGPS.read() ))\r\n    {\r\n     \r\n       \/\/ GPS Vector Pointer Target\r\n       displayInfo();\r\n       \/\/ GPS Date, Time, Speed, Altitude\r\n       displayDTS();\r\n       \r\n    }\r\n\r\n  if (millis() &gt; 5000 &amp;&amp; gps.charsProcessed() &lt; 10)\r\n  {\r\n\r\n     while(true);\r\n    \r\n  }\r\n\r\n}\r\n\/\/ GPS Vector Pointer Target\r\nvoid displayInfo(){\r\n\r\n  \/\/ Location\r\n  if (gps.location.isValid())\r\n  {\r\n    \r\n     \/\/ Latitude\r\n     TargetLat = gps.location.lat();\r\n     \/\/ Longitude\r\n     TargetLon = gps.location.lng();\r\n     \/\/ GPS Status 2\r\n     GPSSt = &quot;Yes&quot;;\r\n\r\n     \/\/ FullStringG\r\n     FullStringG = &quot;Latitude = &quot; + String(TargetLat) + &quot; Longitude = &quot;\r\n     + String(TargetLon) + &quot;\\r\\n&quot;;\r\n\r\n     \/\/ FullStringG Bluetooth Serial + Serial\r\n     for(int i = 0; i &lt; FullStringG.length(); i++)\r\n     {\r\n\r\n       \/\/ Bluetooth Serial\r\n       SerialBT.write(FullStringG.c_str()[i]);\r\n       \/\/ Serial\r\n       Serial.write(FullStringG.c_str()[i]);\r\n    \r\n     }\r\n    \r\n  }\r\n  else\r\n  {\r\n\r\n     \/\/ GPS Status 0\r\n     GPSSt = &quot;No&quot;;\r\n    \r\n  }\r\n\r\n}\r\n\/\/ GPS Date, Time, Speed, Altitude\r\nvoid displayDTS(){\r\n\r\n  \/\/ Date\r\n  TargetDat = &quot;&quot;; \r\n  if (gps.date.isValid())\r\n  {\r\n    \r\n     \/\/ Date\r\n     \/\/ Year\r\n     TargetDat += String(gps.date.year(), DEC);\r\n     TargetDat += &quot;\/&quot;;\r\n     \/\/ Month\r\n     TargetDat += String(gps.date.month(), DEC);\r\n     TargetDat += &quot;\/&quot;;\r\n     \/\/ Day\r\n     TargetDat += String(gps.date.day(), DEC);\r\n\r\n     \/\/ FullStringH\r\n     FullStringH = &quot;Date = &quot; + String(TargetDat) + &quot;\\r\\n&quot;;\r\n\r\n     \/\/ FullStringH Bluetooth Serial + Serial\r\n     for(int i = 0; i &lt; FullStringH.length(); i++)\r\n     {\r\n\r\n       \/\/ Bluetooth Serial\r\n       SerialBT.write(FullStringH.c_str()[i]);\r\n       \/\/ Serial\r\n       Serial.write(FullStringH.c_str()[i]);\r\n    \r\n     }\r\n    \r\n  }\r\n\r\n  \/\/ Time\r\n  TargetTim = &quot;&quot;;\r\n  if (gps.time.isValid())\r\n  {\r\n    \r\n     \/\/ Time\r\n     \/\/ Hour\r\n     TargetTim += String(gps.time.hour(), DEC);\r\n     TargetTim += &quot;:&quot;;\r\n     \/\/ Minute\r\n     TargetTim += String(gps.time.minute(), DEC);\r\n     TargetTim += &quot;:&quot;;\r\n     \/\/ Secound\r\n     TargetTim += String(gps.time.second(), DEC);\r\n\r\n     \/\/ FullStringH\r\n     FullStringH = &quot;Time = &quot; + String(TargetTim) + &quot;\\r\\n&quot;;\r\n\r\n     \/\/ FullStringH Bluetooth Serial + Serial\r\n     for(int i = 0; i &lt; FullStringH.length(); i++)\r\n     {\r\n\r\n       \/\/ Bluetooth Serial\r\n       SerialBT.write(FullStringH.c_str()[i]);\r\n       \/\/ Serial\r\n       Serial.write(FullStringH.c_str()[i]);\r\n    \r\n     }\r\n    \r\n  }\r\n\r\n  \/\/ Speed\r\n  TargetSMS = &quot;&quot;;\r\n  TargetSKH = &quot;&quot;;\r\n  if (gps.speed.isValid())\r\n  {\r\n    \r\n     \/\/ Speed\r\n     \/\/ M\/S\r\n     int x = gps.speed.mps();\r\n     TargetSMS = String( x, DEC);\r\n     \/\/ Km\/h\r\n     int y = gps.speed.kmph();\r\n     TargetSKH = String( y, DEC);\r\n\r\n     \/\/ FullStringH\r\n     FullStringH = &quot;Speed = &quot; + String(TargetSMS) + &quot;\\r\\n&quot;;\r\n\r\n     \/\/ FullStringH Bluetooth Serial + Serial\r\n     for(int i = 0; i &lt; FullStringH.length(); i++)\r\n     {\r\n\r\n       \/\/ Bluetooth Serial\r\n       SerialBT.write(FullStringH.c_str()[i]);\r\n       \/\/ Serial\r\n       Serial.write(FullStringH.c_str()[i]);\r\n    \r\n     }\r\n\r\n  }\r\n\r\n  \/\/ Altitude\r\n  TargetALT = &quot;&quot;;\r\n  if (gps.altitude.isValid())\r\n  {\r\n    \r\n     \/\/ Altitude\r\n     \/\/ Meters\r\n     int z = gps.altitude.meters();\r\n     TargetALT = String( z, DEC);\r\n\r\n     \/\/ FullStringH\r\n     FullStringH = &quot;Altitude = &quot; + String(TargetALT) + &quot;\\r\\n&quot;;\r\n\r\n     \/\/ FullStringH Bluetooth Serial + Serial\r\n     for(int i = 0; i &lt; FullStringH.length(); i++)\r\n     {\r\n\r\n       \/\/ Bluetooth Serial\r\n       SerialBT.write(FullStringH.c_str()[i]);\r\n       \/\/ Serial\r\n       Serial.write(FullStringH.c_str()[i]);\r\n    \r\n     }\r\n\r\n  }\r\n \r\n}\r\n<\/pre>\n<p><strong>getMagnetometer.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Magnetometer\r\n\/\/ Setup Magnetometer\r\nvoid setupMag() {\r\n\r\n  \/\/ Setup Magnetometer\r\n  mag.init();\r\n  \/\/ Default\r\n  mag.enableDefault();\r\n  \r\n}\r\n\/\/ Magnetometer\r\nvoid isMag() {\r\n\r\n  \/\/ Magnetometer\r\n  mag.read();\r\n  \/\/ Magnetometer x, y, z\r\n  magX = mag.m.x;\r\n  magY = mag.m.y;\r\n  magZ = mag.m.z;\r\n\r\n  \/\/ FullString D\r\n  FullStringD = &quot;Magnetometer X = &quot; + String(magX) + &quot; Magnetometer Y = &quot;\r\n  + String(magY) + &quot; Magnetometer Z = &quot; + String(magZ) \r\n  + &quot;\\r\\n&quot;;\r\n\r\n  \/\/ FullStringD Bluetooth Serial + Serial\r\n  for(int i = 0; i &lt; FullStringD.length(); i++)\r\n  {\r\n\r\n    \/\/ Bluetooth Serial\r\n    SerialBT.write(FullStringD.c_str()[i]);\r\n    \/\/ Serial\r\n    Serial.write(FullStringD.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  \/\/ CCS811 - eCO2 &amp; tVOC\r\n  myCCS811.begin();\r\n\r\n  \/\/ Setup IMU\r\n  setupIMU();\r\n\r\n  \/\/ Setup Magnetometer\r\n  setupMag();\r\n\r\n  \/\/ Setup Barometer\r\n  isSetupBarometer();\r\n\r\n  \/\/ GPS Receiver\r\n  \/\/ Setup GPS\r\n  setupGPS();\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 #GPS #SparkFun #BME280 #CCS811 #IMU #Arduino #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Bluetooth Serial Terminal for Windows 10 You can use this App to communicate with Serial Bluetooth devices like the RN-42, ESP32, that are used for arduino projects and other custom projects. Make sure to &#8230; <a title=\"Project #26 &#8211; Radio Frequency &#8211; Bluetooth Serial Terminal for Windows 10 &#8211; Mk25\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=3574\" aria-label=\"Read more about Project #26 &#8211; Radio Frequency &#8211; Bluetooth Serial Terminal for Windows 10 &#8211; Mk25\">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,50,49,38,80,59,5,46,287,10,43],"tags":[251,6,242,298,102,4,19,83,85,252,246,24,103,9,84,27,109,33,34,108],"class_list":["post-3574","post","type-post","status-publish","format-standard","hentry","category-radio-frequency","category-arduino","category-consultant","category-digitalelectronics","category-esp32","category-fritzing","category-microcontrollers","category-pololu","category-program","category-projects","category-sparkfun","tag-accelerometer","tag-arduino","tag-bluetooth","tag-bluetooth-serial-terminal-for-windows-10","tag-components","tag-consultant","tag-electronics","tag-esp32","tag-fritzing","tag-gyroscope","tag-magnetometer","tag-microcontroller","tag-pololu","tag-programming","tag-programming-esp32","tag-projects-2","tag-sparkfun","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3574","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=3574"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3574\/revisions"}],"predecessor-version":[{"id":4781,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3574\/revisions\/4781"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}