CraftBeerPi - Raspberry Pi Software

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.
In my humble opinion the Terragaddy boards are just an unnecessary complexity. They are really built to drive 12v relays/ssr's. If you don't need that, they are overkill. I built one and found that I could neither fully troubleshoot it or make all things (like the buzzer) work correctly. After using it for about 6 months something went wrong and some contacts stopped working and it shorted out my Pi. That is not to say that the board isn't a good product. I'm sure the quality control problems were my own fabrication faults. But for me figuring out how to troubleshoot it cost me two Raspberry Pi's. I switched to just a simple breakout board driving relays at 5v and things went much smoother.

The reason the board is 12v's was to drive ssr's and pumps. Also, because most people bought crappy cheap ones from China, which in most tests I found wouldn't turn on with 5v's. If you have good SSR's, you don't have to worry about that. Also I highly doubt you fried pi's with the Terragady board setup correctly as I have had someone run 50 amps x 240 volts directly into the board and he's still alive, just short one BC337. The only way you fried a Pi is if you somehow sent more than 5v's through to pin 2, which is not good and many have done it by not setting the MP1584 up properly before connecting to the Pi.

The terragady board was a damn good board, but unfortunately it lacks all the nice new shiny features and was a pain to solder with all the individual parts. I'm in the midst of creating a new board and here is a sneak peak and yes this one supports rpi4.

Brewboard.jpg
 
The reason the board is 12v's was to drive ssr's and pumps. Also, because most people bought crappy cheap ones from China, which in most tests I found wouldn't turn on with 5v's. If you have good SSR's, you don't have to worry about that. Also I highly doubt you fried pi's with the Terragady board setup correctly as I have had someone run 50 amps x 240 volts directly into the board and he's still alive, just short one BC337. The only way you fried a Pi is if you somehow sent more than 5v's through to pin 2, which is not good and many have done it by not setting the MP1584 up properly before connecting to the Pi.

The terragady board was a damn good board, but unfortunately it lacks all the nice new shiny features and was a pain to solder with all the individual parts. I'm in the midst of creating a new board and here is a sneak peak and yes this one supports rpi4.

View attachment 637505
It's nice to see that you are going with a ULN2803 to simplify your board. I questioned why more of the CBPi board makers didn't go this route a while ago.

Have you looked into the heat issues with the Pi4? In most of the reviews I've seen testers have said that active cooling measures are really the only way to avoid throttling issues and the Pi forum is full of talk about heat and throttling on the Pi4. This makes full size hats hard to use unless they are connected with a ribbon cable. RaspberryPi.org issued a firmware update which helped with the heat issue some but didn't completely eliminate the problem. Maybe someone could build a CBPi board that is offset or sits at 90 degrees to the Pi board like video cards sit on a PC motherboard that would allow the use of active coolers while still being plugged directly to the GPIO pins.
 
In my humble opinion the Terragaddy boards are just an unnecessary complexity. They are really built to drive 12v relays/ssr's. If you don't need that, they are overkill. I built one and found that I could neither fully troubleshoot it or make all things (like the buzzer) work correctly. After using it for about 6 months something went wrong and some contacts stopped working and it shorted out my Pi. That is not to say that the board isn't a good product. I'm sure the quality control problems were my own fabrication faults. But for me figuring out how to troubleshoot it cost me two Raspberry Pi's. I switched to just a simple breakout board driving relays at 5v and things went much smoother.
Not sure this was your problem but a bunch of people fried their rpi's by not setting the voltage correctly on the mp1584.
 
The reason the board is 12v's was to drive ssr's and pumps. Also, because most people bought crappy cheap ones from China, which in most tests I found wouldn't turn on with 5v's. If you have good SSR's, you don't have to worry about that. Also I highly doubt you fried pi's with the Terragady board setup correctly as I have had someone run 50 amps x 240 volts directly into the board and he's still alive, just short one BC337. The only way you fried a Pi is if you somehow sent more than 5v's through to pin 2, which is not good and many have done it by not setting the MP1584 up properly before connecting to the Pi.

The terragady board was a damn good board, but unfortunately it lacks all the nice new shiny features and was a pain to solder with all the individual parts. I'm in the midst of creating a new board and here is a sneak peak and yes this one supports rpi4.

View attachment 637505

It could be that my original problem was over-voltage due to not setting the regulator properly. At some point there became a short that I could not isolate. The board was feeding 12v back into other parts of the board. As I said, I'm confident the problem was my poor workmanship and inability to diagnose the location of the problem properly.

