How to add Analog Inputs to your Raspberry Pi using MCP3008/3208

How to add Analog Inputs to your Raspberry Pi using MCP3008/3208

Antalz

3 года назад

13,356 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@123123mike
@123123mike - 14.01.2024 03:29

When I enter an integer between 0-7 for 'channel' it gives an error of invalid syntax. When I substitute 'CH4' for 'channel' it seems to move past it but not getting any voltage readings, just 0.00's. Also, if I'm using mcp3008 should this line in the while loop "value = ReadChannel3208(4)" refer to 3208 or 3308. Something's not working. thanks

Ответить
@user-gh2mo2yn9i
@user-gh2mo2yn9i - 05.01.2024 06:00

An easier way to add up to 128 Analog ports to a single Pi is

Ответить
@dalesmith8666
@dalesmith8666 - 19.12.2023 21:17

You need to incorporate a low pass filter...etc...Noise will also find it way into he ADC.

Ответить
@chrismoore43
@chrismoore43 - 18.12.2023 06:54

I would like to take all the analog outputs for my boat and make a digital dashboard. My question is my fuel sending unit is sending between 240-33 ohms. Would I be able to read this with a Raspberry PI? I know I will need an Analog To Digital Converter probably 8ch.

Ответить
@creativearts4917
@creativearts4917 - 25.03.2023 13:43

How to use it with pico?

Ответить
@yali123
@yali123 - 05.12.2022 07:12

Thank you for a great video! One comment, the pins you mention are really PI GPIO, which are different than the actual 40 pin Header pin numbering.
Question: I have the 3208 with 5v from the PI and 2 capacitors 100nf and 220nf. My reading fluctuating from 3147-3156, i.e. 3.812v-3.823v. I have a new cheap voltmeter showing constant 3.824v. This is about 11mv difference. The accuracy of the A2d with 5v reference, is supposed to be ~1mv (5/4096). It seemed your readings were much more stable, within a couple of digits. I also tried adding 100uF electrolytic cap on Vcc and Vin, didn't make a difference.
Do you have any idea why this large fluctuation? (trying to test the voltmeter accuracy:))

Ответить
@DockterWho
@DockterWho - 29.07.2022 06:56

What is the lowest voltage that can me read with this chip and raspberry pi?

Ответить
@rayyanislam3279
@rayyanislam3279 - 16.06.2022 03:57

So you can use 2 MCP3008 devices on 1 pi (so 16 channels?)?

Ответить
@andrzejmazurkiewicz7963
@andrzejmazurkiewicz7963 - 08.06.2022 16:03

Thank you!
What is really good for a non-nativespeaker, you speak relatively slowly and clearly.
Once again thanks.
Regards

Ответить
@braantechv3566
@braantechv3566 - 25.02.2022 02:48

hello, good video, it helps me too much, so i have a question, for the analogic signal, are you using the voltaje of the raspberry or your potenciometer were conected to a external sourse? i hope you understand, i dont spak english

Ответить
@djtyros
@djtyros - 05.01.2022 20:15

What 2 capacitors should I use> it sounds like you say, 100 "nano" farads ? is that right, not "micro"? Also, what voltage, thanks.
ps. why ceramic capacitors? is there a difference in normal ones. thanks

Ответить
@swarnanjalibagchi1666
@swarnanjalibagchi1666 - 06.12.2021 20:24

(adc[1]&15)<<8
What does it mean can you explain please i didn't get that part..
And one more question what will be the code if we want get reading from all the 8 channels together using adc MCP 3208?

Ответить
@shuchismitabagchi801
@shuchismitabagchi801 - 05.12.2021 10:37

How can we store this output data in the sd card of rpi

Ответить
@jorgefigueroa3536
@jorgefigueroa3536 - 09.09.2021 06:30

Thanks a lot Antalz for this video, really helped me to understand how to use this analog input "converters", saw lot of videos and couldt catch it great and simple like yours :)

Have one small and think simple question, if i want to read/use more analog input channels from the chip, should i recall the ReadChannel3208 function on another loop or sentence ?

Lets say, i have value = ReadChannel3208(4) to read a potentiometer like your example video, and i declare a variable like humValue= ReadChannel3208(3) to read a humidity voltage sensor on analog pin 3 of chip?

thanks in advance sir.
Regards.

Ответить
@Snoweuph
@Snoweuph - 09.07.2021 20:34

my MOSI, MISO and SCK are already occupied by the screen that I use for my PI, is there an alternative that I can use? I have a Pi 4b.
I would like to connect two joysticks to the pi which each have two potentiometers and turn them into a gamepad with a few buttons using software. thx

Ответить
@more2much696
@more2much696 - 11.04.2021 09:52

Resolution of inputs

Ответить
@paulwg316
@paulwg316 - 25.03.2021 07:54

Thanks for your sharing.
Would you tell me How to record the Digital Caliper reading into my Raspberry Pi ?

Ответить
@rushikantpawar8495
@rushikantpawar8495 - 19.03.2021 10:49

Can I get circuit digram for this?

Ответить
@MauricioHernandez-de8is
@MauricioHernandez-de8is - 28.11.2020 06:22

Very useful!

Ответить