Eduardo OliverVictor 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 hours250
BBM: Bridge Baby Monitor for Predictive Maintainence

Things used in this project

Story

Read more

Schematics

Main hardware

Schematic cntpope8jv

Flowchart

Flowchart 6reuoywx7r

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

Eduardo Oliver

Eduardo Oliver

5 projects • 3 followers
Engineer, Scientist, Maker.
Victor Altamirano

Victor Altamirano

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

Comments