/ADXL357

C++ ADXL357 datalogger used to analyze machine vibrations

Primary LanguageC++

ADXL357 Logger and Analyzer

C++ ADXL357 datalogger used to analyze machine vibrations

ADXL357 Logger (Raspberry Pi)

Usage

Compile using make in C++ directory.

First run make in C++ directory:

make

Then run with:

./bin/ADXL357 MQTT_BROKER_IP (optional, defaults to localhost)

Dependecies

  1. Paho mqtt c++
  2. wiring pi

(tested on a Raspberry Pi 3b+)

Analyzing the data

Dashboard

The dashboard can be started by running dashboard.py (You may have to install Dash). This file can be found in the Python directory.

image

Log MQTT messages

To log the messages published by the C++ program, you can use the mqtt logger which is found in Python/mqtt_logger directory. See Python/mqtt_logger/README for usage.

Example usage:

python .\mqtt_data_logger.py -b localhost -t ADXL357 -q 1 -r 1 -s -m -d