Native ESP8266 BrewPi Firmware - WiFi BrewPi, no Arduino needed!

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

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

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
@LBussy This was my idea for the AIO board. Pretty much got it built just going over some design ideas and I'll probably change it from 12v to 5v or leave it and remove the buck 3a.
You've got high voltage on the board now - why not just put the power supply on there?

Also, since you're going to the trouble to make a board, you can roll your own level converter instead of using the SparkFun-ish daughterboard:

upload_2019-7-23_18-7-54.png


I'd probably also suggest avoiding SMD's as they are tougher for a lot of folks to work with and really offer no advantages here - you've got more than enough room.
 
Not the temp. probes but the relays you want to set to inverted
Oh okay yep I meant the relays. Thanks heaps to everyone for your help.
At least Im not the guy in Sydney who drove a van into 2 parked police cars and when they caught him he had $250M worth of Ice in the back. :no:

He had one job and now hes no doubt a dead man.
 
Thanks gents for all your help. Switched the pins over on the board and changed the relays to inverted and all is working fine now. In idle mode the relays are both off now instead of on.

Thanks again.
 
Thanks gents for all your help. Switched the pins over on the board and changed the relays to inverted and all is working fine now. In idle mode the relays are both off now instead of on.
Thank you! By doing two things backwards you found a new and interesting way to generate confusion. :D

Honestly, it was one of those things where I was in the shower and thought "that's it!" ..... and then I logged on to see @day_trippr beat me to the bunch. Gotta get up early I tell ya!
 
How does this look? Moved some things around and added your idea for the Logic level converter.
That looks good to me without seeing the schematic of course. It's hard to find a glamourous way to route the traces for that logic shifter, isn't it?

So just musing here, not trying to be critical, I am thinking about the actual application in situ:
  • Your high voltage is right next to the low voltage. It's not hard to imagine that going wrong. In the US that would not meet code in most jurisdictions. We're not necessarily constrained by that, but if it ever caused a fire it would be easy for insurance to deny a claim.
  • Imagining a case around this, all of the low voltage should be on one side and high voltage on the other. It's a crapshoot whether you put the power supply on the "back" side to facilitate a power supply internal to the case, or on the same side as the other low voltage. The USB connection should be on the low voltage side for sure in the case of someone using a serial connection or USB power.
  • An airgap around the high voltage area would be a very cheap bit of insurance. Who knows about the dielectric strength of the solder mask coming from a random manufacturing shop in China.
  • Having the RJ45 for a breakout is VERY handy, you've probably got more than enough room for that too.
Like I said, not intending to be critical. Well, I guess technically this is the definition of "critical" but I'm just trying to help you improve it. :)
 
That looks good to me without seeing the schematic of course. It's hard to find a glamourous way to route the traces for that logic shifter, isn't it?

So just musing here, not trying to be critical, I am thinking about the actual application in situ:
  • Your high voltage is right next to the low voltage. It's not hard to imagine that going wrong. In the US that would not meet code in most jurisdictions. We're not necessarily constrained by that, but if it ever caused a fire it would be easy for insurance to deny a claim.
  • Imagining a case around this, all of the low voltage should be on one side and high voltage on the other. It's a crapshoot whether you put the power supply on the "back" side to facilitate a power supply internal to the case, or on the same side as the other low voltage. The USB connection should be on the low voltage side for sure in the case of someone using a serial connection or USB power.
  • An airgap around the high voltage area would be a very cheap bit of insurance. Who knows about the dielectric strength of the solder mask coming from a random manufacturing shop in China.
  • Having the RJ45 for a breakout is VERY handy, you've probably got more than enough room for that too.
Like I said, not intending to be critical. Well, I guess technically this is the definition of "critical" but I'm just trying to help you improve it. :)

Being critical when dealing with electricity is a good thing and awesome catch on the 5V / 3.3V!! Oh my god Yes trying to route the traces for the logical shifter was "fun"!! Here's an update after the changes and yes I will be sharing the gerbers for this project once it's tested.

BrewPi.JPG
 
This esp8266 is doing my head in. I flashed the esp and configured it for my WiFi. But then no matter how I double/triple tap the rest button i can not get the ESP AP to start so i can configure it. Is there some magic button press that needs to be done?
 
