Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2.94 KB

README.md

File metadata and controls

40 lines (26 loc) · 2.94 KB

Smartlight_UWB

Smartlight_UWB is a system which is using Ultra Wideband technology ranging to perform indoor localization and turn on the light when I enter the room and turn it off when I leave. Ultra Wideband is a cutting-edge wireless technology that offers exceptional precision for locating and communicating with devices. Unlike traditional radio technologies like Wi-Fi and Bluetooth, UWB operates at extremely high frequencies and utilizes short, precise pulses to transmit data. This enables UWB to achieve centimeter-level accuracy in positioning and precise timing synchronization.

UWB's unique capabilities hold immense potential for various applications, including:

  • Precision indoor positioning
  • Secure keyless entry
  • Automotive sensing and control
  • Precision time synchronization

Hardware used in above project is:

In this project I used SDK developed and maintained by Qorvo manufacture, what enables in easier development of application. Additionaly with tools from Segger like for e.g. j-Flash, and apple Xcode. For iOS application I decided to use Qorvo example project which I extended to use MQTT client using CocoaMQTT library.

Note

for easier development I added a docker enviroment which automates building binary:

  • build: docker build -t uberi/qorvo-nrf52833-board .
  • run: docker run -it uberi/qorvo-nrf52833-board
  • make build (to create binary file)
  • make clean (to clean enviroment)

How it works?

At the beginning iOS device establish a two-way data link to the accessory. The data link must be capable of facilitating the exchange of configuration data as defined in this specification, as well as handling any additional application-specific communications — e.g., starting and stopping interaction, error recovery and state synchronization.

Next is to establish connection with MQTT broker on raspberryPi and iOS device which for project purpouses I used localy manager broker by MQTTX. DWM30001CDK is sending the information about distance throught UWB to iOS device wchih nextly is passing those data to raspberryPi throught MQTT. I used above solution because on rPi It has a lot of GIPO pinout so I can control easily things like light, keyless entry etc.

Utilizing an UWB anchor, the application intelligently detects my presence in the room, triggering the desk lamp to begin illuminating. Within a secure distance of 1.2 meters from the anchor. Till 1.8 meters, the lamp maintains its full brightness. When distance is larger than 1.8m lamp will stop working.