I would, but apparently someone farted.Could everyone take a deep breath, por favor?
I would, but apparently someone farted.Could everyone take a deep breath, por favor?
I really wouldn't know. I'm seriously a noob on Linux and Arduino stuff. Now if we were doing it in assembler on a ZiLog Z80 processor, I might know what was going on. Thanks to all the help I've gotten here, my almost 70 year old brain got this far. It's the standard RandR+ install and I uploaded the script using IDE. Is there a way to see if two processes are going on?Is it possible to have two scripts running?
Try this:Is there a way to see if two processes are going on?
ps -ef | grep "python" | grep -v "grep"
My favorite instruction was "polcat". Silly Texas Instruments guys.Now if we were doing it in assembler on a ZiLog Z80 processor, I might know what was going on.
Try this:
It should show everything running under Python.Code:ps -ef | grep "python" | grep -v "grep"
My favorite instruction was "polcat". Silly Texas Instruments guys.![]()
Thanks! Hardware RPi3, USB to Arduino Uno3 two sensors on pin 4 and 6. Software RandR+ standard build. Pour message Delay = 5000, Pour Trigger Count=200, Kick Trigger Count=30, Update Trigger Count=250, Taps=8. Refresh listeners Auto. Volume dispensed 16oz. Down at the bottom you will see two pours adding up to 16oz.If you can enumerate the conditions I can try them out on my backup system.
I have never seen it happen, but I don't remember pouring more than 20 ounces in one shot (I don't do growlers, for instance)...
Cheers!
void loop() {
nowTime = millis();
pollPins();
if ( (nowTime - lastPourTime) > pourMsgDelay && lastPourTime > 0) {
//only send pour messages after all taps have stopped pulsing for a short period
//use lastPourTime=0 to ensure this code doesn't get run constantly
lastPourTime = 0;
checkPours();
checkKicks();
}
}
Hi, I've checked my flow meters and all work and pours are registered when i use pins 8 and 9 but not 10,11 and 12 any reason for this? I have set 4 taps up and checked counts per liter are the same. Should i solder pin in 6 and 7 instead?
Ive trying to suppress these as much as I can but really this error is when you close the raspberry pints webpage and then do a pour because the webpage connects to the python to know when it should refresh after a pour.broken pipe error code.
Ive trying to suppress these as much as I can but really this error is when you close the raspberry pints webpage and then do a pour because the webpage connects to the python to know when it should refresh after a pour.
The double pour would happen if the flow meter stopped sending the pulses to the Arduino or if there is a bug in the code which I haven't found yet. is it always the same amounts or does it appear random amounts?
Cheers mate, see my questions above? Not sure on a couple of them?//number of milliseconds to wait after pour before sending message
unsigned int pourMsgDelay = 300; Why does there need to be a delay?
// the number of counts until a pour starts (used to filter small flukes)
unsigned int pourTriggerValue = 10;
// the number of counts in the same time slice which are considered a kick Whats a kick? Isnt that when the keg is empty? How does this work?
unsigned int kickTriggerValue = 30;
// the number of counts when a pour update will be send out What does this mean exactly?
unsigned int updateTriggerValue = 200;
Ahh ok thanks for the explanation on all of this. So when you say 2 processors do you mean the pi and the arduino? Im still waiting to get my arduino but is this the procedure to get it all up and running.When a keg is kicked there is a blast of co2 and the pulse count speeds up. The code use that value to try and find that condition. Might be an attempt to disable a tap, not sure.
Message delay would help throttle messages and give time to be processed.
Not sure on the updateTriggerValue, but looks to be used to determine if enough pulses have happen to send a message.
I think some of the code is to handle multiple taps being used at once and possibly for future enhancements. You also have two independent processors running so there needs to be some sort of handshaking.
Some of those values where buried in the Arduino code, but where lifted up to keep the Arduino code from needing to be modified.
Ahh ok thanks for the explanation on all of this. So when you say 2 processors do you mean the pi and the arduino? Im still waiting to get my arduino but is this the procedure to get it all up and running.
1. Connect the Arduino uno to the pi via usb?
2. Connect the flow meters to power and the signal wire to the GPIO pins on the arduino?
3. Go into the settings page and set it all up accordingly?
Cheers mate. Will give thata crack once I get everything.Yes, processors is the pi and Arduino. Maybe Single Board Computers or something along that line might be a better word.
Yes, your steps seem right. Not sure though if you need to rerun the install script after step 2 or if the rpints will discover the Arduino on it's own. If you see the parameters in the setup page already it seems like you should not have to rerun the install script.
A bit of additional info. In the RandR+ version you can change these in the Taps -> Settings menu to configure them easily.Cheers mate, see my questions above? Not sure on a couple of them?
Yeah thats my issue, trying to find something local or on ebay. Might try ali expressIt has been said on HBT that 1/2" NPS (straight pipe thread) and 1/2" BSPP (also straight threading) are close enough to mate tight.
If that's true (and if you look at the comparison table here https://www.valvesonline.com.au/references/threads/ it provides some support) then:
John Guest PI451014FS 1/2" FPS - 5/16" OD tubing should work
fwiw, I've picked up numerous PTC fittings from Fresh Water Systems over the years and they have that part in stock...
https://www.freshwatersystems.com/products/john-guest-female-adapter-bspp-5-16-x-1-2-bspp
The whole Aussie thing might render that non-viable, I guess
Cheers!
I definitely didn't mean to raise it to 5 seconds for pouring delay because it is excessive. I checked and it looks like its still defaults to 300....300 milliseconds to 5 seconds
Yah, I just changed it that high to see if it would affect my double pour issue. It did not. On another note, now I'm trying to get the taps in two columns. It worked great on my old setup, but of course that index.php file doesn't work with your version changes. I've been trying to work with your window.onload function around line 236 and not having any luck. Do you have any words of wisdom on that issue? Thanks again for all your help. DM me your snail mail addy and I'll send a case of Pliney your way.I definitely didn't mean to raise it to 5 seconds for pouring delay because it is excessive. I checked and it looks like its still defaults to 300....
Unos are dirt cheap if you have a spare USB. Might be time to replace it. I seem to recall it needing power directly to operate properly.Hmm, is it possible to frazzle the alamode board just by trying to remove some pins so i can move them elsewhere :/
After moving some i don't use to pins 6 and 7 my alamode no longer works when i plug the power in, only when i plug it into the pi![]()
Hmm, is it possible to frazzle the alamode board just by trying to remove some pins so i can move them elsewhere :/
After moving some i don't use to pins 6 and 7 my alamode no longer works when i plug the power in, only when i plug it into the pi![]()
Are you trying to switch from rows to columns? If so there is a option for that, just change it to Yes and the taps will display in columns.On another note, now I'm trying to get the taps in two columns
.Are you trying to switch from rows to columns? If so there is a option for that, just change it to Yes and the taps will display in columns.
Nope, checked that. Didn't hear any frazzling either but maybe the board got too hot and screwed somethingThere is a 3-pin jumper header on the Alamode next to the SD card socket that selects between "powered by RPi" or powered by its own microUSB receptacle. Did you knock that loose?
Cheers!