GithubHelp home page GithubHelp logo

Comments (6)

ostaquet avatar ostaquet commented on September 26, 2024 2

Hi Tukno, your calculation is correct. The minimum current drained through the heater is approx. 180mA. The point in the explanation is that the Ardiuno pins support max 150mA, that's why you should never connect the heater directly on the Arduino pins.

from arduino-mq131-driver.

SciWax avatar SciWax commented on September 26, 2024 1

Hello, So Is it better use a external supply for the heater (when the sensor is reading) or after the preheat time (approximately 48 hours) I can connect directly on the Arduino?

Hey diego. Unfortunately not. The heater of the sensor Always has to be connected to an external power supply. The MQ131 sensors (low and high concentration variants) consume just too much current for an Arduino to handle. You Need a separate 5V power supply, which can deliver enough current for the sensor. you can connect the sensor Pins directly to the Arduino though.

from arduino-mq131-driver.

ferreiradiego avatar ferreiradiego commented on September 26, 2024

Hello, So Is it better use a external supply for the heater (when the sensor is reading) or after the preheat time (approximately 48 hours) I can connect directly on the Arduino?

from arduino-mq131-driver.

ferreiradiego avatar ferreiradiego commented on September 26, 2024

Thanks @SciWax for your answer.

So, should I only connect the heater pins to an external power supply? the others pins (reading pins and Vcc) can I connect directly to the Arduino?

from arduino-mq131-driver.

SciWax avatar SciWax commented on September 26, 2024

The datasheet tells you, that the heater needs 5V DC or AC and the Vc-Pins also need 5V. Personally, I've connected Vh and Vc to my power supply, because my power supply provides 5V and enough current for the Heater and the sensor itself. You can connect the reading Pins to the Arduino, but don't Forget the load resistance. The datasheet and the circuit diagram of ostaquet give you a good idea About how to connect the sensor pins to your Arduino.

from arduino-mq131-driver.

SciWax avatar SciWax commented on September 26, 2024

Thanks @SciWax for your answer.

So, should I only connect the heater pins to an external power supply? the others pins (reading pins and Vcc) can I connect directly to the Arduino?

BTW, something I've forgot to mention. Be aware of the logic level of your Arduino. I'm using a Mega2560, which is 5V. According to the datasheet, the sensor can give you outputs around 4V, which is too much for the ADC of a 3.3V Arduino. Use a logic level converter, if you use a 3.3V Arduino!

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.