Mario J Kevin
Created September 4, 2024

Real-Time Indoor Navigation System

Real-time indoor navigation for the visually impaired using Bluetooth beacons and smartphone integration.

19
Real-Time Indoor Navigation System

Things used in this project

Hardware components

Blues Swan
Blues Swan
×1
Notecarrier AL
×1
Notecard Cellular NBGL
×1
Notecard WiFi v1
×1
nRF52840 Multi-Protocol SoC
Nordic Semiconductor nRF52840 Multi-Protocol SoC
×1
Seeed Studio XIAO ESP32S3 Sense
Seeed Studio XIAO ESP32S3 Sense
×1

Story

Read more

Code

code 2

C/C++
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TCS34725.h>

Adafruit_TCS34725 colorSensor;

void setup() {
  Serial.begin(115200);
  if (!colorSensor.begin()) {
    Serial.println("Couldn't find the color sensor");
    while (1);
  }
}

void loop() {
  uint16_t r, g, b, c;
  colorSensor.getRawData(&r, &g, &b, &c);
  Serial.print("R: "); Serial.print(r);
  Serial.print(" G: "); Serial.print(g);
  Serial.print(" B: "); Serial.print(b);
  Serial.print(" C: "); Serial.println(c);
  delay(1000);
}

code

C/C++
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>

// UUID for the Bluetooth Beacon
const char* beaconUUID = "YOUR_BEACON_UUID";

void setup() {
  Serial.begin(115200);
  BLEDevice::init("");
  BLEScan* pBLEScan = BLEDevice::getScan();
  pBLEScan->setActiveScan(true);
  pBLEScan->start(5, false);
}

void loop() {
  BLEScanResults scanResults = BLEDevice::getScan()->getResults();
  for (int i = 0; i < scanResults.getCount(); i++) {
    BLEAdvertisedDevice advertisedDevice = scanResults.getDevice(i);
    if (advertisedDevice.haveServiceUUID() && advertisedDevice.isAdvertisingService(BLEUUID(beaconUUID))) {
      Serial.println("Beacon detected: " + advertisedDevice.toString());
    }
  }
  delay(1000);
}

code 3

C/C++
#include <Notecard.h>

Notecard notecard;

void setup() {
  Serial.begin(115200);
  notecard.begin();
}

void loop() {
  if (notecard.available()) {
    String data = notecard.read();
    Serial.println("Received data: " + data);
  }
  delay(1000);
}

Credits

Mario J Kevin

Mario J Kevin

2 projects • 1 follower

Comments