Newbie 10K Pot testing MCP3008

Thread Starter

bibble235

Joined May 29, 2018
21
Hi,

I have been trying to test the mcp3008 using a 10k pot on Raspberry Pi using the guide

https://cdn-learn.adafruit.com/down...olling-audio-volume-with-the-raspberry-pi.pdf

Unfortunately the only Pot I had was this
https://www.jaycar.co.nz/10k-ohm-li...1e33265dded073f654fea3dfa001e4&sort=relevance

When I run the program and turn the device I see

0.0004885197850512668
0.0004885197850512668
0.0004885197850512668
0.0004885197850512668
0.0004885197850512668
0.0004885197850512668


from gpiozero import MCP3008

import time

pot = MCP3008(0)

print(pot.value)

while True:
time.sleep(1)
print(pot.value)


I am wondering if the pins are too short for a breadboard?

Thanks all
 

Dave Lowther

Joined Sep 8, 2016
150
I am wondering if the pins are too short for a breadboard?
They do look a bit short.
You could solder some short wires to the legs. I use the inner from jumper wires when I need to do this.
If you have a multimeter you could plug the pot with existing legs into a spare area of the breadboard and see if you can measure the resistance correctly from other spare holes on the same rows.
Presumably if the pot legs aren't connected you would get the same print out regardless of whether the pot is plugged into the bread board or not.
 
Top