• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

[Version 2 Release] RaspberryPints - Digital Taplist Solution

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
I think I may have discovered my problem. My keg was partly frozen. Somehow or another my temp probe dislodged itself from where I normally keep it attached. I pulled out my keg of stout and heard a strange sound when I was moving it. When I opened it, I had about 5 pints remaining in there of slushy beer. after replacing it with another stout keg that I had on deck, it's pouring exactly the way it's supposed to. I swear, I'm my own worst enemy sometimes....anyway, thanks guys!
 
I think I may have discovered my problem. My keg was partly frozen. Somehow or another my temp probe dislodged itself from where I normally keep it attached. I pulled out my keg of stout and heard a strange sound when I was moving it. When I opened it, I had about 5 pints remaining in there of slushy beer. after replacing it with another stout keg that I had on deck, it's pouring exactly the way it's supposed to. I swear, I'm my own worst enemy sometimes....anyway, thanks guys!

I ended up getting some thin wall brass tubing from the local hobby shop that my temp. probe slipped into (good fit), cut a section off, crimped one end slightly, then JB Weld epoxy to a quart glass jar filled with water and a lid on it. Placed it in the corner of my keezer on the bottom and it has been real stable on the cycle times too.
 
Will I have not gotten the script to start;

sudo /etc/init.d/flowmon start $ ps aux | grep flow_monitor.py

But pretty sure I got the rest right. In the flowmon there are 3 lines I am concerned whether I got it right or not:

# Change the next 3 lines to suit where you install your script and what you wa$
DIR=/etc/init.d
DAEMON=/var/www/python/flow_monitor.py
DAEMON_NAME=RPFlowMon

In the DIR line I have tried what is there as well as /var/www I am not sure what it should be.
In the DAEMON line that is where the file is actually located.
In the DAEMON_NAME= line I have not modified it but the leading RP looks strange to me.

If I can get past this item I think I will have it running very soon!
Thanks again to all who have helped me getting this up and running.
Mike


The above is from flowmon and if I can get some help on what I have wrong in the above 3 lines (maybe only the first one needs correction), I think I can get my install completed. Sorry about being a noob, but we all have to start somewhere...
This is from step 9 of the install instructions.
Mike
 
Interesting point once I got home this evening. I went and looked at my RPiPints display and it showed beer dispensed yesterday. So it looks like the flowmon script is running in the background, but the feedback CLI did not tell me that all was good. So I dispensed some from each tap to clear lines and to do a flow check and only a keg that ran dry did not show flow,except for the empty tap. So knowing this should I skip portions of the section 9 and complete section 10? Ihave already had enough headaches with partially implemented sections that I do not want to go there again. Starting over is a PITA!
Later
Mke
 
The above is from flowmon and if I can get some help on what I have wrong in the above 3 lines (maybe only the first one needs correction), I think I can get my install completed. Sorry about being a noob, but we all have to start somewhere...
This is from step 9 of the install instructions.
Mike

DIR is the folder that holds flow_monitor.py
DAEMON points to flow_monitor_py inside of DIR
DAEMON_NAME is just a name. You could name it Godzilla ;)


My flow_monitor.py script is located in the /var/www/python folder.
So here are the entries from my /var/www/python/flowmon file:

DIR=/var/www/python
DAEMON=$DIR/flow_monitor.py
DAEMON_NAME=RPFlowMon

Cheers!
 
Interesting point once I got home this evening. I went and looked at my RPiPints display and it showed beer dispensed yesterday. So it looks like the flowmon script is running in the background, but the feedback CLI did not tell me that all was good. So I dispensed some from each tap to clear lines and to do a flow check and only a keg that ran dry did not show flow,except for the empty tap. So knowing this should I skip portions of the section 9 and complete section 10? Ihave already had enough headaches with partially implemented sections that I do not want to go there again. Starting over is a PITA!
Later
Mke

Fwiw, this command will tell you if flowmon is running:

Code:
$ sudo /etc/init.d/flowmon status

This command stop flowmon:

Code:
$ sudo /etc/init.d/flowmon stop

And this command will start flowmon:

Code:
$ sudo /etc/init.d/flowmon start


There's a typo in Step 9: the command to start flowmon is sharing a line with the command to check its process state. It should have been broken into two lines, as below:

$ sudo /etc/init.d/flowmon start
$ ps aux | grep flow_monitor.py


That's dinged a few folks already.

In any case, $ sudo /etc/init.d/flowmon status is a handier command to check the service process state.


Anyway...it sure seems like you're done with Step 9 and most of Step 10.
Time to create a backup of your SD card!

