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
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.
This video is as if David Attenborough switched from talking about nature, to talking about electronics. Good video!
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!
Excellent video, entertaining and very well explained !
Very nicely explained, thank you.
Great video, much appreciated!
Solid intro to the subject :+1:
Very Well explained, thank you.
Keep it up man. Your video rock
Very enjoyable video. Thanks best regards from fellow tuber
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?
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
This guys a chad.
Thanks, how can I change the baud rate in Pico? Thony
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
Is there any way to connect two joystick with pi pico?
Thanks 😊 “Look Mum, More Bits” 👍
can you please do a video on using ads1115 with raspberyy pi pico
How to use ADC in continuous mode with DMA
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
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
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
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.
Dang everything I see is in python and I really want to use C. Just need to get the voltage of a battery
I find the reading of adc very unstable. Has it happened to someone else?
@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.
Good job. One small note: while the plural "axes" is pronounced "AX-eez", the singular "axis" is pronounced "AX-iss" and not "AX-ee".