Keg Cop: Keg Monitoring and Control

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

tomakana

Well-Known Member
Joined
Jun 20, 2017
Messages
69
Reaction score
19
Location
Southeastern PA
That looks like a JST-XH connector on the cable, and that's what my 6-way breakout board is designed to use--but it looks like I may have the pins in the incorrect order to just plug it in and have it work.
So for what it's worth, the kit I ordered to get JST-XH female connectors for this was not correct. The connectors I got are too large. Could be the connectors aren't correct, but they seemed reputable. I'm going to email Swissflow and ask them specifically.
 

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,351
Reaction score
2,196
Location
New York, NY
So for what it's worth, the kit I ordered to get JST-XH female connectors for this was not correct. The connectors I got are too large. Could be the connectors aren't correct, but they seemed reputable. I'm going to email Swissflow and ask them specifically.
I linked the connectors you need here:

I had the exact same question @tomakana so I designed the following board:

View attachment 779803

Eagle files are attached.

The problem with this board is that I designed it with this specific Molex connector in mind which seems to be tagged as obsolete. DigiKey claims that this connector is a potential replacement -- I don't own it to compare and thus can't say either way, but it might be worth a shot if you want to take the risk!
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas

I am pleased to announce:

Keg Cop Feature Release 1.2.0 Beta 1

I can't honestly remember what all I've done, but GitHub has kept a record of my branches:

What's Changed​

Full Changelog: 1.1.1...1.2.0-Beta.1

You can update via the BrewFlasher app or via the web here: Keg Cop Beta 1.2.0-Beta.1

You can update via the UI if you have version 1.1.0+, but you cannot update via the UI if you are still on 1.0.0. If this is a show-stopper for you, I will post instructions on exporting/importing your config before this goes GA.

If you have time to test-drive this, your time makes it better for everyone!
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
One strange thing I noticed that John is trying to tell me is a feature: When you flash with BrewFlasher Web, the "demo data" doesn't come over. If that's an issue for you, use the BrewFlasher App.
 

tomakana

Well-Known Member
Joined
Jun 20, 2017
Messages
69
Reaction score
19
Location
Southeastern PA
I linked the connectors you need here:
Right - Swissflow confirmed that they're Molex connectors, and from everything I've found, @Thorrak is correct that the wire-to-board connectors are obsolete (at least from Molex) and basically unavailable anyplace I've checked. The challenge I'm having now is that I'm trying to extend the wires so the the breakout boards aren't very close to the actual flow meters, so I've been trying to find a wire-to-wire socket that work, with no luck so far. The linked connector does look like it'll work, but only if I want to plug the short wires from the flow meters directly into a board.

Since I'm still waiting for the parts I ordered from Mouser (last time I pick the free economy shipping), I'm probably going to just remove the molex crimps and install new connectors so I can do the extension.

Thanks for the help.
 

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,351
Reaction score
2,196
Location
New York, NY
Right - Swissflow confirmed that they're Molex connectors, and from everything I've found, @Thorrak is correct that the wire-to-board connectors are obsolete (at least from Molex) and basically unavailable anyplace I've checked. The challenge I'm having now is that I'm trying to extend the wires so the the breakout boards aren't very close to the actual flow meters, so I've been trying to find a wire-to-wire socket that work, with no luck so far. The linked connector does look like it'll work, but only if I want to plug the short wires from the flow meters directly into a board.

Since I'm still waiting for the parts I ordered from Mouser (last time I pick the free economy shipping), I'm probably going to just remove the molex crimps and install new connectors so I can do the extension.

Thanks for the help.

I just ordered the TC connector I linked to see if it might works as an alternative. Judging from the diagrams the answer appears like it will be no, but we'll see.
 

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,351
Reaction score
2,196
Location
New York, NY
I just ordered the TC connector I linked to see if it might works as an alternative. Judging from the diagrams the answer appears like it will be no, but we'll see.
Unfortunately, I was right - the TC connector doesn’t work. You might be able to remove the shrouding and fudge it, but that’s probably not worth it.
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
Okay: Updated Keg Cop Beta to 1.2.0-Beta.2 (probably the last Beta before release.)

