Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I apply ozone to the MQ131 sensor instead of increasing the value it drops #31

Closed
acavolina opened this issue Sep 25, 2020 · 7 comments

Comments

@acavolina
Copy link

some help ?

@ostaquet
Copy link
Owner

Can you elaborate a bit? :-)

Can you share the wiring, the test protocol and the program?

@acavolina
Copy link
Author

hi, change the sensor (high concentration) and work good the new one, I think was damaged for high temp soldering, the problem now are with the zero level ozone, using RL 1M resistor or 10K the zero are in 18 PPM or 16 PPM, when apply ozone at 15 ppm rise to 24. Now leave the sensor in heating process with 5V directly for 48 hrs to make test again

@acavolina
Copy link
Author

MQ131.setEnv(27,65); // temp 27o RH = 65%
lcd.init(); //initialize lcd screen
lcd.backlight(); // turn on the backlight
lcd.setCursor(0,0); // tell the screen to write on the top row
lcd.begin(16,2);
pinMode(6, OUTPUT); // pin 6 rele
pinMode(5, OUTPUT); // pin 5 buzzer
pinMode(3, INPUT_PULLUP); // pin 3 SELEC
pinMode(4, INPUT_PULLUP); // pin 4 ENTER
Serial.begin(115200);

// Init the sensor
// - Heater control on pin 2
// - Sensor analog read on pin A0
// - Model LOW_CONCENTRATION
// - Load resistance RL of 1MOhms (1000000 Ohms)
//MQ131.begin(2,A0, LOW_CONCENTRATION, 1000000);
MQ131.begin(2,A0, HIGH_CONCENTRATION, 1110000); programa:
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Calibracion...");

MQ131.calibrate();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("R0=");
lcd.print(MQ131.getR0());
lcd.print(" Ohms");
lcd.setCursor(0,1);
lcd.print("calentar en=");
lcd.print(MQ131.getTimeToRead());
lcd.print("s");
lcd.clear();
delay(5900);
}

@ostaquet
Copy link
Owner

The high concentration version of the MQ131 is designed for the high concentration of ozone. It means that the low ozone concentration will produce erratic values.

According to the datasheet, the minimal concentration detected is 10ppm. Knowing that it is a chemical sensor, you will have an high variability at such a low concentration.

I’m not surprized that you cannot reach the 0ppm with the high concentration sensor as it is not designed for this. Try again with high ozone concentration (> 100 ppm) after calibration & burn-in time to validate your results.

@Kesavaram
Copy link
Contributor

I had the same issue. I suspect your sensor might be a SnO2 sensor where the resistance of the sensor decreases with an increase in O3 concentration.

@ostaquet
Copy link
Owner

ostaquet commented Nov 1, 2020

@acavolina It seems that @Kesavaram is right. He added the code to support the SnO2 version (release 1.5.0).

Can you try your low concentration sensor with the model SN_O2_LOW_CONCENTRATION ?

@acavolina
Copy link
Author

acavolina commented Nov 2, 2020 via email

@ostaquet ostaquet closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants