WELP. I meant to PM you this past weekend. Sorry about that. PMing now!
Underneath the control constants there is a reset eeprom button. Have you tried that?
Once you press it you should have the control constants defaults but you'll have to re-assign the chamber and beer probes etc.
I'm using an ESP8266 setup and what I would try is erasing the flash on the ESP8266 and then try to flash it again, followed by a EEPROM reset. Could you try that on the Arduino?
I have experienced the same as you and a EEPROM reset solved it. However, a bad flash to the ESP8266 and the script would not even start.
Hope you can resolve it.
Thanks alexlark. I have tried that reflashing the arduino and resetting the EEPROM several times to no avail. Everything seems to be functioning otherwise. The only log file showing errors is Fermentrack (Web Application), with many errors that seem to trace back to 'query.py'. I'll see if I can make any sense of the source to track this down.
I reflashed from Fermentrack and also tried moving the OneWire from 3.3V to 5V but no luck yet. In a couple weeks when all my parts come in I'll solder up my board and try a different Temp Probe.
Code:Aug 01 2017 19:58:29 Connection type WiFi selected. Trying TCP serial (WiFi) Aug 01 2017 19:58:29 Connecting to BrewPi esp2691404.local (via 192.168.0.18) on port 23 Aug 01 2017 19:58:36 Successfully connected to controller. Aug 01 2017 19:58:36 Notification: Script started for beer '' Aug 01 2017 19:58:46 Checking software version on controller... Aug 01 2017 19:58:46 Found BrewPi v0.2.4, running commit 00000000, running on an ESP 8266 on port 192.168.0.18:23 Aug 01 2017 19:58:46 BrewPi version received was 0.2.4 which this script supports in 'legacy' branch mode. Aug 01 2017 19:58:46 Bound to TCP socket on port 2070, interface localhost Aug 01 2017 19:58:47 Installed devices received: [] Aug 01 2017 19:58:48 Available devices received: [{"a": "28FFC99863160381", "c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 2, "j": 0.0, "p": 12, "t": 0, "v": 26.188}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 16, "t": 0, "x": 1}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 14, "t": 0, "x": 1}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 13, "t": 0, "x": 1}] Aug 01 2017 19:58:48 Controller debug message: INFO MESSAGE 12: Received new setting: tempFormat = F Aug 01 2017 20:04:58 Received applyDevice request, updating to: {"a": "28FFC99863160381", "c": 1, "b": 1, "f": 9, "i": 0, "h": 2, "j": 0.0, "p": 12} Aug 01 2017 20:05:03 Device updated to: {"i":0,"t":0,"c":39,"b":0,"f":-120,"h":1,"d":33,"p":-86,"x":41} Aug 01 2017 20:05:03 Controller debug message: ERROR 8: Cannot assign device type 0 to hardware 2 Aug 01 2017 20:05:03 Installed devices received: [] Aug 01 2017 20:05:03 Controller debug message: ERROR 3: Device definition update specification is invalid Aug 01 2017 20:05:03 Available devices received: [{"a": "28FFC99863160381", "c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 2, "j": 0.0, "p": 12, "t": 0, "v": 79.586}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 16, "t": 0, "x": 1}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 14, "t": 0, "x": 1}, {"c": 1, "b": 0, "d": 0, "f": 0, "i": -1, "h": 1, "p": 13, "t": 0, "x": 1}]
Scratch this. I got it working.
At first I had the ESP8266 flashed from Windows. Looks like that was broken.
After reflash from Fermentrack, still same error. But an EEPROM reset, this time (before the reflash was to no avail), got the sensor working.
@Thorrak , thank you for this great work!
I got an error trying to remove a controller, looks like the method expects a gravity hook up also. I will post the log in another post.
Hello @Bum Fudge . Did you find a solution for this? Or was it bad hardware issue?
I got the exact same problem, but using a generic ESP-12f board.
Nice! Let me know how it goes. I've got two running at the moment, and the only issue I've encountered is the issue with WiFi not always reconnecting if the network disappears. It's on the list - I just need to get some time to fix it.
Not to pester, but did want to let you know it appears I'm affected by this. My symptom isn't quite the same but I'm guessing the fix will solve that problem as well as mine. My issue appears to be my mesh wifi network (Google Wifi). I have two routers and the ESP8266 is sitting in between the two. My suspicion is that when the ESP8266 is supposed to switch from one router to another it fails to reconnect. Unfortunately with Google Wifi you don't necessarily get a lot in the way of logs, so I attempted to confirm by unplugging one router for several hours (much longer than the ESP8266 ever managed to stay connected). With one router disconnected it's staying connected like it's meant to. I think that's the best I can do, but if there's anything else I can do to help resolve the issue, or if I'm way off base and this fix won't help me, then please let me know.
Just curious-What version of thorraks board do you have? I know on the SMD version it uses a 10k for the pull up resistor.Swapped the vcc lead to 5v and I'm still getting the issue. Arghhhh!
All of the circuits I have seen that use ds18b20 temperature sensors call for 4.7k. I just thought it was unusual that the SMD board uses a 10k. I don't think that's your problem. I would start by disconnecting the relays and feed separate 5v power to the PCB from a wall wart. There might be some type of power drop when the relays kick in. Set the tempt. in the program, so the relays never fire and see what happens.I don't know enough about this stuff to make an educated guess.Break everything out to a breadboard and see if you can get it to work without the PCBI'm using the version with the through hole components, with the RJ11 Jack. I assumed it was supposed to be a 4.7k resistor because that's what the probes call for. Would a 10k resistor fix this problem?
For example, in the kitchen, I can run for an hour or more without a dropout.
EDIT: So I've duplicated the errors in my kitchen and on different branch circuits in the garage.
Just curious-What version of thorraks board do you have? I know on the SMD version it uses a 10k for the pull up resistor.
I'm not using an RJ11 cable. I bought sensors with the 200cm long cables. I soldered mini XLR jacks on the ends. Inside of my box, I daisy chained the XLR jacks to each other, and then soldered DuPont connectors on the last XLR jack. The DuPont connectors go straight to the Wemos Mini pins.If you're having issues, lower is better in this case. I only used 10k because that's what I had in my test build and knew it worked for me. 4.7k should work fine, but you could possibly go even lower if you're having issues.
@CadiBrewer - How long is the RJ-11 cable you have running to the sensor board/sensors?
I appreciate the help. The sensors drop off even when the controller is in off mode and the relays aren't firing. I'll try separate power to the board with a wall wart.All of the circuits I have seen that use ds18b20 temperature sensors call for 4.7k. I just thought it was unusual that the SMD board uses a 10k. I don't think that's your problem. I would start by disconnecting the relays and feed separate 5v power to the PCB from a wall wart. There might be some type of power drop when the relays kick in. Set the tempt. in the program, so the relays never fire and see what happens.I don't know enough about this stuff to make an educated guess.Break everything out to a breadboard and see if you can get it to work without the PCB
I'm not using an RJ11 cable. I bought sensors with the 200cm long cables. I soldered mini XLR jacks on the ends. Inside of my box, I daisy chained the XLR jacks to each other, and then soldered DuPont connectors on the last XLR jack. The DuPont connectors go straight to the Wemos Mini pins.
Last night, to eliminate wiring issues with the XLR jacks, I cut them off and spliced and tinned all of the leads together with DuPont connectors. You can see that version in the pictures I posted. It didn't eliminate the problem.
Won it in a contest. Complete overkill for home brewing, but it’s an amazing piece of kit. Highly recommended.Where’d you get the Anton Paar?
I appreciate the help. The sensors drop off even when the controller is in off mode and the relays aren't firing. I'll try separate power to the board with a wall wart.
Ultimately this sounds like a hardware issue.
Are you running your probes through a door/door gasket of a fermentation chamber by chance? I have seen these cheap probes have issues like you describe under light crimping. I've also seen this come up for those use CAT5/6 cable for their probes, as the solid core wire doesn't take tight bends and movement well.
But I've taken the knots out of the cables and fired things back up. I'm still getting dropouts, on the order of every minute or two instead of every 15 seconds or so. There are no kinks in the cables, but do you think that once kinked, they may be kaput? On another box, I've never knotted the cable and only put the cables under the keezer lid. The cables are no longer under the keezer lid and are run through a hole in my keezer collar with no kinks. I'm getting drops on that one, too.
Ya if a conductor has been broken or damaged due to bending - which seems likely, knotting is pretty extreme - bending back may provide temporary connection, but can not undo the damage... leading to the intermittent issues you describe. Changes in temperature can affect flexibility of cable as well, which may be enough to explain why the issue seems to be environment specific.
crosses fingersDid anyone try to compile a firmware version of Thorrak's with oled instend of lcd?