This Beta release supports KegScreen TV! If you missed the teaser back in post #309, here's what it looks like (yes that's a TV, not a monitor):

1663539419262.png


If you are not on the mailing list, here's the (Beta) release notice:

@thorrak said:

Announcing KegScreen TV​

I've never been a fan of the classic "kiosk" mode for displaying digital taplists, and wanted to come up with a better way. After quite a bit of work, I think I've finally figured it out.

Now announcing KegScreen TV. The simple way to go from KegScreen to your TV.
2ea912a3-f5a2-90bc-4c28-0d8394b22b5d.png

Bridge the final three feet​

KegScreen presents your tap list as a web page that can be displayed on the device of your choosing -- but if that device is a TV, that normally means keeping your Raspberry Pi within one cable-length of your television.
That doesn't sound pleasant, so instead I've come up with an easier way:
KegScreen TV
75153417-db6d-cb29-29b3-0c9cbe95e357.png

Designed for Android TV​

KegScreen TV is an Android TV app which automatically discovers KegScreen installations and displays your Tap List on a TV.

Easily locate your KegScreen installation, connect it to the app, and display your digital tap list in seconds.
5f1e37b3-d5a8-df68-5cf7-793c22e77af4.png

Works on Fire TV too​

Prefer Amazon to Google? KegScreen TV also works with FireTV devices, and will soon be available in the FireTV app store.
53d43116-51c0-27d9-b974-0dcb73f2b95d.png

Watch your Keg (Cop)​

Keg Cop was designed for KegScreen, and KegScreen TV works with Keg Cop. Automatically detect Keg Cop devices on your local network and display them with KegScreen TV. No KegScreen required.
The best part? It's available today.
c573f0df-d0a9-03f7-15ef-fea6054689d4.png

Open Beta via Google Play​

Interested in testing KegScreen TV today? Sign up here for the Open Beta, and then follow the instructions at the KSTV Issue Tracker on GitHub.

So, about KegScreen​

Yes, I know, KegScreen TV is being released ahead of KegScreen. Providing a good user experience is one of the key goals I have for KegScreen, and bridging the "final three feet" is a big part of that. Although you can't use KSTV yet with KegScreen, the latest release of Keg Cop (supported in version 1.2.0-Beta.1 and above) supports it out of the box. Once KegScreen is released, KSTV will be available on day one.

Questions? Comments?​

KegScreen TV is currently in open beta, but an invite may be required to install it on your device. More information can be found at the KegScreen TV Issue Tracker on GitHub.
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
And, it's ready.

Keg Cop Feature Release 1.2.0!

Features in this release:
  • Add tower fan thermostatic control (uses solenoid pin)
  • Supports KegScreen TV!
  • Themes! Well, two for now, Cerulean (original/light) and Superhero (dark). These are selectable in the settings.
  • Split OTA - 1.0.0 users can still use the OTA to re-flash if needed, 1.1.0 and above use a new source. Upgrades from 1.0.0 to 1.1.1 or 1.2.0 need to be done with BrewFlasher (I recommend BrewFlasher app, not online for now. Sometimes the online one will clear the demo taps. If this is not an issue, go ahead and use it.)
  • Bulk load of settings is possible. This will facilitate an upgrade path from 1.0.0 to 1.2.0+ without losing settings. This path lacks documentation, but the basic documentation for the uploader exists in the online docs.
  • Possible breaking change: POST/PUT to configuration and action pages require a secret. This is done to prevent random resets and system clears because of some home security scanning software.
  • A 6-way meter breakout is included (thanks @danb35!)
  • There are some other changes intended to assist developers, contact me if you would like to hear about these, especially related to theme development.

If you would like to use BrewFlasher Web (with the caveat above) use this link. If you need the app, get it here.

