Read Analog Voltage with the PICO

  Рет қаралды 7,944

Making Stuff with Chris DeHut

Making Stuff with Chris DeHut

Жыл бұрын

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

Пікірлер: 31
@terryboyle
@terryboyle Жыл бұрын
This was excellent. As clear and concise a presentation as I have ever seen. Please keep making them 👍
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
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 🙂
@jeffschroeder4805
@jeffschroeder4805 3 ай бұрын
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 3 ай бұрын
Hi Jeff, Thanks for sharing your suggestions, both excellent ideas. I got them noted in my "future stories" document. Cheers! Chris
@mekuranda
@mekuranda Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@MakingStuffwithChrisDeHut I guess I have been using KZfaq 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 Жыл бұрын
@@mekuranda I believe you are correct Peter. It is hard to climb up in the KZfaq rankings and I hope to gain some ground soon.
@dtpietrzak
@dtpietrzak 5 ай бұрын
thank you sir 👍
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 5 ай бұрын
You are welcome. Cheers! Chris
@bones549
@bones549 7 ай бұрын
Hey thought I recognized the voice. I go back to your dvd days hope you been well
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 6 ай бұрын
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
@allthegearnoidea6752
@allthegearnoidea6752 Жыл бұрын
Great video thanks
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
You are welcome! Thanks for watching!
@bArda26
@bArda26 10 ай бұрын
thanks Chris!
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 10 ай бұрын
Hi @bArda26, You are welcome!!! Cheers! Chris
@terryboyle
@terryboyle Жыл бұрын
Subscribed!
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
Thank you!
@abdulrahimss
@abdulrahimss Жыл бұрын
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 :)
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
Hi Abdul, Thanks for the clarification. Cheers! Chris
@kaylor87
@kaylor87 Жыл бұрын
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?
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
Hi Kaylor87, The best method is to use a voltage divider. Chris
@davidaustin7395
@davidaustin7395 4 ай бұрын
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,
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 4 ай бұрын
Thanks for sharing David. Cheers! Chris
@joerahhal7439
@joerahhal7439 4 ай бұрын
can you get stable milivolt or microvolt readings with this ADC for load cell signal?
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 4 ай бұрын
I have no experience trying that but I will say, you will need a VERY STABLE power supply and circuitry. Chris
@johndann9196
@johndann9196 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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. KZfaq 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 Жыл бұрын
How would you send those values to a program on a Pi? Thank you.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Жыл бұрын
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...kzfaq.info/get/bejne/qJuDjNyCp5bJaKs.html Cheers! Chris
Saving Data Inside the PICO
13:11
Making Stuff with Chris DeHut
Рет қаралды 8 М.
Using PICO Interrupts
25:15
Making Stuff with Chris DeHut
Рет қаралды 17 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 31 МЛН
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,3 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Run BOTH Cores with Threading On The PICO
33:28
Making Stuff with Chris DeHut
Рет қаралды 6 М.
Read the analog world: Use ADC's on Pi Pico
13:56
Lutz
Рет қаралды 4,2 М.
How to use Timers on the RPi PICO
17:05
Making Stuff with Chris DeHut
Рет қаралды 15 М.
Let's Get Started with the PICO W
19:40
Making Stuff with Chris DeHut
Рет қаралды 8 М.
DIY Spraybooth
9:16
Wombat Models
Рет қаралды 4,3 М.
Raspberry Pi Pico W: WiFi  Controlled Robot
17:56
ExplainingComputers
Рет қаралды 88 М.
Raspberry Pi Pico LCD Projects
17:25
ExplainingComputers
Рет қаралды 106 М.
Using PWM on the RPi PICO microcontroller
22:57
Making Stuff with Chris DeHut
Рет қаралды 4,1 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 6 МЛН
Самые крутые школьные гаджеты
0:49
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 2 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,4 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 231 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 413 М.
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 711 М.