btw, I don't quite get what "and only a keg that ran dry did not show flow,except for the empty tap." means, but I gather whatever it is, it's not a bad thing...

Cheers!
 
Fwiw, this command will tell you if flowmon is running:

Code:
$ sudo /etc/init.d/flowmon status

This command stop flowmon:

Code:
$ sudo /etc/init.d/flowmon stop

And this command will start flowmon:

Code:
$ sudo /etc/init.d/flowmon start


There's a typo in Step 9: the command to start flowmon is sharing a line with the command to check its process state. It should have been broken into two lines, as below:

$ sudo /etc/init.d/flowmon start
$ ps aux | grep flow_monitor.py


That's dinged a few folks already.

In any case, $ sudo /etc/init.d/flowmon status is a handier command to check the service process state.


Anyway...it sure seems like you're done with Step 9 and most of Step 10.
Time to create a backup of your SD card!

btw, I don't quite get what "and only a keg that ran dry did not show flow,except for the empty tap." means, but I gather whatever it is, it's not a bad thing...

Cheers!


day_tripr, you are an ace. Thank you for all of your extra time and support! I just figured out tonight about the typo, Newbie trap that needs to be corrected. I have one tap with no beer on-line yet, and two taps/flow meters are not reporting, debug later. However it looks like I have FINALLY gotten to the end of the initial install using 2.0.1. Thank you many times for the outstanding support I got from the members here.
There seems to be additional recipe items that do not come up in the new beer menu. Is this a future update item or did I not activate in the admin section?
Now to have some fun with my new toyz...
Again Thanks to all who helped me!
Mike
 
[...]I have one tap with no beer on-line yet, and two taps/flow meters are not reporting, debug later.

Just to review, the PIN setting for each TAP has to match your Arduino sketch (raspberrypints.ino) setting for number of taps and the pins used for each, which in turn has to match your wiring between Arduino and meters.

If you find you set the PIN wrong you have to kick the keg, change its status to Conditioning, then tap it again and with the proper PIN setting. The first few times I tapped a keg I kept forgetting to set the PIN or set the wrong number. I think I've finally gotten that part down ;)

fwiw, I can recommend pins 2, 5, 6, 7, 8, 9 for your first six meters - 3 & 4 won't work. mcangeli has used some of the upper pins - I believe he's used 8 through 11. Arduino Pin 13 is used as a "pour indicator" driving the "blink" LED on the AlaMode: if the Arduino "sees" a pour it will blink that light for a few seconds. If someone really needed that pin for a meter it's a minor edit to the ino file to free up that pin

There seems to be additional recipe items that do not come up in the new beer menu. Is this a future update item or did I not activate in the admin section?

Those parameters have been there all along, but they aren't hooked up with the management gui yet.

Cheers! And enjoy the new toy!
 
If you find you set the PIN wrong you have to kick the keg, change its status to Conditioning, then tap it again and with the proper PIN setting. The first few times I tapped a keg I kept forgetting to set the PIN or set the wrong number. I think I've finally gotten that part down ;)

fwiw, I can recommend pins 2, 5, 6, 7, 8, 9 for your first six meters - 3 & 4 won't work. mcangeli has used some of the upper pins - I believe he's used 8 through 11. Arduino Pin 13 is used as a "pour indicator" driving the "blink" LED on the AlaMode: if the Arduino "sees" a pour it will blink that light for a few seconds. If someone really needed that pin for a meter it's a minor edit to the ino file to free up that pin

Cheers! And enjoy the new toy!

Again great inputs! Especially on the pins 3 & 4, I will fix that tonight. Yeah I will probably have to re-assign most of my taps/pins after I update the .ino file and compile/upload. Yes it was tap 3, pin 4, I was having the most trouble with, and I don't remember tap 2, pin 3 as an issue, but will take care of it anyway. It would be nice if the tap/pin assignment was sticky so you don't have to put it in every time, but editable would also be good. I need to start looking around for some durable tags to put my keg number on them, or just get some stencils plus some self etching primer (more permanent).
However I am glad this portion of the build/configure is over! :ban::tank::ban:
 
OK I got the pins moved, updated the .ino file, and saved. It compiles fine but it is not uploading. It says programmer not responding. I have changed nothing else so I am confused again. It still has AlaMode selected and the Serial is still selected. Any recommendations?
Mike
 
You have to stop the flowmon service when you want to reprogram the Arduino, as it ties up the serial port so the IDE gets all pissy.

Code:
$ sudo /etc/init.d/flowmon stop

Cheers!
 
You have to stop the flowmon service when you want to reprogram the Arduino, as it ties up the serial port so the IDE gets all pissy.

Code:
$ sudo /etc/init.d/flowmon stop

Cheers!

