Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Battery-Powered Arduino UNO with BNO085 IMU and Bluetooth HC-06 for Orientation Tracking

View and Edit Project In Cirkit DesignerImage of Battery-Powered Arduino UNO with BNO085 IMU and Bluetooth HC-06 for Orientation Tracking

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO, an Adafruit BNO085 9-DOF Orientation IMU Fusion sensor, a Bluetooth HC-06 module, and a 7.4V power source. The circuit is designed to read orientation data from the IMU sensor and transmit it via Bluetooth.

Component List

Arduino UNO

Adafruit BNO085 9-DOF Orientation IMU Fusion

Bluetooth HC-06

7.4V Power Source

Wiring Details

Arduino UNO

Adafruit BNO085 9-DOF Orientation IMU Fusion

Bluetooth HC-06

7.4V Power Source

Code Documentation

Arduino UNO Code

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO08x.h>

Adafruit_BNO08x bno = Adafruit_BNO08x();

void setup() {
  Serial.begin(115200);
  while (!Serial) delay(10); // Wait for Serial Monitor to open

  if (!bno.begin_I2C()) {
    Serial.println("Failed to find BNO085 chip");
    while (1);
  }
  Serial.println("BNO085 Found!");

  bno.enableReport(SH2_TARE_BASIS_ROTATION_VECTOR, 1000); // 1 Hz
}

void loop() {
  sh2_SensorValue_t sensorValue;
  if (bno.getSensorEvent(&sensorValue)) {
    float yaw = sensorValue.un.rotationVector.real; // Assuming yaw is stored in the 'real' field
    Serial.print("Yaw: ");
    Serial.println(yaw);
  }
  delay(1000); // 1 second delay between readings
}

Adafruit BNO085 9-DOF Orientation IMU Fusion Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code running on the microcontrollers.