Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Sensor/ReadSensor.h
- Committer:
- DuyLionTran
- Date:
- 2017-12-12
- Revision:
- 18:5585365d6951
- Child:
- 32:8226837c56ae
File content as of revision 18:5585365d6951:
#ifndef __READSENSOR_H__ #define __READSENSOR_H__ #define SENSOR_1_PIN (A0) #define SENSOR_2_PIN (A1) #define SENSOR_3_PIN (A3) #define SENSOR_4_PIN (A4) #define SaturationDoVoltageAddress 12 //the address of the Saturation Oxygen voltage stored in the Flash #define SaturationDoTemperatureAddress 16 //the address of the Saturation Oxygen temperature stored in the Flash #define VREF 3.3 #define SCOUNT 30 /** brief Perform calibration for pH sensor * retral None */ void SENSOR_PHCalib(); /** brief Read the analog value of pH sensor * retral pH ADC value */ float SENSOR_ReadPHADC(); /** brief Convert the ADC value read from pH sensor into pH value * retral pH value */ float SENSOR_GetPHValue(); #endif /* __READSENSOR_H__ */