🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core 2 and ADC Input

    Core 2
    4
    6
    8.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bschwahnB
      bschwahn
      last edited by

      Greetings everyone,

      First I have really had a lot of fun exploring the Core 2 (my first M5Stack product)! A lot of features for under $50! My joy ended a little when I discovered the less then capable ADC functions which after doing a little research on the internet (and searching this forum) this seems to be related to the ESP32 processor.

      With that said has anyone explored using a passive or active low-pass filter? My hope is that someone may have a schematic that someone would be willing to share?

      The end-goal is to use a LM34 Temperature Sensor with the Core 2 as a thermostat for the radiant floor heating in my home.

      Thanks ahead time if anyone can assist-Brian

      PS: My first post to this forum :)

      What doesn't kill me makes me stronger.

      1 Reply Last reply Reply Quote 0
      • ArnoA
        Arno
        last edited by

        You can find some informations on the following posts.
        For my part I abandoned the LM35 to use the DS18B20 and it works perfectly with UIFLOW

        https://community.m5stack.com/topic/3782/waterproof-temperature-probe

        https://community.m5stack.com/topic/3801/reading-analog-temperature-from-lm35-sensor/5

        I only use Uiflow ! with M5STACK Gray, RED, CORE2, ATOM, ATOM Lite,M5Paper, M5Tough, ATOM Display, M5 Stamp pico and more Unit...

        1 Reply Last reply Reply Quote 0
        • bschwahnB
          bschwahn
          last edited by

          Howdy Arno and thanks for providing the links...I did take a peek at those already!

          I'll take a look at the DS18B20 but I already purchased the LM34s (Fahrenheit version). I think the LM34 has a bit better accuracy yet DS18B20 is the less "painful" alternative!

          I plan to:

          1. look into the whole atten as that controls the voltage range to the ADC
          2. look into an active low pass filter using a single supply Op-Amp
          3. look into adding a small gain from the Op-Amp to get the voltage from the LM34 into an acceptable range for the ADC

          Will share my findings along with any schematics I come up with.

          Thanks-Brian

          What doesn't kill me makes me stronger.

          1 Reply Last reply Reply Quote 1
          • bschwahnB
            bschwahn
            last edited by

            Hi all,

            Some insights to share! Well the Active Low Pass filter did help to a small degree. With that said I decided to connect my Oscilloscope to the input of the ADC0 using GP35 and I was surprised by the amount of noise!

            Input of ADC0 on GP35:
            There was over 200mV of noise that varied in frequency of anywhere from 18 to 78MHz!

            Measuring "ground" (just as a reference)
            There was less then 100mV of noise that was around 60Hz which would be expected here in North America as our AC Line Frequency is 60Hz.

            I did order some other one-wire temperature sensors including the DS18B20 and have another temperature sensor with a +_ 0.25 accuracy just to experiment with.

            Again I will keep this post updated.

            Thanks-Brian

            What doesn't kill me makes me stronger.

            D 1 Reply Last reply Reply Quote 1
            • C
              ckuehnel
              last edited by

              Please have a look to my blog https://ckblog2016.net/2018/03/03/esp32-adc-dac/. Sorry for German language.

              1 Reply Last reply Reply Quote 0
              • D
                david-bethesda @bschwahn
                last edited by david-bethesda

                @bschwahn I would think a digital sensor would be much more accurate and easy to use than an analog one. Once you figure out what library you need for the protocol e.g. this might help https://randomnerdtutorials.com/esp32-multiple-ds18b20-temperature-sensors/

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post