Liquid Flow Sensor and RPI

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
ebharding
 
Posts: 4
Joined: Fri Oct 04, 2013 3:55 pm

Liquid Flow Sensor and RPI

Post by ebharding »

I tried following the kegbot lesson, but there was no info on how the flow meter is hooked up to the breadboard. I Guessed based on the photo, but got it wrong.

I already did the thermometer lesson and that worked fine. It was still plugged into the breadboard when I hooked up the flow meter, is that a problem?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Liquid Flow Sensor and RPI

Post by adafruit_support_rick »

You want to use GPIO 22, as indicated on this pinout diagram
http://pi.gadgetoid.com/pinout

ebharding
 
Posts: 4
Joined: Fri Oct 04, 2013 3:55 pm

Re: Liquid Flow Sensor and RPI

Post by ebharding »

Thanks, since I am a total novice on the h/w side, can you recommend a good book or tutorial to get up to speed on the GPIO or a basic electronics primer?

Thanks

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Liquid Flow Sensor and RPI

Post by adafruit_support_rick »

We vet all the items in our Books section before stocking them, so they're all good. Browse through it and see if something strikes you:
http://www.adafruit.com/category/40

fl0
 
Posts: 4
Joined: Mon Mar 31, 2014 3:02 pm

Re: Liquid Flow Sensor and RPI

Post by fl0 »

You want to use GPIO 22, as indicated on this pinout diagram
Is there a reason to use GPIO 22 rather than 17?

I'm using the prototyping plate http://www.adafruit.com/products/801 and confirmed my python code works with a push button, but fails when using the sensor.

Is a voltage divider circuit necessary to bring signal down to 3.3V for RPi?

fl0
 
Posts: 4
Joined: Mon Mar 31, 2014 3:02 pm

Re: Liquid Flow Sensor and RPI

Post by fl0 »

The pictures in the article imply the sensor is wired directly, however when I do this, it doesn't detect a state change either. My python code only detects a 1 when wired like this and I believe it's not good for the RPi?

http://learn.adafruit.com/adafruit-keg- ... pe-circuit

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Liquid Flow Sensor and RPI

Post by adafruit_support_rick »

fl0 wrote:Is there a reason to use GPIO 22 rather than 17?
No reason. It's just the way the code was written
fl0 wrote:The pictures in the article imply the sensor is wired directly, however when I do this, it doesn't detect a state change either. My python code only detects a 1 when wired like this and I believe it's not good for the RPi?
So, you're running the flow meter off 5V, right? Yes, that does seem odd. I guess I'd set up a voltage divider on it.

Even so, it should detect the state change, if you're running it on 5V.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”