Raspberry Pi Pico ADC

  Переглядів 15,122

Tinker Tech Trove

Tinker Tech Trove

День тому

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

КОМЕНТАРІ: 26
@hewdailyink
@hewdailyink 3 роки тому
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
@curly6722 2 роки тому
This video is as if David Attenborough switched from talking about nature, to talking about electronics. Good video!
@rungeon83
@rungeon83 3 роки тому
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
@PhG1961 3 роки тому
Excellent video, entertaining and very well explained !
@skf957
@skf957 3 роки тому
Very nicely explained, thank you.
@EvilKimau
@EvilKimau 3 роки тому
Solid intro to the subject :+1:
@nageshbk1
@nageshbk1 3 роки тому
Very Well explained, thank you.
@riella23
@riella23 3 роки тому
Great video, much appreciated!
@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
@kaggavin1007 2 роки тому
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
@jj74qformerlyjailbreak3
@jj74qformerlyjailbreak3 2 роки тому
Thanks 😊 “Look Mum, More Bits” 👍
@tanmayfuse1747
@tanmayfuse1747 2 роки тому
Is there any way to connect two joystick with pi pico?
@astudent4187
@astudent4187 Рік тому
This guys a chad.
@pykid1915
@pykid1915 2 роки тому
can you please do a video on using ads1115 with raspberyy pi pico
@sabatajmirriyahi4290
@sabatajmirriyahi4290 Рік тому
Thanks, how can I change the baud rate in Pico? Thony
@joshuachettiar86
@joshuachettiar86 2 роки тому
How to use ADC in continuous mode with DMA
@epat4706
@epat4706 3 роки тому
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.
@pochotom2834
@pochotom2834 Рік тому
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.
@sokoloft3
@sokoloft3 6 місяців тому
Dang everything I see is in python and I really want to use C. Just need to get the voltage of a battery
@peter9477
@peter9477 3 роки тому
Good job. One small note: while the plural "axes" is pronounced "AX-eez", the singular "axis" is pronounced "AX-iss" and not "AX-ee".
Raspberry Pi Pico - PIO explained
50:01
Slador
Переглядів 24 тис.
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Переглядів 277 тис.
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 13 млн
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Переглядів 18 млн
Спаси её волосы🙏🏻
00:40
БРУНО
Переглядів 2,1 млн
Raspberry Pi Pico: WiFi part 2, Deep Sleep!
23:13
Tinker Tech Trove
Переглядів 15 тис.
What is VGA and How to Use it With a Raspberry Pi Pico
18:28
Gary Explains
Переглядів 48 тис.
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Переглядів 580 тис.
RP2040 - Introduction to Assembly Language - BMA-01
25:21
Life with David
Переглядів 8 тис.
How Do ADCs Work? - The Learning Circuit
10:13
element14 presents
Переглядів 116 тис.
Raspberry Pi Pico: nRF24L01 over SPI
19:05
Tinker Tech Trove
Переглядів 27 тис.
Raspberry Pi Pico Lecture 7: ADC and DMA
49:59
Hunter Adams
Переглядів 8 тис.
Raspberry Pi Pico LCD Projects
17:25
ExplainingComputers
Переглядів 97 тис.
Raspberry Pi Pico - Review and Getting Started
18:32
Gary Explains
Переглядів 73 тис.
I7 2600K тест в играх и сравнение с AMD Ryzen
17:53
Обзор Nothing ear (3) и ear (a) - ПРОРЫВ за $100
17:34
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 583 тис.
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Переглядів 3,6 млн
Обзор Nothing ear (3) и ear (a) - ПРОРЫВ за $100
17:34
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 63 тис.
Почему сканер ставят так не удобно?
0:47
Не шарю!
Переглядів 547 тис.