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 ...)
Debimeter.h@0:03d4829fcead, 2019-06-05 (annotated)
- Committer:
- dcharala
- Date:
- Wed Jun 05 11:24:44 2019 +0000
- Revision:
- 0:03d4829fcead
Creation of this class in order to pilot some bronkhost debimeter with a specific controller
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dcharala | 0:03d4829fcead | 1 | #ifndef DEBIMETER_H |
dcharala | 0:03d4829fcead | 2 | #define DEBIMETER_H |
dcharala | 0:03d4829fcead | 3 | |
dcharala | 0:03d4829fcead | 4 | #include <mbed.h> |
dcharala | 0:03d4829fcead | 5 | #include "Global.h" |
dcharala | 0:03d4829fcead | 6 | #include "Adafruit_ADS1015.h" |
dcharala | 0:03d4829fcead | 7 | |
dcharala | 0:03d4829fcead | 8 | |
dcharala | 0:03d4829fcead | 9 | extern I2C i2c; |
dcharala | 0:03d4829fcead | 10 | extern Adafruit_ADS1015 ads; |
dcharala | 0:03d4829fcead | 11 | |
dcharala | 0:03d4829fcead | 12 | |
dcharala | 0:03d4829fcead | 13 | |
dcharala | 0:03d4829fcead | 14 | //Class Debimeter |
dcharala | 0:03d4829fcead | 15 | class Debimeter{ |
dcharala | 0:03d4829fcead | 16 | |
dcharala | 0:03d4829fcead | 17 | |
dcharala | 0:03d4829fcead | 18 | public: |
dcharala | 0:03d4829fcead | 19 | Debimeter(Reactif reactif_,float debitMax_,Enum_UnitFlow unit_,int voie_adc_); |
dcharala | 0:03d4829fcead | 20 | //lit la valeur de débit |
dcharala | 0:03d4829fcead | 21 | float get_volt(void); |
dcharala | 0:03d4829fcead | 22 | void set_unit(Enum_UnitFlow unity); |
dcharala | 0:03d4829fcead | 23 | string get_text_unit(void); |
dcharala | 0:03d4829fcead | 24 | void set_typereactif(Reactif reactif) ; |
dcharala | 0:03d4829fcead | 25 | Reactif get_typereactif(void); |
dcharala | 0:03d4829fcead | 26 | void set_channel(int channel); |
dcharala | 0:03d4829fcead | 27 | float get_debit_NL(void); |
dcharala | 0:03d4829fcead | 28 | float get_debit_m(void); |
dcharala | 0:03d4829fcead | 29 | float get_debit_unit(void); |
dcharala | 0:03d4829fcead | 30 | |
dcharala | 0:03d4829fcead | 31 | |
dcharala | 0:03d4829fcead | 32 | //attributs |
dcharala | 0:03d4829fcead | 33 | private: |
dcharala | 0:03d4829fcead | 34 | Reactif m_reactif; |
dcharala | 0:03d4829fcead | 35 | float m_debitMax; |
dcharala | 0:03d4829fcead | 36 | |
dcharala | 0:03d4829fcead | 37 | Enum_UnitFlow m_unit; |
dcharala | 0:03d4829fcead | 38 | float m_tensionadc; |
dcharala | 0:03d4829fcead | 39 | int m_voie_adc; |
dcharala | 0:03d4829fcead | 40 | |
dcharala | 0:03d4829fcead | 41 | |
dcharala | 0:03d4829fcead | 42 | |
dcharala | 0:03d4829fcead | 43 | }; |
dcharala | 0:03d4829fcead | 44 | #endif |