Commit Summary​

  • 0ffcef9 Sync password with json #95 (#96)
  • 34e852d Use reset when setting cal (#100)
  • fa2a6e6 Addresses #98 (#101)
  • a69f583 Feature 86 (#104)
  • 4db006f New graphics (#105)
  • 514fa19 Add tower fan thermostat (#107)
  • 7ec9183 Cleanup
  • 82f26c4 Debug links (#108)
  • e01c602 Add spinning icon (#109)
  • 445cbac Update some of the rewrites (#110)
  • f97b472 Provide proper URL in OTA (#111)
  • 511e4d3 Fix ota (#112)
  • 54e2820 Make sure rando clicks do not register (#113)
  • e8b93c8 Fix links when using dataHost (again)
  • f021552 Update todo list
  • be86d65 Add secret checks to significant PUTs (#114)
  • 901a4a2 Kill drd (#115)
  • 595c4e5 Cleaner resets (#116)
  • 02ace37 Cleanup and normalize config flow (#117)
  • 623c515 Fix hostname redirect (#118)
  • 3ad75b5 Swap theme (#119)
  • c6986c7 Ks tv (#120)
  • 6afd84a Better KS-TV (#121)
  • f357531 Fix mDNS records/port (#122)
  • 852702a Theme persist (#123)
  • faf93ec Add an online report pause when wifi is lost (#124)
  • 8f464ed Reduce KegScreen serial logging (#125)
  • e385103 Bad update flag (#126)
  • 675f9d5 Fix index bar click (dataHost) (#127)
  • 0fae20d Fix 404 error page links (#128)
  • d5ac7e7 Re-format About page (#129)
  • a1d9ac0 Reduce POST iterations (#130)
  • dded80f Bulk load (#131)
  • a41f68b Fix API docs (#132)
  • 1a8ad02 Move secret to a header (#133)
  • 28ba5fe Fix alert bars (#134)
  • 5dcbc9f Enable menu change on sensor change (#135)
  • aa023b9 Version bump
  • 3736c04 Cleanup debug (#136)
  • f71d86d Kstv json (#137)
  • fa77094 Don't need string (#138)
  • df65dd4 Filesystem stability (#139)
  • f5c5b5a Filesystem stability (#140)
  • 4e968b4 Hide page when theme changes (#141)
  • c51fc93 Update TODO
  • 271629b Version update (#142)
  • aef3f75 Merge pull request #143 from lbussy/feature1.2
See full list of files changed and other notes on the release page since I apparently made too mang changes for the forum software to allow me to list then here.
 
Last edited:

rkhanso

Well-Known Member
Joined
Jan 24, 2017
Messages
691
Reaction score
163
Location
Plymouth, MN - terrible tap water for brewing
I've had trouble with the 1.2.0-alpha versions with the ESP crashing and clearing the temp sensors. Web page loads for the Setup page were super slow or didn't load at all. I can run 1.1.1 with no trouble at all. I'd like to use the 1.2.0 version to get the tower fan control.

If I use BrewFlasher, it does show 1.2.0 as an option. But on the Keg Cop 1.1.1 version GUI update page, it seems to still want to update to an Alpha version.
1667229761913.png
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
If I use BrewFlasher, it does show 1.2.0 as an option. But on the Keg Cop 1.1.1 version GUI update page, it seems to still want to update to an Alpha version.

If you restart the controller and shift-refresh the Update Firmware page you should see the 1.2.0 (non-alpha) version.
 

rkhanso

Well-Known Member
Joined
Jan 24, 2017
Messages
691
Reaction score
163
Location
Plymouth, MN - terrible tap water for brewing
I did as you suggested. It then gave the option to update to 1.2.0.
I updated the firmware and afterwards saw: Settings Error: Settings update failed. The firmware was at 1.2.0, but the filesystem was at 1.1.1.
I updated again to 1.2.0 and still the same. Additionally, I lost all of the config that was previously set. Sensors, Control, Controller.
1667245147269.png
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
There might be enough of a difference between 1.1.1 (the version you tried anyway) and 1.2.0 that it was not possible. I did test that upgrade but we also had you on all sorts of different versions initially.

Try BrewFlasher. This will not retain your settings but you may be able to hack it: Open the Settings page and then in another tab use BrewFlasher (or the stand-alone version) to flash 1.2.0. When you are done and it's connected (it will wipe WiFi) and running, go back to the tab you left open. Go to each setting sub-page and hit "submit." That should overwrite what you have in the controller with what the browser remembers.
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
My controller just doesn't like the 1.2 versions of firmware. It's not fully loading any of the web pages when on 1.2.
It runs perfect on 1.1. I'll stick with 1.1 and just not have the tower fan control.
I just went through the end user process to use BrewFlasher Web to flash 1.2.0 on a controller with nine flowmeters and five temp sensors. It works perfectly, load every page with no issues.

I'm not sure what issues you are having, but I cannot diagnose them for you remotely. You will need to rule out the three parts of your local configuration to determine where the challenge is:
  • My first suggestion would be to remove the controller from the PCB and see if you still have the issue with no sensors at all. Power it from your computer and view the console log via serial. See what happens. If it works like that, you know it's a hardware issue.
  • To rule out your browser I would use a different browser in safe/private mode with zero plugins. Additionally, viewing the developer console's network connections tab will allow you to line up requests with what you see in the console. Some browsers will limit the number of simultaneous connections to two per named host - that would negatively impact things. I use Firefox for testing.
  • To rule out the network, just use a cheap Netgear wireless router and see if that allows proper operation. If it does, there's a local configuration blocking things.
I am running this code on my kegerator and published board design. It's as frustrating to me as it is to you because there's just no reason I can find that I can address to cause your issues.
 

rkhanso

Well-Known Member
Joined
Jan 24, 2017
Messages
691
Reaction score
163
Location
Plymouth, MN - terrible tap water for brewing
I had the trouble even when the ESP was not connected to my PCB and no temp sensors or flow meter were connected. Just connected on its own to the PC powering it. I had the same problem whether using Brave (offshoot of Chrome) or Edge browser. I didn't do anymore testing and just went back to version 1.1.1, which has been working great for a week. Living without the on/off of the tower fan and just left it run all the time.
 
OP
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,903
Reaction score
1,694
Location
Rural Kansas
I had the trouble even when the ESP was not connected to my PCB and no temp sensors or flow meter were connected. Just connected on its own to the PC powering it.
I’m not sure I am getting my suggestion across. Remove it from the PCB upon which it is currently mounted. Power it from your PC via a USB cable and log the serial output.

Next, I suggested, making sure you are using safe or private mode, with no plug-ins enabled. Use Firefox to rule out any configurations you may have.

Next, use it on a separate network from the ubiquity network you have now.

You must do something different if you want a different result. All I can tell you is it works fine here which is not much of a solution, but helping me to rule out the unique physical configuration there will help.
 

rkhanso

Well-Known Member
Joined
Jan 24, 2017
Messages
691
Reaction score
163
Location
Plymouth, MN - terrible tap water for brewing
I've followed all your directions with no success or change in function. I followed all except I wasn't able to decipher the Firefox output or the serial output either and didn't save it for review. Yeah, probably the most important part.

It's OK - I've switched back to version 1.1.1 and am OK with staying there for now.
It's running perfect with the ESP32 on Keg Cop version 1.1.1 and 3 temp sensors and the flow-meter connected to my homemade PCB and on my Unifi home network. I need to get back to brewing more beer and less DIY hardware type stuff.

My heart isn't into the troubleshooting the keg controller anymore just to get the tower fan control working. I'm building two WiFi thermostats for my daughter. One is finished and working. I need to get the other one done and get them installed before it gets colder here. Then I can brew more beer.
 
Top