HOW TO READ ANALOG INPUTS RASPBERRY PI: MCP3008 Analog to Digital Converter | Raspberry Pi Projects

  Переглядів 21,141

Ty and Gig Builds

Ty and Gig Builds

3 роки тому

In this video we describe how to read analog inputs with a raspberry pi. We use a MCP3008 Analog to Digital converter (ADC) to convert analog signals from a potentiometer to digital signals. This allows the raspberry pi to understand the input value. The code was written in Python 3 and was run on a Raspberry Pi 3b with Raspberry Pi OS (Raspbian). Please comment with any questions you have and like the video if you enjoyed it. If you want to see more content like this one, consider subscribing.
Materials:
Raspberry pi 3b - amzn.com/B085DPFR3N
5V Power Supply (not needed for demo) - amzn.com/B074YHN8D1
MCP3008 - www.mouser.com/ProductDetail/...
Article on controlling an LED with GPIO pins for a raspberry pi:
www.instructables.com/id/Usin...
Adafruit article on the circuit:
learn.adafruit.com/mcp3008-sp...
Raspberry Pi GPIO Layout:
www.raspberrypi.org/documenta...
Github repository that has the code for the demo:
github.com/tmckay1/pi_read_an...
Follow us on Instagram to keep updated throughout the week!
tyandgig?h...

КОМЕНТАРІ: 22
@elisabethkolar9364
@elisabethkolar9364 День тому
Hey, so lucky to found this video, because, I need help, to connect a wire from exact these 12 V supply to a rasperry pi. Which wire should I use ? And maybe you can tell me to implement a water pipe as well, I need it for a garden project. Would be great, to get a response. Thank you!
@matheusdeoliveira2143
@matheusdeoliveira2143 3 роки тому
This vídeo is amazing, u help so much on my project, Ty for this!
@thisisgoingdownhill6683
@thisisgoingdownhill6683 3 роки тому
Thanks so much man, this worked amazing for the project I am building! Next time could you zoom in a little bit more on the terminal text I struggled a bit to see it. Thanks!
@tyandgigbuilds8836
@tyandgigbuilds8836 3 роки тому
Definitely glad to see it was useful!
@thisisgoingdownhill6683
@thisisgoingdownhill6683 3 роки тому
@@tyandgigbuilds8836 hell ya brother definitely was
@brentbecker9363
@brentbecker9363 Рік тому
Awesome vid Thanks
@itmustbemac
@itmustbemac 2 роки тому
Hi! You mentioned in the end that you'll do a project with proximity sensors, but I can't find it went I checked on your videos. Can you link it here please? Thanks!
@Mandy-vp6nv
@Mandy-vp6nv Рік тому
hello, can i control with the potentiometer as well a Knob in a Software Synth like Qsynth ?
@sanskrutivs9435
@sanskrutivs9435 10 місяців тому
Hey i want to take square wave as an input and sample it at some frequency and then wanna store in it some file using raspberry pi. Please say me how to implement it?
@jeremiahayres103
@jeremiahayres103 2 роки тому
Can I use two of these ADCs on one pi? I have 10 inputs.
@Martin-qr7hc
@Martin-qr7hc 2 роки тому
Does it have to be the MCP3008 or can it be any sort of ADC?
@GengarOP
@GengarOP 2 роки тому
Thanks
@tyandgigbuilds8836
@tyandgigbuilds8836 2 роки тому
No problem
@AnnnEXE
@AnnnEXE 2 роки тому
How many simultaneous analog inputs can the MCP3008 accept? If I have a project with 12 potentiometers, would I be able to use multiple MCP3008 chips to achieve this? Also, thanks for the video :)
@tyandgigbuilds8836
@tyandgigbuilds8836 2 роки тому
Nice what you making? You wouldn’t have enough inputs because you have 8 pins with this so you’d have to multiplex the inputs similar to how this guy does it www.mikronauts.com/raspberry-pi/raspberry-pi-analog-to-digital-conversion-experiments-and-howto/ . I did something similar to a coffee table I made but used an arduino you can check out that video if you are interested in our backlogs here
@AnnnEXE
@AnnnEXE 2 роки тому
@@tyandgigbuilds8836 thanks :) I’m making a controller to attenuate the values of the sound registers in the game boy color processor. I’d need potentiometers for various parameters which I’d send to the game boy via the cartridge pins whenever the address bus references certain memory space. I’m recording footage of the build process and will probably upload the final project eventually!
@suresh350
@suresh350 2 роки тому
@@tyandgigbuilds8836 I personally don't like multiplexing inputs as half the time we cannot take the data. You rather would use a ic which has more inputs
@chicken_punk_pie
@chicken_punk_pie 2 роки тому
I've been trying for so long and it isn't working. I'm starting to think I got a bad chip off Amazon.
@mikolajwojnicki2169
@mikolajwojnicki2169 2 роки тому
You should have made a dimmable LED. No need for a ADC to just turn it on and off.
@stormbytes
@stormbytes Рік тому
Impossible to read what you're typing. You should have increased the font size!
@dalesmith8666
@dalesmith8666 2 місяці тому
PYTHON! THUMBS DOWN!🥱👎👎👎👎
Reading Analog Inputs | Raspberry Pi Pico Workshop: Chapter 2.6
8:46
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Переглядів 2,1 млн
Raspberry Pi LESSON 29: Using GPIO pins as Inputs and Reading them in Python
13:40
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
DroneBot Workshop
Переглядів 428 тис.
Raspberry Pi LESSON 32: Analog Input for the Raspberry Pi
9:57
Paul McWhorter
Переглядів 67 тис.
Using a 16x2 LCD Display with a Raspberry Pi
12:19
rdagger68
Переглядів 389 тис.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Переглядів 3,2 млн
Soil Moisture Sensor (Raspberry Pi)
7:01
PiddlerInTheRoot
Переглядів 94 тис.
Raspberry Pi Analog to Digital Converter (ADC) Microchip MCP3002
11:04
Raspberry Pi LESSON 15: Analog Input on the Raspberry Pi Using the ADC0834
39:34
МОРСКИЕ РАЧКИ С ВАЙЛДБЕРИЗ ЧАСТЬ 2
0:46
Натали Макколи
Переглядів 5 млн
Слишком много порошка...
0:35
Это точно смешно
Переглядів 4,6 млн
Рыбаки придумали очень интересный способ ловли рыбы
0:24
в ожидании поклевки
Переглядів 8 млн
Mind blowing bamboo crafts #bamboo
0:12
Bamboo / Shorts
Переглядів 32 млн