lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

looking for a simple potentiometer cir interface with Pi;

Mon Mar 03, 2014 6:14 am

What's a simple analog potentiometer circuit that interfaced with the pi? DO I need a Ardino circuit?

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 6:24 am

Searching for "raspberry pi potentiometer" on Google gets me this:
http://learn.adafruit.com/reading-a-ana ... i/overview

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 6:40 am

It doesn't get muich simpler than this:

http://www.ebay.com/itm/1PC-New-AD-DA-C ... 2c71d20f9d
Image

It even has it's own pot on board which you can disconnect and hook up your own.

$1.91 delivered.

I use these as a current detector.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 6:56 am

Richard-TX wrote:It doesn't get muich simpler than this:

http://www.ebay.com/itm/1PC-New-AD-DA-C ... 2c71d20f9d
Image

It even has it's own pot on board which you can disconnect and hook up your own.

$1.91 delivered.

I use these as a current detector.

Is that mean I also need to get a Arduino board too?

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 7:27 am

lilzz wrote:
Richard-TX wrote:It doesn't get muich simpler than this:

http://www.ebay.com/itm/1PC-New-AD-DA-C ... 2c71d20f9d
Image

It even has it's own pot on board which you can disconnect and hook up your own.

$1.91 delivered.

I use these as a current detector.

Is that mean I also need to get a Arduino board too?
No, you hook it up to the I2C interface on the GPIO pins.

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 11:47 am

With the ADC board hooked up to the Rpi, the value read from the ADC will be relative position of the pot. There will be 255 steps from one stop to the other.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: looking for a simple potentiometer cir interface with Pi

Mon Mar 03, 2014 5:16 pm

The potentiometer outputs an analogue voltage and the Pi doesn't do analogue. The Arduino does do analogue, so you can use either an ADC board or an Arduino. With some devious coding and a few carefully chosen passive components you can bodge a pseudo analogue with just a digital device like the Pi, but if you're asking questions at this level on here, an ADC/Arduino is a lot easier.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

Return to “General discussion”