Raspberry Pi Pico ADC

Ғылым және технология

Today we look at the analogue to digital conversion capabilities of the Raspberry Pi Pico, go over some theory and finally use it to take control of some servos. Correction: The Pico has 12bit ADC hardware and not 16bit as I state in this video, my apologies. Micropython maps this to a 16bit value range, so the max remains 65535 and for all practical purposes you can treat it as 16bits but it only has 12bit precision.
For more info on controlling servos with the Pico, check out my video at • Raspberry Pi Pico Serv...
Comments and Feedback always welcome. You can find all the code on my github page at github.com/tinkertechtrove/pi...
Follow me on Twitter at / tinkertechtrove

Пікірлер: 27

  • @hewdailyink
    @hewdailyink3 жыл бұрын

    I'm not going to leave comments on everyone of your videos saying the same thing so hear it is once: You are fantastic at this. I love your format, demeanor, choice of topics, the problems you choose to present to show off the topic, and the big ole smile you throw out there from time to time.

  • @curly6722
    @curly67222 жыл бұрын

    This video is as if David Attenborough switched from talking about nature, to talking about electronics. Good video!

  • @rungeon83
    @rungeon833 жыл бұрын

    Wow this came 16 hours later than I needed :O hehe I just learned how to properly use it, this made it really sink in though and confirm alot of stuff I wasn't too sure about! Thanks Tim!

  • @PhG1961
    @PhG19613 жыл бұрын

    Excellent video, entertaining and very well explained !

  • @skf957
    @skf9573 жыл бұрын

    Very nicely explained, thank you.

  • @riella23
    @riella233 жыл бұрын

    Great video, much appreciated!

  • @EvilKimau
    @EvilKimau3 жыл бұрын

    Solid intro to the subject :+1:

  • @nageshbk1
    @nageshbk13 жыл бұрын

    Very Well explained, thank you.

  • @bladefreakers1297
    @bladefreakers1297 Жыл бұрын

    Keep it up man. Your video rock

  • @allthegearnoidea6752
    @allthegearnoidea6752 Жыл бұрын

    Very enjoyable video. Thanks best regards from fellow tuber

  • @darktherapy
    @darktherapy Жыл бұрын

    Hi, thanks for this useful video. Do I always have to use VREF as the positive voltage for all potentiometers I need to use? I have a pico reading 2 potentiometers in a script but the outputs aren’t consistent when I use the 3.3v output pin. Would VREF Solve this?

  • @kaggavin1007
    @kaggavin10073 жыл бұрын

    Hi Tim, please assist on how to add a command that enables an output GPIO when the voltage(ADC(26)) is above 2.3 V and disables when the voltage is or below 2.2 v

  • @astudent4187
    @astudent41872 жыл бұрын

    This guys a chad.

  • @sabatajmirriyahi4290
    @sabatajmirriyahi4290 Жыл бұрын

    Thanks, how can I change the baud rate in Pico? Thony

  • @guknj
    @guknj18 күн бұрын

    Im always getting 65535 as value in my GPIO26. What it could be? Im trying to use a capacitive moisture sensor, I've tried v.2.0 (3.3V) and v.1.2 (5V), both results in the same value

  • @tanmayfuse1747
    @tanmayfuse17472 жыл бұрын

    Is there any way to connect two joystick with pi pico?

  • @jj74qformerlyjailbreak3
    @jj74qformerlyjailbreak33 жыл бұрын

    Thanks 😊 “Look Mum, More Bits” 👍

  • @pykid1915
    @pykid19152 жыл бұрын

    can you please do a video on using ads1115 with raspberyy pi pico

  • @joshuachettiar86
    @joshuachettiar862 жыл бұрын

    How to use ADC in continuous mode with DMA

  • @epat4706
    @epat47063 жыл бұрын

    Great video, but you talk about the adc range as 65536 and being 16 bits - the pico has a 12 bit adc with a range of 4096. So how is the max returned value 65536?

  • @tinkertechtrove2910

    @tinkertechtrove2910

    3 жыл бұрын

    You are correct, the Pico ADC hardware is indeed only 12bits and not 16. I will post a correct in the description, however the values are mapped to a 16bit integer in micropython so the maximum value returned is indeed 65535, its just not as fine grained as a full 16bit ADC would be.

  • @jwrtiger

    @jwrtiger

    3 жыл бұрын

    @@tinkertechtrove2910 Thank you for the information in a very nicely produced video on this topic. Do you know how/routine micropython is mapping the 12-bit value to the 16-bit value. For example is the mapping roughly for any given increasing 1-bit change in the 12-bit level/state the mapping increase by jumping 16 level/states in the 16-bit register? Thanks for any clarification you can provide on this topic.

  • @TheViperZed

    @TheViperZed

    2 жыл бұрын

    @@tinkertechtrove2910 Just wanted to mention here that you can increase the resolution of the ADC by oversampling and averaging the results, if you don't need to sample at the maximum frequency of the ADC. The 12bit ADC being mapped to 16bits makes this easier, although the actual reason for the mapping is probably to make the result of the ADC half-word aligned.

  • @sokoloft3
    @sokoloft39 ай бұрын

    Dang everything I see is in python and I really want to use C. Just need to get the voltage of a battery

  • @pochotom2834
    @pochotom28342 жыл бұрын

    I find the reading of adc very unstable. Has it happened to someone else?

  • @brucehanson4147

    @brucehanson4147

    Жыл бұрын

    I read other feedback to similar videos stating that the PICO uses a switching 3.3v regulator that introduces some noise to the 3.3v and saw some oscilloscope testing that seemed to verify that. Some have suggested adding a filter capacitor or to use an external linear regulator for the reference voltage. I was getting ready to put some projects together that utilized the ADC and wondered about using a 2040 variant from Adafruit as they have integrated a linear regulator into their boards as well as brought out all 4 ADC inputs to pins where they can be used.

  • @peter9477
    @peter94773 жыл бұрын

    Good job. One small note: while the plural "axes" is pronounced "AX-eez", the singular "axis" is pronounced "AX-iss" and not "AX-ee".

Келесі