AH!! I knew I should have bought the Cliffs Notes...
Thank you again and I will take care of that tonight.
 
OK, still have some issues, and did not have a lot of time this weekend. I added a tap/keg for carbonated water for drinking and testing but it is not registering plus another. So my question is in the ~pints.ino file on the line for declaring the pins used should there be a space after the separation comma or not (2,5,6,7,8,9,10,11 or 2, 5, 6, 7, 8, 9, 10, 11)? The instructions I saw seemed to not have a space.
Thanks in advance.
Mike
 
The space shouldn't matter.

Which pin is the one that the water is on?

I've started working on the code to add the centipede shield which would enable more pins but I haven't sat down and worked on it in depth in a while.
 
Well first let me thank all you people. I read the whole thread and I got a raspberry as a gift for Christmas now i am hooked. I finish V2.0.1 Taplist now I ready to make the leap to the flow meters. So here it goes first is the 800 still the best flow meters to use and if so where do I get them I look at the main site 60 bucks each. Also which is easier uno or alamode. I have a 4 tap keezer if that helps. Thanks again for your help. Oh and I am not a programmer just a good mechanic that can install electronics.
 
The project was built on/around the alamode. You could probably make it work with the uno, but it would probably require some code modification.
The Swiss flow 800 is also the meter that this was built around. I think the eBay seller has them new from $40 each? He was out of the refurbished ones last I heard. You could also try the meters on the adafruit site though you would have to calibrate your system around them.
 
I have a question for those of you tapping partial Kegs; how are you determining your remaining keg volume? By weight? I've got two partials that I'm ready to tap. One cream ale, one smoked porter, plus I need to correct a keg that phantom poured on me last night. Obviously I would like these numbers to be somewhat accurate, so how are you guys doing it? Correct me if I'm wrong but it would seem to me that bigger beers like stouts with a bit higher FG would weigh more per gallon than something like a cream ale would. Is there a math equation out there to determine this that I may have missed? It doesn't seem to me that taking the standard weight of water and subtracting the weight of the keg would be too accurate...Then again I've been wrong on this thread more often than I've been correct. Lol. Thanks you guys.


Sent from my iPhone using Home Brew
 
I have a question for those of you tapping partial Kegs; how are you determining your remaining keg volume? By weight? I've got two partials that I'm ready to tap. One cream ale, one smoked porter, plus I need to correct a keg that phantom poured on me last night. Obviously I would like these numbers to be somewhat accurate, so how are you guys doing it? Correct me if I'm wrong but it would seem to me that bigger beers like stouts with a bit higher FG would weigh more per gallon than something like a cream ale would. Is there a math equation out there to determine this that I may have missed? It doesn't seem to me that taking the standard weight of water and subtracting the weight of the keg would be too accurate...Then again I've been wrong on this thread more often than I've been correct. Lol. Thanks you guys.


Sent from my iPhone using Home Brew

Personally, I have been guessing. Otherwise you can do a little math.

Weight of keg with beer - Weight of empty keg = FG of beer * weight of volume as water
so
(Weight of keg with beer - Weight of empty keg)/FG of beer = (Gallons of beer in keg / 8.34)
since 1 gallon of water is 8.34 pounds

Should work pretty well.
 
Would there be any issue placing the flow meters on the end of my shanks? (if I can find an adapter for this)
Also, where is the best price for the flow meters?
 
Personally, I have been guessing. Otherwise you can do a little math.

Weight of keg with beer - Weight of empty keg = FG of beer * weight of volume as water
so
(Weight of keg with beer - Weight of empty keg)/FG of beer = (Gallons of beer in keg / 8.34)
since 1 gallon of water is 8.34 pounds

Should work pretty well.

I do the math. I actually write a VERY remedial python script to do it. It's close, though I'm not sure how close just yet. I haven't emptied a keg since I installed the meters.
 
Would there be any issue placing the flow meters on the end of my shanks? (if I can find an adapter for this)
Also, where is the best price for the flow meters?

You probably want the flow meters closer to the kegs. The turbulance can cause foaminess if too close to the taps.

I do the math. I actually write a VERY remedial python script to do it. It's close, though I'm not sure how close just yet. I haven't emptied a keg since I installed the meters.

I guessed on one off the top of my head. Weirdly enough the keg kicked within a few fl oz of being spot on. I was amazed and will never manage that good of a guess again.
 
how difficult would it be to make the pir sensor turn on a 12v led strip the same time it turns on the monitor? would this just be a matter of wiring up a circuit to utilize a wallwart, then modifying the alamode code?

any input?
 
The space shouldn't matter.

Which pin is the one that the water is on?

