Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017
Dependencies: ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822
Fork of UPAS_BLE_and_USB by
Diff: main.cpp
- Revision:
- 21:765896ebd61c
- Parent:
- 20:ad9883973d86
- Child:
- 22:8dd7e0d4c21c
--- a/main.cpp Sat May 30 06:26:52 2015 +0000 +++ b/main.cpp Sat May 30 06:32:11 2015 +0000 @@ -121,13 +121,14 @@ if(fmod(secondsD,10)==0){ - omronVolt = 0.1+(omronReading*4.096)/(32768*2); + omronVolt = (omronReading*4.096)/(32768*2); massflow = -1.0147*pow(omronVolt,(float)4)+4.5045*pow(omronVolt,(float)3)-7.1369*pow(omronVolt,(float)2)+8.9857*omronVolt-2.6157; atmoRho = ((press-((6.1078*pow((float)10,(float)((7.5*temp)/(237.3+temp))))*(rh/100)))*100)/(287.0531*(temp+273.15))+((6.1078*pow((float)10,(float)((7.5*temp)/(237.3+temp))))*(rh/100)*100)/(461.4964*(temp+273.15)); volflow = massflow/atmoRho; deltaflow = volflow-volflowSet; /*if(abs(deltaflow)>.05*volflowSet){ + digital_pot_setpoint = f(Vsetpoint); DigPot.writeRegister(digital_pot_setpoint); } */