Read Analog Voltage with the PICO

Sdílet
Vložit
  • čas přidán 17. 08. 2022
  • How to read analog voltage with the Raspberry Pi PICO. Analog input is a great feature of the PICO and using it is very simple. In this video we will:
    * Explain analog signals
    * Show which pins can read analog signals
    * Show how to wire up a POT as a voltage divider (Fritzing)
    * Demonstrate the process with a Micropython program
    SEE ASSOCIATED VIDEOS:
    Raspberry Pi PICO Setup and Preparation for Programming • Raspberry Pi PICO Setu...
    PICO Machine Library PIN Class • PICO Machine Library P...
    VISIT OUR COMPANION WEBSITE -- makingstuffwithchrisdehut.com
    DOWNLOAD FILES HERE -- makingstuffwithchrisdehut.com...
    SOURCED ITEMS USED IN SOME OF THE VIDEOS
    3 pack of breadboards amzn.to/3oAkK3H
    200 pc assortment of LEDs amzn.to/3JfLQVc
    450 pc assortment of LEDs amzn.to/3sr1vKL
    38 value / 1200 pcs resistor assortment amzn.to/3Llxq8k
  • Věda a technologie

Komentáře • 31

  • @terryboyle
    @terryboyle Před rokem +1

    This was excellent. As clear and concise a presentation as I have ever seen. Please keep making them
    👍

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      Thank you very much for stopping by and for subscribing - very much appreciated. Currently there are 50+ new videos planned - most coving the PICO so hopefully I will keep you informed and entertained 🙂

  • @mekuranda
    @mekuranda Před rokem +1

    Thanks for the slow and clear information....I subbed in the expectation you might have more similar content, or have previously covered them. As an older EE I never got into digital projects, but your excellent laid back style makes it easy to sit through the school level explanations.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      Hi Peter, Thanks for stopping by and watching the video! I am happy to hear it was of value to you. I hope to keep doing more but I got to get viewership up to help fund things. In the meantime I will keep plugging away! Thanks again for the feedback.
      Cheers!

    • @mekuranda
      @mekuranda Před rokem

      @@MakingStuffwithChrisDeHut I guess I have been using CZcams actively since your first upload, and I only just found your channel by accident. My gut feeling is that YT is not as interested in giving smaller content providers exposure as they do for larger sites. I often would search YT for a specific subject, and a thought I have for you is connecting your content to a popular subject and all those who are searching would find your channel - for example - solar and renewable energy are on my interest list, and suspect others too. I may have found your channel years ago, if you had used a Pico to control something solar (eg charger controller, inverter, or even a power management system), I imagine there are even more popular subjects and I would hope that YT looks at the headings and places relevant results into the searchers results. I will be watching for your next video - you have a special skill in content creation which I really enjoy.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem +1

      @@mekuranda I believe you are correct Peter. It is hard to climb up in the CZcams rankings and I hope to gain some ground soon.

  • @allthegearnoidea6752
    @allthegearnoidea6752 Před rokem +1

    Great video thanks

  • @bArda26
    @bArda26 Před 10 měsíci

    thanks Chris!

  • @kaylor87
    @kaylor87 Před rokem

    Hey Chris! Thanks for another great video. Question for you... I will be powering my pico with a battery; how can I read the input battery voltage and display it on the screen? My lipo battery will go beyond 3.3v at a full charge, so I know I can't feed the battery input directly to a GPIO pin and measure it with the ADC. Google says I need a separate voltage divider IC or something, is that really the easiest way to go about it? I find it hard to believe that my pico isn't capable of measuring the input voltage straight from the VSYS/VBUS pins somehow, no?? Is that just the way it goes, since the whole RP2040 runs off nothing more than 3.3v, or does the PICO have some kind of clever hardware already onboard that will let me measure the proper battery input voltage?

  • @jeffschroeder4805
    @jeffschroeder4805 Před 3 měsíci

    A short explanation of how to "map" the readings to calibrate and limit the range would be helpful. In the comments I see questions about measuring voltages higher than 3.3V, a discussion of voltage dividers might be helpful as well. Thank you for your helpful videos!

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 3 měsíci

      Hi Jeff,
      Thanks for sharing your suggestions, both excellent ideas. I got them noted in my "future stories" document.
      Cheers!
      Chris

  • @dtpietrzak
    @dtpietrzak Před 5 měsíci

    thank you sir 👍

  • @terryboyle
    @terryboyle Před rokem

    Subscribed!

  • @joerahhal7439
    @joerahhal7439 Před 4 měsíci

    can you get stable milivolt or microvolt readings with this ADC for load cell signal?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 4 měsíci

      I have no experience trying that but I will say, you will need a VERY STABLE power supply and circuitry.
      Chris

  • @johndann9196
    @johndann9196 Před rokem +1

    Please, how do i get stable readings from adc pin, I am getting jumping readings even tho they should be stable, do you have some idea how to help?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      What is connected to your ADC pin? Is that sensor providing a stable voltage?
      Unfortunately, the sensor could be outputting an unstable voltage and you won't be able to stop that. However, you can average a number of samples and use an averaged value.

    • @ExtantFrodo2
      @ExtantFrodo2 Před rokem

      Due to the switching power supply noise you will encounter such problems whether you are sampling fast or slow the noise will render most ADC data useless. And, sorry to say that even averaging can't get you an assured good sample. CZcams make GreatScott has a video showing how you can remove a resistor to the "aref" pin so that you can use an external power supply (like a battery (they have no noise at all)).
      If you measuring a DC voltage or slowly varying DC voltage try a 100nF or 1uF on the ADC input to ground.

  • @Alpha_fitz
    @Alpha_fitz Před rokem +1

    How would you send those values to a program on a Pi? Thank you.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      I suspect you want to use the PICO to get the analog data because the PI does not have analog inputs. There is a more direct way for the pi to get analog data - see this video...czcams.com/video/r5SYyQB0e8w/video.html
      Cheers! Chris

  • @davidaustin7395
    @davidaustin7395 Před 4 měsíci

    I tried to read a 10k ntc thermistor with 20k to 3v3. I found the adc on the pico loads the input like about 25k to gnd. Use a voltage follower If you need accurate voltage,

  • @bones549
    @bones549 Před 6 měsíci

    Hey thought I recognized the voice. I go back to your dvd days hope you been well

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 6 měsíci

      Welcome back!!! Life is good again, it took about 5 years after the end of the Woodworking at Home Magazine to get things back on track. After about 20 years I couldn't let the woodworking videos "sit in a dusty corner" anymore so I created this channel. I can't do too much woodworking anymore (respiratory issues) so I decided to create new content following another of my passions.
      I am glad you found the channel and I hope you enjoy it!
      Cheers!
      Chris

  • @abdulrahimss
    @abdulrahimss Před rokem

    Nice video. Would just like to point out the function you described was exponential not logarithmic. A logarithmic function would start fast and slow down as you approach bigger values :)