3/29/2024 0 Comments How to calculate ppm of a gas![]() ![]() #define READ_SAMPLE_TIMES (5) //define the time interal(in milisecond) between each samples in #define READ_SAMPLE_INTERVAL (50) //define how many samples you are going to take in normal operation #define CALIBRATION_SAMPLE_INTERVAL (500) //define the time interal(in milisecond) between each samples in the ![]() #define CALIBARAION_SAMPLE_TIMES (50) //define how many samples you are going to take in the calibration phase which is derived from the chart in datasheet #define RO_CLEAN_AIR_FACTOR (9.83) //RO_CLEAR_AIR_FACTOR=(Sensor resistance in clean air)/RO, #define RL_VALUE (5) //define the load resistance on the board, in kilo ohms here is it #define MQ_PIN (0) //define which analog input channel you are going to use Hi, i am using mq sensors for calculating ppm value of different gases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |