ECG data acquisition with Analog device frontend and Redbear nano BLE
Dependencies: BLE_API mbed nRF51822
Fork of BLENano_SimpleControls by
Reference Design
2 channel EKG with Redbear BLE reference and Analog Device amplifier to generate RAW EKG data fed into Medtrics MaaS service . Medtrics API can consumer raw input with given parameters of ADC sample frequency and scaling factor
Specification
- Application Processor: nRF51822/BLE , Analog frontend: AD8232 /
- Input Analog Voltage = 3.3V
- 10 bit ADC input range = (0-1023) or scaling factor= 3.22mV/unit (this is ADC resolution)
- ADC sample frequency (BLE pull rate) = 250Hz (4ms per sample)
Reference IOS and Android app will be online soon!
Diff: main.cpp
- Revision:
- 3:f530ca03e014
- Parent:
- 2:3cd654f42efa
- Child:
- 4:b95d3432a495
--- a/main.cpp Mon Jul 27 06:53:46 2015 +0000 +++ b/main.cpp Thu Jan 07 02:43:53 2016 +0000 @@ -71,11 +71,11 @@ -void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) +void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params) { //pc.printf("Disconnected \r\n"); //pc.printf("Restart advertising \r\n"); - ble.startAdvertising(); + ble.gap().startAdvertising(); } void WrittenHandler(const GattWriteCallbackParams *Handler)