HOWTO - Make a BrewPi Fermentation Controller For Cheap | Page 75 | 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

HOWTO - Make a BrewPi Fermentation Controller For Cheap

Discussion in 'Fermenters' started by FuzzeWuzze, Mar 19, 2014.

 

  1. wbarber69

    Well-Known Member

    Posted Feb 22, 2015
    Don't really know what you are asking. Do you have an English speaking friend who could help you out? It looks like you are showing us your boot up logs. I don't know how that relates to brewpi freezing up. Maybe you have a bad sd card.
     
  2. Borisfa

    Well-Known Member

    Posted Feb 22, 2015
    @wbarber, sorry for my English and for the sort information.

    My Brewpi was working good, but after some hours, the web access (it is over a lan - without internet access) was not possible and it (RPi) stop to send info (set point as programmed on Beer Profile) to Arduino. The Arduino still working with the last set point.

    Resuming: I couldnt access it over lan and the Beer Profile freeze to send new set points to Arduino. After reboot, it restart and work properly.

    Thanks,

    Fabiano

    PS.: the pictures are the log file (syslog).
     
  3. day_trippr

    We live in interesting times...

    Posted Feb 22, 2015
    I don't see any messages in any of those logs that pertain to BrewPi - or even any system-level errors per se.
    What I see are a lot of info/warning/error messages related to the inability for the system to reach the Internet (all those DNS messages, for instance).

    Just to be clear, your RPi is freezing, or is it rebooting itself?

    Cheers!
     
  4. CGish

    Eternal Tinkerer  

    Posted Feb 22, 2015
    Fabiano,

    Is the raspberry pi freezing, or is the webpage freezing? If it is just the webpage, then can you restart apache?

    day trippr - sorry for poking my nose in here, but my apache server will freeze sometimes.

    Cody
     
  5. day_trippr

    We live in interesting times...

    Posted Feb 22, 2015
    Jeeze, please don't ever refrain from offering help if you can! That goes for everyone/anyone.

    I'm just one of a bunch of helpers here - and there's a hella lot I don't know much about. The more folks helping, the better!

    Cheers - and thanks! :mug:
     
  6. wbarber69

    Well-Known Member

    Posted Feb 22, 2015
    Well apparently you've never uttered the words brewpi in the stc-1000+ forum. They will stone you to death if you even bring up the fact that there are others fermenting software/hardware to be had. Especially if the person asking for advice is basically asking for a brewpi.
     
    wapitiscat likes this.
  7. wbarber69

    Well-Known Member

    Posted Feb 22, 2015
    @borisfa I know this has been asked before. But is there absolutely no way to get internet where you are. Or is it like a bad roommate who thinks that every appliance is going to make the Internet bill go up.
     
  8. day_trippr

    We live in interesting times...

    Posted Feb 22, 2015
    Some things are best avoided as no good will come of it.

    Someone was recently thinking out loud hereabouts of building a controller based on reverse diode leakage versus temperature. It was all I could do not to toss a BrewPi bomb...

    Cheers! ;)
     
  9. Borisfa

    Well-Known Member

    Posted Feb 22, 2015
    @day_trippr, it is freezing. I need reboot it (unplugging power wire from wall). After reboot, it restart and work properly (until a new freeze 😓;).

    @CGish, it freeze. I imagine that all RPi freeze, because it dont send new setpoints to Arduino, dont allow us access web interface over lan,....

    @wbarber69, internet is possible, but where I made my beer is like a country place (I dont know how can say it in English) and the internet service is to slow. So, I dont see advantage to install internet there. Ah, I go there only on the weekends and our mobile internet service work properly there.
     
  10. Mikmonken

    Well-Known Member

    Posted Feb 22, 2015
  11. day_trippr

    We live in interesting times...

    Posted Feb 22, 2015
    My guess is the system freezes have nothing to do with BrewPi.
    If you wanted to experiment and don't have a beer fermenting, kill the BrewPi script, don't access any BrewPi-related pages, and see if the system still hangs.

    And there's really no reason why you cannot operate an RPi (with or without BrewPi) without Internet connectivity.
    Yes, the OS will complain that it can't access a DNS agent, etc, but it'd be a pretty crappy OS if that caused it to hang...

    Cheers!
     
  12. gezzanet

    Well-Known Member

    Posted Feb 22, 2015
    Have you checked your power? Is it possible that your power drops out momentarily and not all parts of the system wake up properly ?
     
    alfista likes this.
  13. doomy86

    Well-Known Member

    Posted Feb 23, 2015
    Mine looks similar after some switching. I have ordered SSRs now, hope it works..
     
  14. alfista

    Well-Known Member  

    Posted Feb 23, 2015
    Earlier in the thread, I had some problems that seemed to be related to a relay sticking. I haven't brewed in a couple months, so I didn't really make it a priority to look into.

    Thanks to Neptune canceling our Florida vacation, I had some time to investigate this past week. I swapped out the two switch relay board for a four switch unit that I had on hand. When I plugged in the fridge with the outlet enabled by the arduino, the relay board sparked and fried. I guess this industrial-use fridge does draw too much current for these boards.

    Attached are the specs for the unit. I'm not an electronics pro but can generally follow instructions. Can anyone suggest a different relay or approach? I'd rather not get into taking apart the fridge.

    Thanks,

    Jason

    IMG_1019.jpg
     
  15. wbarber69

    Well-Known Member

    Posted Feb 23, 2015
    Pictures of your wiring would be a much bigger help. Pops and fried sounds more like a short.
     
  16. alfista

    Well-Known Member  

    Posted Feb 23, 2015
    Thanks. I'll check the wiring tonight, and swap in an 8 switch relay I have if the 4 port did get fried.

    Earlier in the thread, I posted where BrewPi would say it was cooling, but the fridge would not be on. A reboot of BrewPi might cause everything to reset and the cooling outlet to come back on, but it wouldn't stay that way for long.
     
  17. day_trippr

    We live in interesting times...

    Posted Feb 23, 2015
    [​IMG]

    Please tell us there's a decimal point between the "5" and the "0" just below and the left of the "Amps" :eek:

    If that chiller really is rated for 5 amps your relay module should have handled it ok. And sparking up the replacement does cause some suspicion about the wiring...

    Cheers!
     
  18. wbarber69

    Well-Known Member

    Posted Feb 23, 2015
    Maybe his relay is layed across a piece of metal and making contact on the bottom. Without seeing the wiring I would not advise hooking anymore relays up. When one of these 15amp relays go it's not gonna throw up any smoke or anything, unless it's waaaaay over current. I'd be willing to bet that the 15amp relays could easily handle up to 25 for a short period. So I doubt it's the relays fault. He may be using one of the 3 terminals incorrectly. Or all 3. Without some visual I can only imagine.
     
  19. NorwayMartin

    Member

    Posted Feb 23, 2015
    Is there any advantage of using the new RPI 2 over the original B+ 512mb one? I'm not planning on burdening the RPI with much more than the BrewPi software.

    I'm still waiting for some parts, but in the meantime I have gotten my handmade Arduino shield to work with the LCD. Yay!
     
  20. bayoujeeper

    Well-Known Member

    Posted Feb 23, 2015
    Let me know how it works out for you.
     
  21. alfista

    Well-Known Member  

    Posted Feb 23, 2015
    I had the relay in a new construction outlet box mounted to a piece of plywood. I already disconnected everything and started a rebuild as I got a couple of the new revision 2 Raspberry Pi's to deploy and an extra Uno. I must have wired the relay incorrectly or somehow had a stray strand that shorted it. I'll blame my laziness for trying to do this in a dim basement with old eyes.

    Either way, complete software refreshes did not solve my first problem, which started after everything ran properly for two months so through basic troubleshooting I think it is down to the relay.
     
  22. day_trippr

    We live in interesting times...

    Posted Feb 23, 2015
    It'd be difficult to justify paying the current extortionate pricing on the Model 2 if all you're planning on doing with it is to run the BrewPi host code.

    Cheers! :mug:
     
  23. mr_so

    Member

    Posted Feb 24, 2015
    alfista, I also have had issues with these relays sticking on, I swapped out the relay board and still the same..

    I had an extra power supply plugged in to turn fans in the fridge on when the fridge was switched on, I unplugged the fan power supply (2A) and all worked normally, so my fridge plus the power supply were drawing too many amps, probably when the compressor started up.

    I have ordered a 30A SSR which I plan to activate using the relay, this I hope will fix the problem.
     
  24. alfista

    Well-Known Member  

    Posted Feb 24, 2015
    Thanks mr_so - (perhaps) oddly mine appeared to be sticking off, where it would say it was cooling, but no power to the outlet and temps would skyrocket.

    I took everything apart and to the workbench and did some testing on the two channel relay before replacing with an eight channel. I couldn't get the two channel to work right but the eight channel powered the outlet right up. I'll use the remaining six channels for some other automations.

    So it seems I'm good for now, but will look into the SSR that you are using (I've mostly skimmed over the SSR discussions in the thread). Is there a link to a guide/product you are using?

    Thanks,

    Jason
     
  25. alfista

    Well-Known Member  

    Posted Feb 24, 2015
    Agreed - I have a number of raspberry pi's and my early experience with them was not all USB power adapters and cables are created equally. Get a robust power brick and good cable and see if that helps. Re-image the card too as the power drops can corrupt the SD.
     
  26. mr_so

    Member

    Posted Feb 24, 2015
    No specific guide but there are posts on the brewpi forum and here, just a bit of extra wiring to switch input side of the SSR from the relay then switch the fridge power from the SSR output side. I ordered one of the fotek ones off ebay (I'm in the UK but I'm sure they're available elsewhere, maybe a different brand..)
     
  27. wbarber69

    Well-Known Member

    Posted Feb 24, 2015

    I got my pi2 for 35 bucks at mcm. Same price they've always been. I'll be getting mine in tomorrow I hope. Ill say this for the b+ it will run the brewpi code with no problem. But if you do like I did and run a screen in kiosk mode with 4 lcd read outs all going at once, that's the limit of the graphics. I cannot do anything else in gui on the pi itself. If I remote in I see no slowdows.
     
    alfista likes this.
  28. doomy86

    Well-Known Member

    Posted Feb 24, 2015
    Why not switch the SSR directly from the Arduino Output?
     
  29. NorwayMartin

    Member

    Posted Feb 24, 2015
    Looks like my previous (first ever) post got delayed and thus buried/overlooked. I was wondering a few things about the difference between the originial BrewPi setup, and the one presented by awesome FuzzeWuzze:

     
  30. day_trippr

    We live in interesting times...

    Posted Feb 24, 2015
    I'll see if I can address all your questions, but right from the start, you are apparently comparing the original, Revision A BrewPi design to the current, Revision C BrewPi design.

    The Revision C BrewPi design (and derivatives you'll find scattered through this forum) use the Revision C software and Arduino AVR hex code. You would be well served if any implementation you want to come up with conforms to Revision C features.

    You only need to use a single "One-Wire" port to service the limited number of devices that BrewPi is capable of handling. The Revision A BrewPi design used two One-Wire ports, for some reason not apparent to me. Follow the single One-Wire design of Revision C.

    I don't know the history behind that decision, but it may have been to free up some code space within the AVR. I have an "Add an LCD to BrewPi" thread here that might be helpful.


    The BrewPi Revision C software and firmware only make available a subset of the Arduino pins for user configuration. There's not a lot of flexibility there, either. Follow the Revision C pin allocation scheme.

    Not pins 0, 1 and 2, but 7, 8 and 9. Here's a diagram from the LCD thread I referenced that shows some of the connectivity.

    [​IMG]


    You can add the door switch connection to AVR pin 4, and if activated - and you have also set up a "Fridge Light" control pin - I believe BrewPi will turn on the light when the door opens.

    This goes to BrewPi being taking over the fridge light as a "heater" - which then means BrewPi needs to turn the light on if you open the fridge.

    I have all that plus an Arduino AlaMode (running RaspberryPints stuff) in a small metal enclosure and added a 40mm 5V "Super Quiet" fan (<= that's how it's advertised) to the back to pull air through the power supply and logic boards. I have it controlled by an RPi system process based on the SOC temperature reading. It may be overkill but that's kinda my thing ;)

    Cheers!
     
    NorwayMartin likes this.
  31. bruhops

    Active Member

    Posted Feb 24, 2015
    Will the brewpi firmware work on the latest R3 version of Rasp pi.
     
  32. andrewmalizia

    Well-Known Member

    Posted Feb 24, 2015
    It should work just fine. AFAIK, there is no firmware installed on the pi. The script should still work and install everything automatically. The actual "firmware" being installed is on the Arduino Uno. The new Pi2 is just an upgraded pi. Shouldnt be an issue.
     
    bruhops likes this.
  33. wbarber69

    Well-Known Member

    Posted Feb 25, 2015
    chefjaypeek and Bigdaddyale like this.
  34. mr_so

    Member

    Posted Feb 25, 2015
    Never occurred to me to do that, now you mention it though it is certainly a much more straight forward option, cheers ;)
     
  35. alfista

    Well-Known Member  

    Posted Feb 25, 2015
    Mr_so - so were you triggering the SSR from the sainsmart relay? I will pay more attention to how SSRs are being used from now on.
     
  36. mr_so

    Member

    Posted Feb 25, 2015
    That was my initial plan yes, the thought of just using the output from the arduino never crossed my mind because the relay was there waiting to be used already, what can I say, I'm a therapist not an electrician :smack:
     
  37. FuzzeWuzze

    I Love DIY

    Posted Feb 25, 2015
    Helpful tip, Make sure you unplug it from the wall before touching anything :mug:

    I dont need people electrocuting themselves building these things :tank:
     
  38. mr_so

    Member

    Posted Feb 25, 2015
    Thanks for the tip FuzzeWuzze, don't worry though I'm not totally clueless, just sometimes can't see the wood for the trees :D
     
  39. Eamon

    Well-Known Member

    Posted Feb 26, 2015
    I have been planning to purchase a chest freezer in the next few weeks with the hopes of simply using a STC1000 in a similar fashion to what I used for my keezer. Fortunately (or unfortunately) I've become a little obsessed with this thread to the point that I have acquired virtually all the required parts listed on Fuzze's initial post with the hopes of putting together a high quality fermenter. A friend from work gave me an old dell pc currently loaded with WindowsXP. I was hoping to load it with Debian Wheezy but I'm a little concerned it may be too primitive (it has Pentium 4 cpu 2.6ghz, 47 gb of free hard disc-space and only 504mb ram). I would appreciate hearing from anyone who might tell me if this pc is too underpowered to use as a Linux terminal for the fermenter. I can pick up additional 2 gb of RAM off of ebay for $16 but wonder if that is a waste of money.

    I also am a little intimidated about loading Debian correctly on this PC. I have a copy of the debian .iso file on a flash drive but I was also wondering about hooking the pc up to the internet and downloading directly to the pc. My initial plans are to dual boot with Debian and windows on the same pc, understanding that I will have the opportunity to partition the hard drive during installation of Debian. It would not kill me to remove all the Windows stuff if necessary (but I don't know exactly how to do this). I would appreciate any advice about my initial plans.
     
  40. wbarber69

    Well-Known Member

    Posted Feb 26, 2015

    I run Debian in a vm on a windows machine with 2.3ghz processor and I'm only allocating 512mb of ram to it. It runs plenty fast.

    If you don't care about the windows os installed on the hd then you're in luck, cause installing Debian will most likely wipe it out completely unless you take the time to repartition. You could try out a live cd version of most Linux distros that won't affect your underlying system if you are concerned about performance. But given how low powered the rpi is I don't think you have anything to worry about.
     
Draft saved Draft deleted

Share This Page

Group Builder