Arduino Processing

A copy of the Arduino Uno code used for initial processing is attached here.

An overview of the code is found below.

Arduino 1

Initialization of the code begins by defining particular pins and values used throughout the code, as seen above.

Arduino 2

Heart Rate code is initialized using the SparkFun_MAX3010x_Pulse and Proximity Sensor Library within Arduino. The MAX30105.h and heartRate.h files are found within this library. All other sensor outputs do not require separate initialization.

Arduino 3

Different sensor are called using the letters defined in the input string. These letters have been preassigned to various inputs from sensors. For example,  the inputString is e would result in collection of Y-axis acceleration data from the accelerometer. This form of “handshaking” with each sensor allows for rapid serial collection of each data stream of interest. Subsequent code actually executes this function.

 

 

Back Home   

Recent Comments

    Archives

    Meta