GithubHelp home page GithubHelp logo

calibration time about arduino-mq131-driver HOT 10 CLOSED

ostaquet avatar ostaquet commented on September 26, 2024
calibration time

from arduino-mq131-driver.

Comments (10)

ostaquet avatar ostaquet commented on September 26, 2024

The calibration process should be quite rapid (max 10 minutes).

The calibration process as built in the library works by heating the sensor for 15-20 seconds (depending on the sensor type) and measuring the value every seconds. At each cycle, we stored the value read on the sensor. As soon as the value is stable, we know the stabilization cycle of the sensor. It defined the R0 and the time to read.

Did you preheat your sensor? (burn time of 48h)

from arduino-mq131-driver.

CAMR94 avatar CAMR94 commented on September 26, 2024

I have not burned it in completely yet. it is running right now with the calibration in the background and it should be finished tomorrow morning.

Is that burn in time necessary only once, or every time, that you are using it?

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

Burn in time is required only once.
You should rerun the calibration after the burn in time.
If you have still problem, we have to investigate why the reading value is unstable.

from arduino-mq131-driver.

CAMR94 avatar CAMR94 commented on September 26, 2024

So I left it running and started the calibration again, after the burn in time.
Still the calibration is not finishing.

I added some Pictures of my Setup. It's a mess, but maybe you can see something, that I can't.
Thank you again for your help.
S2
S3
S1

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

I didn't check in details your wiring. I have just some doubts about the power. It seems that you power everything through the USB of the computer, which is maybe not enough. I personally use the additional jack power to give enough power to the wiring.

In order to understand what is happening, you should add this after the line 246 in the MQ131.cpp file :
Serial.println(value);

It will give you an idea of the readings on the analog input.

from arduino-mq131-driver.

CAMR94 avatar CAMR94 commented on September 26, 2024

Hello again. Sorry for the late answer, I was gone for a few days.

I did add the jack, but still the Calibration doesn't finish.
I also added the Line and I am getting some readouts now.

Here are some Images of the Readout at the start and roughly 10-15 minutes later.

r1
r2
r3

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

The variance is important and unusual. When I looked to your last output, we have the same values coming out : 1127777.75, 1014000.00 and 920909.12. During the calibration process, the code is expecting a stable value.

What is the board that you're using?
What is the load resistance you're using?

from arduino-mq131-driver.

CAMR94 avatar CAMR94 commented on September 26, 2024

https://ardubotics.eu/en/microcontrollers/150-sainsmart-uno-r3-atmega328p-development-board-compatible-with-arduino-uno-r3.html This is the Board that I'm using.

I have replicated your Setup exactly, so my resistors are the same. I set it up multiple times with the same results.

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

I retest the whole code and made some technical refactoring. I don't see why your sensor is driving crazy during the calibration process.
Please check the connections as described in the README (I added the MQ131 pinout on a schema).
If you used a wrong connection on the pinouts, you had maybe damage the lead in the sensor. :-(

from arduino-mq131-driver.

atlask1 avatar atlask1 commented on September 26, 2024

Hi @CAMR94 ,
it's easy that you have damage the sensor, maybe you have powered it with wrong wiring. If you read the datasheet you could understand it. It's a supposition , but could happen.

mq131_ds_screnshoot

this is extremely situation, but strange behaviour happen if it's partially damaged, like unstable value.

from arduino-mq131-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.