I've started working on the code to add the centipede shield which would enable more pins but I haven't sat down and worked on it in depth in a while.

The water is on pin 10. However now none of the meters are now reporting, and the script is running. I double checked the *.ino file and the pins utilized are 2,5,6,7,8,9,10,11 with the tap count at 8. I re-compiled/loaded then re-booted with no joy. Plus the flowmon status says the script is running. Very lost now.

Update: Very strange. I did a shutdown -h brought the system back up and all are now working. Tap 8 pin 11 is reading very high on the values, like 15 oz. for a 5 oz pour. Just checked and tap 8 pin 11 reads 5 oz. for each 1 oz. poured.
 
Last edited:
how difficult would it be to make the pir sensor turn on a 12v led strip the same time it turns on the monitor? would this just be a matter of wiring up a circuit to utilize a wallwart, then modifying the alamode code?

any input?

Piece o' cake, all you need is that wall wart and an RPi compatible relay and you're in bidness.
I already use gpio 8 to light up an LED for two seconds when the PIR fires as a diagnostic aid.

Code:
#!/usr/bin/env python

import os
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)

cmd = 'xscreensaver-command -deactivate'
playsound = 'mpg321 /home/pi/tada.mp3'

PIR_PIN = 7
STATUS_PIN = 8
GPIO.setup(PIR_PIN, GPIO.IN)
GPIO.setup(STATUS_PIN, GPIO.OUT)

def MOTION(PIR_PIN):
	os.system(cmd)
	GPIO.output(STATUS_PIN,True)
	os.system(playsound)
	GPIO.output(STATUS_PIN,False)

try:
	GPIO.add_event_detect(PIR_PIN, GPIO.RISING, callback=MOTION)
	while 1:
		time.sleep(100)

except KeyboardInterrupt:
	GPIO.cleanup()

GPIO.cleanup()


You'd want to extend the "on time" and configure the PIR sensor for retriggering to keep the lights on as long as someone's around the dispensing appliance.

Adding tower lighting and perhaps even room lighting controls triggered by my PIR code are on my list of projects over the winter...

Cheers!
 
Would there be any issue placing the flow meters on the end of my shanks? (if I can find an adapter for this)
Also, where is the best price for the flow meters?

You could give it a try, but observation leads me to believe the closer you can mount the meters to the beer disconnects the more reliable they'll be. Putting them on the opposite end exposes the meters to any CO2 bubbles that form in the lines during temperature swings - which happens: fans only even out the air, they don't stop cycling. They eventually find their way up to the faucets, and I'm pretty sure as they travel through the meters they can cause false pours.

fwiw, I had my meters smack in the middle of 12 foot runs - they were (and are) nestled in the coils atop the kegs. I was getting random tiny pours and eventually changed the lines to put the meters within a foot of the QDs. Since then I never have even an ounce go missing across six taps.

If you figure out how to make a direct connection to the shanks (there's gotta be a John Guest adapter to do that) it's not like you'd have to trash
the lines if it doesn't work out. You might have to switch out the push-in adapters on the JG fittings, but those are inexpensive...

Cheers!
 
You could give it a try, but observation leads me to believe the closer you can mount the meters to the beer disconnects the more reliable they'll be. Putting them on the opposite end exposes the meters to any CO2 bubbles that form in the lines during temperature swings - which happens: fans only even out the air, they don't stop cycling. They eventually find their way up to the faucets, and I'm pretty sure as they travel through the meters they can cause false pours.

fwiw, I had my meters smack in the middle of 12 foot runs - they were (and are) nestled in the coils atop the kegs. I was getting random tiny pours and eventually changed the lines to put the meters within a foot of the QDs. Since then I never have even an ounce go missing across six taps.

If you figure out how to make a direct connection to the shanks (there's gotta be a John Guest adapter to do that) it's not like you'd have to trash
the lines if it doesn't work out. You might have to switch out the push-in adapters on the JG fittings, but those are inexpensive...

Cheers!

Hmm, now you have me wondering about putting these on the ends of the QD's. I also coil my lines atop my kegs and would thing this ~4" of straight section would mess that up.
 
I can speak first-hand that putting the meters next to your taps is a bad idea. I tried this too and the flowmeters were giving me pours that were about 90% foam. After moving them to about 12 inches from the keg, and about another ten feet of line from the meter to the tap, all problems were solved.


Sent from my iPhone using Home Brew
 
Why are the serving lines so long? Are you guys using 1/4" ID lines? I use 3/16" lines and only have a bit over 4 feet of serving lines? Do the flow meters affect the line length? I wouldn't think so but am curious about any real experience out there.


Sent from my iPhone using Home Brew
 
Back
Top