Native ESP8266 BrewPi Firmware - WiFi BrewPi, no Arduino needed! | Page 19 | HomeBrewTalk.com - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Homebrew Talk

Help Support Homebrew Talk by donating:

  1. Dismiss Notice
  2. We have a new forum and it needs your help! Homebrewing Deals is a forum to post whatever deals and specials you find that other homebrewers might value! Includes coupon layering, Craigslist finds, eBay finds, Amazon specials, etc.
    Dismiss Notice

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

Discussion in 'Fermenters' started by Thorrak, Jul 9, 2016.

 

  1. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    This is the one I got from you - would be nice to know the possible way of doing things with it :)

    [​IMG]
     
  2. Thorrak

    Supporting Member  

    Posted Mar 21, 2017
    That's not a board of my design, unfortunately - none of mine have ICs on them. If you remember where you got it, however, I'd love to see what is on it!
     
  3. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    Pocketmons - It might be I have mixed it all up a bit... ;) Or could it be someone else offering these in this thread... I`m not sure.
    I`l try to find the seller information on paypal.
     
  4. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    Might drop using them, since I have no clue what goes where...
     
  5. ajw85

    Well-Known Member

    Posted Mar 21, 2017
    That board is for hot side control through BrewManiacEx; from @pocketmon;
     
  6. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    Thanks, that is correct, remembered it once you wrote it :)

    What board gives me the most for this project then? And what is the benefits?
     
  7. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    Oh, by the way - where is the esp8266 bin files located for flashing?
    I did not manage to find it on the Pi - did a manual install of latest firmware from windows computer.
     
  8. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    Not getting any of my sensors up - they do work on the same card with BrewPiLess - strangest thing ever....
    They even use the same PIN (D6 for data)
     
  9. Mikmonken

    Well-Known Member

    Posted Mar 21, 2017
    Sounds odd... best place to start - https://thorrak.github.io/fermentrack/ it's a very comprehensive guide.

    1. Fresh install of Raspbian, I don't know if this is necessary but I had to before I could install Fermentrack, (if you've installed fermentrack you're good to go)

    2. Attached Wemos with a data SUB cable and flash the device.

    Next I for to Ipaddress.local in my webrowser and follow the instructions to set up fermentrack.

    once its installed and the device has updated (starting script in the LCD display) select device to control at the top of the screen (to the right of the brewery name) select the name you have given your ESP it will open into the ESP dashboard with beer temp, fridge temp control etc (all blank at the moment)

    Click ESP name at the top of the screen (next to brewery name again) and select configure sensors/pins/devices

    Then either one at a time assign a device by selecting appropriate device and clicking assign. if your quick you can set them all up chamber, beer, cooler relay and heat relay all up and then click assign one after the other and they'll all save.

    if your using a sainsmart relay you don't need to amend anything the default settings will mean it works. for SSRs I think you need to change to "not inverted" before you assign, hey presto if it all goes to plan you should be up and running.

    Hope it helps.
     
    Thorrak and rocket4x4 like this.
  10. stbernts

    Well-Known Member

    Posted Mar 21, 2017
    A small piece of soldering where bad for the 3.3v (probably due to ruff handling when i took the board out of the arduino bread board) so --- all ok, and now it is up and running.
    I must say - this is so impressing. I`m humble and super happy to witness people like you give people like me acess to such nice peace of software.

    One huge STAR in my book :)
     
    rocket4x4 and CardinalBrew like this.
  11. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    Little help please. How do edit the boot directory?
    To utilize this, prior to the initial boot on a newly flashed Raspbian installation, create a wpa_supplicant.conf file in the /boot directory of the SD card with the following contents (adjusting to match your network configuration):
     
  12. ame

    Well-Known Member

    Posted Mar 22, 2017
    If you are doing it with the Pi,

    sudo nano /boot/wpa_supplicant.conf

    If you are doing it with Windows the boot partition is accessible when you put the SD card into a card reader. You can use your favourite editor to put a file there.
     
  13. Thorrak

    Supporting Member  

    Posted Mar 22, 2017
    If you're doing it with a Mac, generally the boot directory is mounted in /Volumes/boot/

    A few things to note - Only recent versions of raspbian look for the wpa_supplicant.conf file, so if you aren't using a relatively new one you may need to upgrade. In the same vein, if you're planning to connect via ssh to complete the install, you'll also need to create a file with the name "ssh" in the boot directory at the same time as you create the wpa_supplicant.conf file. The contents of the "ssh" file don't matter - it just has to exist.
     
  14. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    I'm using win7 with notebook++ as the editor and today's version of 2017-03-02-raspbian-jessie-lite.img
     
  15. ame

    Well-Known Member

    Posted Mar 22, 2017
    Ok. Can you connect the SD card to the PC? A built-in card reader or USB reader?

    If so, when you put the card in it should pop up as a drive letter. That's your boot partition.
     
  16. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    I can pull up the boot file but I'm not sure where to add the extra stuff
     
  17. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    Looks like the only files I can edit are CONFIG and CMDLINE
     
  18. Thorrak

    Supporting Member  

    Posted Mar 22, 2017
    On my windows PC I have a "boot" drive shown when I insert the SD card:

    Boot 1.PNG

    When I open it, I show a bunch of files, similar to the following:

    Boot 2.PNG


    I right click, and choose "Create new text document", and then name a file "ssh". I then do the same, but named "wpa_supplicant.conf".

    Once that's done, you can open wpa_supplicant.conf and edit it in Notepad++.
     

    Attached Files:

  19. ajw85

    Well-Known Member

    Posted Mar 22, 2017
    I am useless when it comes to building circuit boards, so I have to ask, do the SMD boards come with the SMD components on them or do I have to figure out how to do that myself? Or just stick to the discrete components boards?
     
  20. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    No, You need to order all of the parts.this is just the files for the pcb.I have a run of SMD boards and parts on their way.
     
  21. Thorrak

    Supporting Member  

    Posted Mar 22, 2017
    Unfortunately, the SMD boards have to be hand soldered. That said - it's easier/more forgiving than it looks, but if you're worried about it I would stick to the discrete component boards. All the boards do the same thing - just in a slightly different package.
     
  22. Thorrak

    Supporting Member  

    Posted Mar 22, 2017
    On a separate note, I have decided that I detest the strip-and-splice method for doing RJ-11 temperature sensors, so I'm going to be making a board shortly with a single RJ-11 jack (to connect to the PCBs linked) and 11 screw terminals ( 3x3 for the room/chamber/beer sensor, 1x2 for door). Completely optional, and a complement (not replacement) for the linked PCBs. Just a personal preference thing.
     
  23. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    That's how I spent my day, striping and soldering wire splices.I need to find a heat source that can shrink down the shrink tubing- the soldering iron made a mess of it.I ended up with a set of three probes, a 25 foot main wire that will plug in to the board and the probes will plug in to a 3 way phone splitter.
     
  24. Bigdaddyale

    Well-Known Member

    Posted Mar 22, 2017
    I gave up on the wifi for now and just plugged in an ethernet cable. Program loaded with out a hitch-Thanks Thorrak and team.I flashed my D1 Mini with the program from the github site posted above nodemcu -flasher. but I cant find it on the network. I'll play around with it later on tonight.
     
  25. LBussy

    A Cunning Linguist  

    Posted Mar 23, 2017
    Hmm ... now you need a small 3D printed enclosure for THAT. :)

    Good idea though.
     
  26. Mikmonken

    Well-Known Member

    Posted Mar 23, 2017
    Three Fermentracks ticking along nicely added a new one each day for the last couple of days. The top controller has just been set to beer profile but it's holding temperature well. Would be nice to track on the graph when the heater and cooler trigger but I think that's in the pipeline.

    So if anyone's on the fence based on my experience so far it's all working pretty well.

    View attachment ImageUploadedByHome Brew1490301701.061313.jpg
     
    Bigdaddyale, gezzanet and rocket4x4 like this.
  27. stbernts

    Well-Known Member

    Posted Mar 24, 2017
    I`ve had some "Cannot receive Lcd TEXT.." - but those are more likely due to eiter power issues, or the fact that my Wifi could be a little bad from brew room to where Pi is. Will try to move Pi to the same room to sort out such problems. Esp8266 board runs and controls in background, so there seems to be some sort of timeout issue.
     
  28. ajw85

    Well-Known Member

    Posted Mar 24, 2017
    When pulling up the graph on my mobile devices, I only get a red box.

    I tried dygraphs.com/css.html on my mobile devices and they pull up that instance of the graph fine.

    I'm no front end developer, but after messing around with things it looks like is going on with the responsive updates to the div "panel panel-red" when you change window size horizontally.

    I have no idea how to submit an issue in Github and do this the right way.
     
  29. Mikmonken

    Well-Known Member

    Posted Mar 24, 2017

    That's interesting I did have this issue on iOS too then there was an update which seem to solve it, both landscape and portrait. Do you know if your on the most recent version? There should be a notification on the homepage if you can update.
     
  30. ajw85

    Well-Known Member

    Posted Mar 24, 2017
    It blows my mind that using this is so easy. The update fixed the red box issue.
     
    rocket4x4 likes this.
  31. Thorrak

    Supporting Member  

    Posted Mar 27, 2017
    For those who might be interested, I've gone ahead and created this. The PCBs.io link is https://PCBs.io/share/z7Rd1 . It's $9.38 for 4 boards there.

    Basically the board is this:
    Screen Shot 2017-03-26 at 6.18.32 PM.jpg

    I'll add the eagle files to the repo at some point in the near future.
     
  32. stbernts

    Well-Known Member

    Posted Mar 27, 2017
    Anybody else who strugles if they reboot RaspberryPi? It wont connect to my esp8266 boards unless I cut power and put in on after Pi reboot.

    Edit: Seems like the last version somehow fixed this. After upgrade the esp8266 showed up again.
    Did a new reboot this morning of the pi - still gets the "Unable to reach brewpi-script for device Cola"

    Is it supposed to be like that?
     
  33. stbernts

    Well-Known Member

    Posted Mar 28, 2017
    Is there any way to enable a sub-site?
    I have a tiltpi app - which I would love ro run as sub on the site.

    Best reg,
    Stig
     
  34. rocket4x4

    Active Member

    Posted Mar 28, 2017
    What kind of app is it? Depending how it is run you only need to add an alias or you need to create a reverse proxy.
     
  35. stbernts

    Well-Known Member

    Posted Mar 28, 2017
    This one: https://bitbucket.org/lgpaulsen/

    PS. I`m not familiar with NginX, if someone could point me in the right directions - thanks in advanced.

    It works - and shows nice graphs.
     
  36. rocket4x4

    Active Member

    Posted Mar 28, 2017
    Sure, I would create a new nginx server in /etc/nginx/sites-enabled/tiltpi
    and use nip.io for a hostname (maps ip to hostname) for example if
    the raspberry pi has ip 192.168.1.2 then use "server_name tiltpi.192.168.1.2.nip.io;"

    You also need to enable php which your can read about here:
    https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md

    Basiclly:
    Code:
    sudo apt-get install php5-fpm
    
    Something like:
    Code:
    server {
            listen   80; 
            # Where your tiltpi files are located
            root /var/www/tiltpi;
            index index.php index.html index.htm;
     
            server_name tiltpi.192.168.1.2.nip.io;
     
            location / {
                    try_files $uri $uri/ /index.html;
            }
     
            # pass the PHP scripts to FastCGI
            location ~ \.php$ {
                    include snippets/fastcgi-php.conf;
                    fastcgi_pass unix:/var/run/php5-fpm.sock;
            }
    }
    
     
  37. darrenB996

    New Member

    Posted Mar 28, 2017
    Forgive me if this has been asked already, but how do I configure multi chamber.

    I have a pi zero w and a d1 mini working. Do I need to add another d1 mini or have additional pin headers on the d1 mini beem programmed for an extra chamber heat and cool function.

    Many thanks
     
  38. Thorrak

    Supporting Member  

    Posted Mar 28, 2017
    You need to add additional D1 Minis & sensors - One set per chamber.
     
  39. darrenB996

    New Member

    Posted Mar 28, 2017
    Thanks Thorrak.

    The pi zero w only has one usb port so I would also need to setup a powered hub to connect both d1 minis. Might just upgrade the zero to an rpi3.
     
  40. stbernts

    Well-Known Member

    Posted Mar 28, 2017
    Thanks for the effort, either I do something wrong or it did not work.
    Lost fermentrack also, when I tried to use those "names"

    This is the answer from nginx restart:
    [....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
    failed!
     
Draft saved Draft deleted

Share This Page

Group Builder