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?
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/
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/
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Liquid Flow Sensor and RPI
You want to use GPIO 22, as indicated on this pinout diagram
http://pi.gadgetoid.com/pinout
http://pi.gadgetoid.com/pinout
-
- Posts: 4
- Joined: Fri Oct 04, 2013 3:55 pm
Re: Liquid Flow Sensor and RPI
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
Thanks
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Liquid Flow Sensor and RPI
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
http://www.adafruit.com/category/40
-
- Posts: 4
- Joined: Mon Mar 31, 2014 3:02 pm
Re: Liquid Flow Sensor and RPI
Is there a reason to use GPIO 22 rather than 17?You want to use GPIO 22, as indicated on this pinout diagram
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?
-
- Posts: 4
- Joined: Mon Mar 31, 2014 3:02 pm
Re: Liquid Flow Sensor and RPI
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
http://learn.adafruit.com/adafruit-keg- ... pe-circuit
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Liquid Flow Sensor and RPI
No reason. It's just the way the code was writtenfl0 wrote:Is there a reason to use GPIO 22 rather than 17?
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.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?
Even so, it should detect the state change, if you're running it on 5V.
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/
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/