Need help with a second esp8266 controller. I have a working controller and tested the build with that working esp8266 and everything worked perfectly.

Upfront I must admit I started this second one about 6 months ago and am not sure where I left off with it.

When it boots it runs through the test software that checks the sensors and turns on cooling/heating relays and such and completes with Done with tests. It says the device address is 27 during the test as well. So I obviously flashed this at some point in the past to even be able to run the tests such as that.

I cannot connect to the board in anyway to flash the board at all again, have tried a usb connector to a computer, tried to connect to its wifi but the captive portal does not appear. I have tried the reset button on it as well but that also does not seem to reset the WiFi AP.

I am sure I am missing something obvious here, any help is greatly appreciated. Until then I will keep looking through this and other posts on the subject.

Thanks,
Jeff
 
I cannot connect to the board in anyway to flash the board at all again, have tried a usb connector to a computer, tried to connect to its wifi but the captive portal does not appear. I have tried the reset button on it as well but that also does not seem to reset the WiFi AP.

Thanks,
Jeff

I would try a different USB cable. Some USB cables are for charging only. You need one that is for charging and data. I would check that first.
 
Need help with a second esp8266 controller. I have a working controller and tested the build with that working esp8266 and everything worked perfectly.

Upfront I must admit I started this second one about 6 months ago and am not sure where I left off with it.

When it boots it runs through the test software that checks the sensors and turns on cooling/heating relays and such and completes with Done with tests. It says the device address is 27 during the test as well. So I obviously flashed this at some point in the past to even be able to run the tests such as that.

I cannot connect to the board in anyway to flash the board at all again, have tried a usb connector to a computer, tried to connect to its wifi but the captive portal does not appear. I have tried the reset button on it as well but that also does not seem to reset the WiFi AP.

I am sure I am missing something obvious here, any help is greatly appreciated. Until then I will keep looking through this and other posts on the subject.

Thanks,
Jeff

There is a reset firmware on the github, download all of them - run them all, reset the esp between each flash, in the end it should be "blank"
 
Thanks garzlok and stbernts. Both ideas worked and I was able to get it reset and communicating with it. Doing a test on it now and hopefully will have second wireless box up and running.

Jeff
 
I have worked with the other authors/developers/maintainers and have developed a comparison document between the various BrewPi variants. Here it is - errors are mine.

Seems iSpindel is missing on the feature list for Fermentrack on that site.



  • Key Description/Difference from BrewPi:

    • Adheres to the spirit/look/feel of the original BrewPi

    • Updated for current versions of Python and PHP

    • Tools rewritten for a streamlined/one script install

    • Multi-chamber support

    • Bluetooth and WiFi capable

    • Tilt support
 
Hello! I'm new here. I got a raspberry pi and installed Fermentrack on the latest Raspbian. I had trouble getting my Tilt to connect, as it says Bluetooth wasn't setup. I think this was a few things:

pybluez failed to compile:
bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: No such file or directory
#include <bluetooth/bluetooth.h>
^~~~~~~~~~~~~~~~~~~~~~~

So, I installed the dev version of libbluetooth:

sudo apt-get install libbluetooth-dev

That got it to compile, but I was still having trouble adding the Tilt. I did this step cribbed from the install notes and that seemed to get me going:

sudo setcap cap_net_raw+eip /home/fermentrack/venv/bin/python

...but I think the main problem was the compile error failing earlier in the process.

Any thoughts about updating the install script to install libbluetooth-dev?

Is this thread the best place to post questions, comments and ideas?

I'm thinking about playing around with the source, but I don't know python. I'd like to add support for calculating the ABV, and % attenuation. Maybe relay to a Google spreadsheet.

-corbin
 
Screen Shot 2019-09-16 at 12.56.13 PM.png




So far, this is what I've added to my fork. I use the Dygraph to figure out the min/max of stuff, and do some simple calculations. I'm super new to python and javascript, so I'm a bit slow, but it is now showing me the info I want to see.