I thank you for your work and making your products available to all of us. It was instrumental in making CraftBeer Pi accessible to a knucklehead like me.
 
Have you looked into the heat issues with the Pi4? In most of the reviews I've seen testers have said that active cooling measures are really the only way to avoid throttling issues and the Pi forum is full of talk about heat and throttling on the Pi4.
I can confirm the Pi 4 is troublesome without active cooling. I just posted my findings and solution here.

@toadyus: As long as you are creating a board, and there does seem to be ample room on the PCB, I'd suggest you make a hole and a 2-pin header for a small fan. That would be nice for everyone and almost vital for Pi 4 users.
 
I can confirm the Pi 4 is troublesome without active cooling. I just posted my findings and solution here.

@toadyus: As long as you are creating a board, and there does seem to be ample room on the PCB, I'd suggest you make a hole and a 2-pin header for a small fan. That would be nice for everyone and almost vital for Pi 4 users.

yeah, that's a great idea! The rpi4 seems to be a mess right now first it was the usb-c connector snafu and now issues with over heating, I'm wondering what the next issue is going to be.
 
The rpi4 seems to be a mess right now first it was the usb-c connector snafu and now issues with over heating
I see the overheating as more a design snafu for the case developers. Easy enough to make it 3/8" higher and include a $0.35 fan. I have a few different USB-C power supples and was unable to figure out what they were talking about.

The network speed increase especialy is very nice.
 
Just imagine the size of the case you would need if you wanted to go vertical. I think the addition of a 5v port for a case fan is the better option.
I agree, but Gravitysucks want the board vertical as a VGA in a motherboard. A laptop fan, that blows lateral will be a perfect choice.
 
Just imagine the size of the case you would need if you wanted to go vertical. I think the addition of a 5v port for a case fan is the better option.

I only have what's being said on the various Pi forums to go by since I cancelled my Pi4 order when I started to read about the heat and power issues but a number of people have complained that it is no longer possible to use full size hats on the Pi4 without causing over heating/throttling issues since they trap the heat coming off the cpu. I suppose you could get one of the fan type cpu coolers to work if you could find a tall enough riser to put between the Pi and the hat to allow unrestricted airflow but I'm not sure a conventional case type fan would provide enough cooling.
As I said, I'm only going by what I've read on the forums. You may have seen something else entirely. Hopefully the Pi Foundation will get the problems figured out.
 
It isn't too big a deal to physically extend the GPIO interface header to allow something to be tucked between Pi and hat, it's likely only a matter of days before someone comes up with a "chill hat" with a skinny fan that can be topped with standard profile hats. Like the POE hat, but stackable with enough of an air gap to work.

Meanwhile...

Raspberry-Pi-4-Cooling-Fan.jpg


