Skip to content

4.3.4. Bluetooth Wireless Weather Telemetry Node

| Description In Project 124, learners will build an expert wireless and automation system titled 'Bluetooth Wireless Weather Telemetry Node'. This manual details the synthesis of HC-05 Bluetooth + BME280 + IIC 1602 LCD + RGB LED into an industrial IoT automation solution.|------------------|----------------------------------------------------------------| | Use case |This project connects to real-world industrial and IoT applications such as: Project 124 provides master-level competency in wireless communication, industrial IoT architecture, and automated system integration.|

Components (Things You will need)

Arduino Uno Arduino USB Cable Bread Board Jumper Wires BME Sensor LCD Display Relay Module Temperature Sensor Bluetooth Module Real Time Clock RFID Reader

Building the circuit

Things Needed:

  • Arduino Uno Core Board = 1
  • HC-05 Bluetooth = 1
  • BME280 = 1
  • IIC 1602 LCD = 1
  • USB Cable & Jumper Wires = 1
  • Bread Board
  • Relay Module
  • Temperature Sensor
  • Real Time Clock
  • RFID Reader

Mounting the component on the breadboard and wiring the circuit

Step 1: Inventory all modules listed in the Required Components table.

Step 2: Connect line [Wireless / RTC / RFID Bus] to [UART / SPI / I2C Pins] — (Primary telemetry and security bus.).

Step 3: Connect line [Control & Actuator Lines] to [Digital / PWM Pins] — (Relay, motor, and display driver bus.).

Step 4: Connect line [Power Rails] to [5V / 3.3V / GND] — (System power and ground rails.).

Step 5: Double-check all VCC, 5V, 3.3V, and GND polarities to prevent electrical shorts.

Step 6: Connect USB programming cable only after verifying all signal path wiring.

Components on breadboard

Make sure to connect the Arduino USB cable to the Arduino board.

PROGRAMMING

Step 1: Open your Arduino IDE. See how to set up here: Getting Started.

Step 2: Write the complete program implementing the system logic with appropriate pin definitions, setup configuration, and the main control loop.

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>

#define SEALEVELPRESSURE_HPA (1013.25)

// HC-05 Bluetooth
SoftwareSerial BT(2, 3);   // RX, TX

// LCD
LiquidCrystal_I2C lcd(0x27, 16, 2);

// BME280
Adafruit_BME280 bme;

void setup() {
  Serial.begin(9600);
  BT.begin(9600);

  lcd.init();
  lcd.backlight();

  lcd.setCursor(0,0);
  lcd.print("Weather Node");

  if (!bme.begin(0x76)) {      // Change to 0x77 if needed
    lcd.clear();
    lcd.print("BME280 Error");
    while (1);
  }

  delay(2000);
  lcd.clear();
}

void loop() {

  float temp = bme.readTemperature();
  float hum = bme.readHumidity();
  float pres = bme.readPressure() / 100.0F;

  // LCD Display
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("T:");
  lcd.print(temp,1);
  lcd.print((char)223);
  lcd.print("C");

  lcd.setCursor(9,0);
  lcd.print("H:");
  lcd.print(hum,0);
  lcd.print("%");

  lcd.setCursor(0,1);
  lcd.print("P:");
  lcd.print(pres,1);
  lcd.print("hPa");

  // Bluetooth Output
  BT.println("====== WEATHER DATA ======");
  BT.print("Temperature: ");
  BT.print(temp);
  BT.println(" C");

  BT.print("Humidity: ");
  BT.print(hum);
  BT.println(" %");

  BT.print("Pressure: ");
  BT.print(pres);
  BT.println(" hPa");

  BT.println();

  // Serial Monitor
  Serial.print("Temp: ");
  Serial.print(temp);
  Serial.print(" C  ");

  Serial.print("Humidity: ");
  Serial.print(hum);
  Serial.print("%  ");

  Serial.print("Pressure: ");
  Serial.print(pres);
  Serial.println(" hPa");

  delay(2000);
}

Step 7: Save your code. See the Getting Started section

Step 8: Select the arduino board and port See the Getting Started section:Selecting Arduino Board Type and Uploading your code.

Step 9: Upload your code. See the Getting Started section:Selecting Arduino Board Type and Uploading your code

CONCLUSION

The system processes telemetry signals and security credentials in real time, driving relays, motors, and displays reliably.