Current ABV is based off the sensor's current gravity reading (lowest) and the highest value it ever reached. I don't have a lot of data yet for this test beer (it is almost done fermenting), but it will probably be better to average the highest for a short period at the start of fermentation.

Max ABV is based off the max/min values it ever reached; my tilt is floating on a lot of hop material right now and is reading lower than it should.

Corbin
 
Ironically (based on the name), before I ran across Fermentrack, I created a macOS app called "FermentationTracker" -- I designed it to keep track of beers I brewed and track the fermentation with a Tilt.

FWIW: https://github.com/corbinstreehouse/FermentationTracker

I think I'm going to abandon it and work on making Fermentrack do what I want it to do.

Things I'd like to have it do: Beer-centric organization -- tracking the fermentation should revolve around the beer, and I want to save that information for later reference. I potentially want it to (somehow) link back to the BeerSmith document I used to create the beer.


-corbin
 
Hi Corbin.

I’m not a Fermentrack user, however I’d suspect Thorrak carried over the ability to start and stop a brew. That would give you the raw ability to save off a beer when done.
 
Ye
Hi Corbin.

I’m not a Fermentrack user, however I’d suspect Thorrak carried over the ability to start and stop a brew. That would give you the raw ability to save off a beer when done.

Yeah - through the use of log files. It just isn’t intuitive; I want some sort of sidebar with a list of all previous beers. It looks easy for me to add; I haven’t gotten to it yet.
 
If you like to tinker, check out
prasathmani/tinyfilemanager on GitHub. It’s something I intend to incorporate into BrewPi as the ability to browse/view/edit random files is pretty common.
 
Howdy. rewers. Im making my second brewpi temp controller and all was going well until.... I plugged it ion with the power switch turned on at the power point. It sparked at the connection and now when I turn it on both relay LEDs light up and at the same time and supply power to the sockets. I thought it might be the actual relay so I swapped it out for the relay in my other controller and Im getting the same problem. So does this mean the ESP is stuffed? is there another way to double check it?
 
At the least, it sounds like the two GPIO pins driving the relay optocouplers are sitting in a low state, hence the relays being active.
Have you tried reloading the firmware? Or at least hooked it up to something (IDE) to verify there's some form of "life" inside the ESP?

Cheers!
 
At the least, it sounds like the two GPIO pins driving the relay optocouplers are sitting in a low state, hence the relays being active.
Have you tried reloading the firmware? Or at least hooked it up to something (IDE) to verify there's some form of "life" inside the ESP?

Cheers!

Ok looks like its the relay. (When you swap something out make sure you have actually swapped them over..LOL) So my first relay wont work in either temp controller.

However Ive noticed that when I set a temperature in fermentrack even though it says "Temperature control settings updated for fermenter 2" The LCD text says Idling and doesn't start to cool/heat
 
Does it say "Idle" or does it say "Wait to Cool"? I run into the latter any time I have to reboot any Arduino at the end of my classic BrewPi setup - there's a ten minute short-cycle timer that has to expire before it will turn on a cooler...

Cheers!
 
I can set beer constant to 30C (Current temp is 17C) or to 6C and it still just says Idling for …. Instead of saying heating or cooling. Does this mean the ESP and the relay are both shot? I did reflash the ESP and added it again in Fermentrack and it all worked fine.
 
Does it say "Idle" or does it say "Wait to Cool"? I run into the latter any time I have to reboot any Arduino at the end of my classic BrewPi setup - there's a ten minute short-cycle timer that has to expire before it will turn on a cooler...

Cheers!
No definitely says idling...

Screen Shot 2019-09-22 at 10.51.08 am.png


Screen Shot 2019-09-22 at 10.52.22 am.png
Screen Shot 2019-09-22 at 10.51.08 am.png
 
Don't know what this means but when I debug it fails the controller response test. The ESP is soldered onto a PCB. Maybe Ill solder it onto another one and see if it works perhaps?

EDIT:- Controller response test fails for fermenter 1 also but it still displays waiting to heat/cool as per normal and works fine.
 
Last edited:
So I've added my tilt and bound it to my Arduino-based temperature controller, but it doesn't seem to be logging any of the data on the graph. Is there a setting I'm missing somewhere to display that info on the graph?
 
Back
Top