EdOliverVictor Altamirano
Published © MIT

BBM: Bridge Baby Monitor for Predictive Maintainence

Ultra96 FPGA-based platform to predict structural failure to cut costs of maintenance and also prevent disasters.

AdvancedFull instructions provided10 hours1,535
BBM: Bridge Baby Monitor for Predictive Maintainence

Things used in this project

Story

Read more

Schematics

Main hardware

Flowchart

Code

Arduino 101 code

C/C++
#include "CurieIMU.h"

float ax, ay, az;         // Acceleration Values
float cx,cy,cz;           // Auto-Calibration

void setup() {
  Serial.begin(115200);   // initialize Serial communication
  while (!Serial);        // wait for the serial port to open

  // initialize device
  Serial.println("Initializing IMU device...");
  CurieIMU.begin();

  // Set the accelerometer range to 2G
  CurieIMU.setAccelerometerRange(2);
  delay(30);                // Delay While the accelerometer start correctly (DONT TOUCH!)
  CurieIMU.readAccelerometerScaled(cx, cy, cz); //We obtain the Auto-Calibration values

}

void loop() {
  CurieIMU.readAccelerometerScaled(ax, ay, az);
  Serial.println("x:"+ String(ax-cx));
  // This delay is 100 data per second 10 miliseconds / 3, 3333 micro seconds per axis data.
  delayMicroseconds(3333);  
  Serial.println("y:"+ String(ay-cy));
  delayMicroseconds(3333);
  Serial.println("z:"+ String(az-cz));
  delayMicroseconds(3333);
}

git repository code

Every single code is in this repo.

Credits

EdOliver

EdOliver

38 projects • 74 followers
Engineer, Scientist, Maker. Entrepreneur and Futurist.
Victor Altamirano

Victor Altamirano

25 projects • 81 followers
I am a Biomedical engineer who likes to develop hardware and software solutions.

Comments