See the signal of Bronkhorst debimeter 0-5V nd convert it in a flow. Thi library is mo specific to combustion application (eq ratio, flows ...)
Diff: Debimeter.h
- Revision:
- 0:03d4829fcead
diff -r 000000000000 -r 03d4829fcead Debimeter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Debimeter.h Wed Jun 05 11:24:44 2019 +0000 @@ -0,0 +1,44 @@ +#ifndef DEBIMETER_H +#define DEBIMETER_H + +#include <mbed.h> +#include "Global.h" +#include "Adafruit_ADS1015.h" + + +extern I2C i2c; +extern Adafruit_ADS1015 ads; + + + +//Class Debimeter +class Debimeter{ + + +public: + Debimeter(Reactif reactif_,float debitMax_,Enum_UnitFlow unit_,int voie_adc_); + //lit la valeur de débit + float get_volt(void); + void set_unit(Enum_UnitFlow unity); + string get_text_unit(void); + void set_typereactif(Reactif reactif) ; + Reactif get_typereactif(void); + void set_channel(int channel); + float get_debit_NL(void); + float get_debit_m(void); + float get_debit_unit(void); + + + //attributs +private: + Reactif m_reactif; + float m_debitMax; + + Enum_UnitFlow m_unit; + float m_tensionadc; + int m_voie_adc; + + + +}; +#endif \ No newline at end of file