Cheers! (yeah, it's a 3B, but the point remains. The Org done screwed the pooch this time)
 
It isn't too big a deal to physically extend the GPIO interface header to allow something to be tucked between Pi and hat, it's likely only a matter of days before someone comes up with a "chill hat" with a skinny fan that can be topped with standard profile hats. Like the POE hat, but stackable with enough of an air gap to work.

Meanwhile...

Raspberry-Pi-4-Cooling-Fan.jpg


Cheers! (yeah, it's a 3B, but the point remains. The Org done screwed the pooch this time)

That was one of the coolers I had seen before I asked about the possibility of a CBPi board that sits 90 degrees to the Pi.
 
There's too much investment in RPi hats for the problem to be dodged for long. Given the POE hat has been around awhile it's just a couple of baby steps to knock out a stackable version that would optimally work with an RPi4. And given nobody is running GPIO fast enough for some long headers to matter I have to believe a good solution will happen.

Heck, Lee B. could knock one out in a couple of hours :D

Cheers!
 
Hi,
obviously a known issue but I am stucked for 2 days now. Installing CBPI3 on a "new" pi 3 B 1.2 board and looks like it does not start either locally or through SSH (access deny). I tried many raspbians (jessie etc.) without success; I restarted many times from scratch.
I get message like "impossible to read config/craftbeerpiboot: no such file ..."
Can you provide some guidance as I did it a year ago without issue ?
 

Attachments

  • IMG_8558.jpg
    IMG_8558.jpg
    2.3 MB · Views: 79
Thanks for the answer:
I used sudo ./install.sh
I don't know where to find the installation log:

i get ( sorry it is in french)


fatal: impossible de se connecter à git.drogon.net :
git.drogon.net[0: 2a03:9800:10:7b::2]: errno=Connexion refusée
git.drogon.net[1: 188.246.205.22]: errno=Connexion refusée

Could not open requirements file: [Errno 2] Aucun fichier ou dossier de ce type: 'requirements.txt'
mv: impossible d'évaluer './config/splash.png': Aucun fichier ou dossier de ce type
sed: impossible de lire config/craftbeerpiboot: Aucun fichier ou dossier de ce type
sed: impossible de lire config/craftbeerpiboot: Aucun fichier ou dossier de ce type
fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git
fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git
fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git
 
Last edited:
OK. Now I have access to Craftbeerpi3 interface but choosing the relayboard type for actors (pumps & heater) result in them being on as default : I believe they are inverted in CBPI3.
Also when I activate the heater, it turns it off. But when i do it for pump, nothing happens: it stays on.

Any advice to proceed ?
 
Easiest way for me (and probably other candidates to install CBPI3) would be to get an SD disk image: in my case one working for Raspberry PI 3 B v1.2.
If somebody can be kind enough to share such a compressed file ?

Thanks.
 
OK. Now I have access to Craftbeerpi3 interface but choosing the relayboard type for actors (pumps & heater) result in them being on as default : I believe they are inverted in CBPI3.
Also when I activate the heater, it turns it off. But when i do it for pump, nothing happens: it stays on.

Any advice to proceed ?
Realyboard actors are the inverse of GPIO ones. Just change if they are inverted for your hardware.
 
Yes but GPIO or relays get same (wrong) results in my case

So I am progressing :
1. I installed craftbeerpi SD image I found here: http://unofficialpi.org/Distros/CraftBeerPiOS/ and follow the provided guide.
2. Due to "requirements" issue, I run "pi install -r requirements.txt" command to complete installation
3. I manually updated my WPA WIFI setup using
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

and now I have access to craftbeerpi2 and will check I can activate pumps, probes correctly.

looks like a sherlock holmes story to me. I will clearly welcome V4
 
Last update:
Heating SSR is working fine but the pumps using 5v relays are always on when chosen GPIO pins are connected. Inverted box checked does not change anything. Something is still wrong in my config.
 
Last update:
Heating SSR is working fine but the pumps using 5v relays are always on when chosen GPIO pins are connected. Inverted box checked does not change anything. Something is still wrong in my config.

Check how you wired your pump on the relay board. I image using Com and NC (normally closed) will yield an always on state regardless of the relay board actor settings. Try using Com and NO (normally open). The OFF state will prevent voltage from Com getting tinted NO contact because voltage will be going to the NC contact (nothing connected). The ON state will send voltage from Com to NO, thus turning on your pump.
 
I have already installed 3 times Raspbery and CBPI 3.0 can not start - error This site can’t be reached 192.168.43.5 refused to connect. Help me please.
 
Check how you wired your pump on the relay board. I image using Com and NC (normally closed) will yield an always on state regardless of the relay board actor settings. Try using Com and NO (normally open). The OFF state will prevent voltage from Com getting tinted NO contact because voltage will be going to the NC contact (nothing connected). The ON state will send voltage from Com to NO, thus turning on your pump.

thanks for the support: I believe relays wiring is correct (GPIO (x2) + 5V + ground) as it was ok before and when I unplug the GPIO cable, relay led turns off.

As configuration does not work correctly through CBPI hardware configuration, where can I find the file to edit & put COM and NO ?
 
Last edited:
thanks for the support: I believe relays wiring is correct (GPIO (x2) + 5V + ground) as it was ok before and when I unplug the GPIO cable, relay led turns off.

As configuration does not work correctly through CBPI hardware configuration, where can I find the file to edit & put COM and NO ?

If you could post pictures of the relay board you are using and how you have it wired up it, which GPIO pins you are using, etc it might be easier to diagnose your issues.
 
The GPIO output 3,3V , may be the 5V relay do not trigger.

I believe I wasn't clear: on relay I need to plug 3 cables : one for GPIO (with red led), one for ground & one for 5V (green led).
the relay seems to be activated (red led) as soon as CBPI is starting
When I remove the GPIO cable, the red led turns off: r:

When I change the GPIO setting into CBPI (inverted or not), I hear the relay working but led stays red
When I change GPIO value into CBPI, the red turns off.

As SSR for heating is working correctly, this seems weird: when I use the very same GPIO for SSR, it work fine.
Same issue if I configure the pumps as "heaters" so CBPI seems ok, just I don't understand why relay is activated when I set GPIO... maybe a very low voltage is going through, enough to activate the relay when I choose a GPIO ?
 
Last edited:
As I said in the previous post, the more details, pictures you can provide the easier it will be to get help. Lalo is probable the most knowledgeable guy on here when it comes to CBPi and he helped me immensely when I built my control panel which was complicated because it was originally designed for a BCS-462 controller. I replaced that controller with a Pi and he helped me figure out a number of things.
PanelWiring3.jpg
What relay board you are using, whether it is active high or low makes a difference in how you set things up or if it will even work. Which GPIO pins you use can make a difference too since they vary as to their state at boot up and once the Pi is fully booted.
PiGPIOStates copy.jpg
The more information you can provide the more likely that someone will be able to help.
Also it sounds like you are trying to activate your SSRs with your relay board which isn't a good idea. Mechanical relays aren't designed to turn on and off at the frequency that SSRs require and you'll likely burn the relays out.
 
Last edited:
fwiw, all of the single/dual/quad/octal relay boards I've worked with are 5V devices through and through, and a 3.3V GPIO input may not be enough for the optocouplers to work properly...

Cheers!
 
If you could post pictures of the relay board you are using and how you have it wired up it, which GPIO pins you are using, etc it might be easier to diagnose your issues.

I enclosed 2 pictures showing the relays used:
I use GPIO 17 & 19 for relays.
As I said, as soon as they are connected to PI, they both turn red (meaning activated ?).
When I check inverted, I can hear the relay moving but light stays red. When I remove the corresponding GPIO cable, red light turns off.

Every thing is working fine on SSR used for heating (GPIO 18). I can easely invert it. I tried SSR on 17 or 19 and this is also OK; I am wondering if there is a permanent electricity leak into GPIO than can permanently activate the relays... but this might be stupid idea.
 

Attachments

  • IMG_8613.jpg
    IMG_8613.jpg
    1.1 MB · Views: 119
  • IMG_8611.jpg
    IMG_8611.jpg
    824.4 KB · Views: 115
this might be the issue but I don't really understand the logic because as soon as the GPIO are connected, the red leds turn on. by inverting GPIO, I can hear relays moving but lights are still on...
I enclosed picture. Any alternative relays you may propose to solve this ?

Thanks a lot for the support,
 
Last edited:
OK SOLVED !
I was applying 5V to my 2 relays module. I switched to 3.3V pin and this is now ok.
So I have now CBPI2.2 running fine. Next trail will be to install CBPI3 finding the right distrib.
Cheers and thanks a lot for your support.
 

Attachments

  • IMG_8613.jpg
    IMG_8613.jpg
    1.1 MB · Views: 58
  • IMG_8611.jpg
    IMG_8611.jpg
    824.4 KB · Views: 61
Trying to make CBPI3 running : I used 2017-07-05 jessie distribution, install Craftbeerpi3 (choosing update option at first step...)
Applied all "sudo pip..." command I found here:
https://www.reddit.com/r/craftbeerpi/comments/brx8xt/cbpi3_woes/

run "pip install -r requirements.txt"

after each start I need through SSH access to access raspberry, enter craftbeerpi3 directory and run "sudo ./run.py".
Something is clearly not set correctly.

Hope somebody can help to get a clear install ( I can create SD image & share)
 
Using the CBPi3 master located here:
https://github.com/Manuel83/craftbeerpi3
I never had any issues installing CBPi3 on my Pi3B+ under Stretch and recently Buster using the simple instructions found on the CBPi website.
http://web.craftbeerpi.com/installation/
Just make sure you clone in the right version of CBPi, not the one shown at the beginning of the commandline installation instructions. If you use anything other than the "master" found on the page I linked you'll likely have issues. The master seems to be the last properly working version so I did not try to update it and it works fine with both versions of Raspbian. I did all my installations using a newly formatted SD and a fresh Raspbian install which may be why I never had any issues.

Edit: I just tried to do a new install of CBPi3 on a spare SD that was imaged with Stretch and there is definitely some issues that weren't previously there. I ended up using this video to get it up and running.
 
Last edited:

Latest posts

Back
Top