Example Android Mi Band 2

Android example showing Bluetooth communication with Xiaomi Mi Band 2. Demonstrates device pairing, data syncing, activity tracking, heart rate monitoring, and notification handling. Provides reference code for wearable device integration.

Internet of Things (IoT)JavaMIT

Abstract

Example Android Mi Band 2 is an open-source Internet of Things (IoT) project. Android example showing Bluetooth communication with Xiaomi Mi Band 2. Demonstrates device pairing, data syncing, activity tracking, heart rate monitoring, and notification handling. Provides reference code for wearable device integration. UUID of Service: 0000fee0-0000-1000-8000-00805f9b34fb. It is built using Java, Android. The complete source code is publicly available on GitHub under the MIT License, making it a useful reference for students building an Internet of Things (IoT) mini project or final-year project.

1. Introduction

UUID of Service: 0000fee0-0000-1000-8000-00805f9b34fb

Battery Info Characteristic: 00000006-0000-3512-2118-0009af100700

UUID of Service: 00001802-0000-1000-8000-00805f9b34fb

2. Objective

Android example showing Bluetooth communication with Xiaomi Mi Band 2. Demonstrates device pairing, data syncing, activity tracking, heart rate monitoring, and notification handling. Provides reference code for wearable device integration.

This project demonstrates how Java, Android can be applied to a real-world Internet of Things (IoT) problem.

4. Technology Stack

JavaAndroid

5. System Requirements

General requirements for this technology stack — check the README for exact versions.

  • JDK 11 or later
  • Maven / Gradle
  • IntelliJ IDEA, Eclipse or Android Studio
  • Git (to clone the repository)

6. Installation & Setup

git clone https://github.com/aashari/example-android-mi-band-2.git
cd example-android-mi-band-2

Full setup instructions are in the project README.

7. Future Enhancements

Suggested extensions you can add to make this your own project.

  • Add a mobile dashboard using Blynk or Firebase
  • Store readings in a cloud database for history charts
  • Add alerts via SMS / Telegram when thresholds are crossed

8. Viva / Review Questions

Common questions examiners ask for projects in this domain.

  1. Which microcontroller / board and sensors are used and why?
  2. How does the device send data (Wi-Fi, MQTT, HTTP, Bluetooth)?
  3. Where is the sensor data stored and visualised?
  4. How is power consumption managed?
  5. How would you secure the device and its communication?

9. Source Code & License

This project is developed by aashari and published on GitHub under the MIT License. Please follow the license terms and credit the original author when you use or modify this code.

Want to build this as your internship project?

Work on an Internet of Things (IoT) project like this with mentor guidance, weekly reviews and an internship certificate from Training Trains, Erode — online or offline.

Apply for Internet of Things (IoT) Internship