• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

CraftBeerPi - Raspberry Pi Software

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
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
  • IMG_8611.jpg
    IMG_8611.jpg
    824.4 KB
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
  • IMG_8611.jpg
    IMG_8611.jpg
    824.4 KB
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:
Hi, this does not work . Is it possible to share a running zipped image of craftbeerpi3 ( B v1.2 board)
If not I will keep investigating but sometimes it works and... don’t after reboot
 
Still able to access CBPi3 after some reboot ? No in my current install ( done following the movie above)

edit: finally up & running thanks to facebook group & Miha Zivkovic:

I did :

1. $ git clone https://github.com/Manuel83/craftbeerpi3
This will download (clone) the software to your local Raspberry Pi.

2. Install WiringPI

○ $ sudo apt-get purge wiringpi
○ $ hash -r
○ $ sudo apt-get update
○ $ sudo apt-get upgrade
○ $ git clone https://github.com/WiringPi/WiringPi
○ $ cd WiringPi
○ $ ./build

3. $ cd /home/pi/craftbeerpi3 to navigate into the craftbeerpi3 folder. (you are now in the folder craftbeerpi3)

4. sudo ./install.sh (Don't select wiringPI)
 
Last edited:
Bit of a question regarding elements.

I’m in limbo at the moment, in regards to what I’m doing with my current house, selling it, keeping it to rent, staying.

I currently have a 15amp 240v circuit that I use for brewing, but 3600w is not enough for my new 95L 1V system. My options are 4500w or 5500w

I would like to put a 5500w element in, but that would require me to get new heavier wiring installed rather than just an upgraded circuit breaker and new 20amp faceplate to run the 4500w. Cheap 5min job vs more cost.

My question, can I get the 5500w and set cbpi to use it at a max of 80% via pwm to use it on the 20amp circuit? (ie set a hard ceiling, so it never uses 100%)

If I move, I will get a 30amp installed, but being able to set it up to work now on a 20amp would save me from having to buy 2 seperate elements.
 
Still able to access CBPi3 after some reboot ? No in my current install ( done following the movie above)

edit: finally up & running thanks to facebook group & Miha Zivkovic:

I did :

1. $ git clone https://github.com/Manuel83/craftbeerpi3
This will download (clone) the software to your local Raspberry Pi.

2. Install WiringPI

○ $ sudo apt-get purge wiringpi
○ $ hash -r
○ $ sudo apt-get update
○ $ sudo apt-get upgrade
○ $ git clone https://github.com/WiringPi/WiringPi
○ $ cd WiringPi
○ $ ./build

3. $ cd /home/pi/craftbeerpi3 to navigate into the craftbeerpi3 folder. (you are now in the folder craftbeerpi3)

4. sudo ./install.sh (Don't select wiringPI)


I love you.

I've never done crap like this, got everything wired and was just following the install guide and ran into the issue with this.
 
I can't seem to get any of the GPIO pins to talk. I've tried setting them, rebooting the program, rebooting the raspi. I'm sure I have the GPIO numbers correct on my pumps. I know the relay is being fed 5volts, and I know the AC wiring is correct.

Might have an issue with wiringpi?

With the pump turned on in the GUI, GPIO 24, I'm getting no voltage to ground. If the GPIO is "turned on" I should be getting 5 volts if I'm not mistaken?

This is craftbeerpi 2.2
 
Last edited:
What do you see on GPIO24 when it is not "turned on"?
Many if not most brewing applications that intend to drive relays have the control GPIO pins configured as "Low Active" (ie: they'll read close to GND when the attached device is supposed to be "On", and 3.3V when the device is supposed to be "Off")...

Cheers!
 
I have no voltage from GPIO24 to ground when turned "On" in craft beer pi. The voltage is the same when it's off. The software doesn't seem to be affecting the hardware.

Am I right to assume that craftbeerpi talks to wiringpi to set paramaters? If so maybe thats where the issue is.

I don't do software, just kind figuring stuff out as I go along.
 
I can't seem to get any of the GPIO pins to talk. I've tried setting them, rebooting the program, rebooting the raspi. I'm sure I have the GPIO numbers correct on my pumps. I know the relay is being fed 5volts, and I know the AC wiring is correct.

Might have an issue with wiringpi?

With the pump turned on in the GUI, GPIO 24, I'm getting no voltage to ground. If the GPIO is "turned on" I should be getting 5 volts if I'm not mistaken?

This is craftbeerpi 2.2

You may want to join the CraftbeerPi Facebook group. There was an in depth post about how CBPi needs to be installed about a week ago. There are issues with WiringPi and it's recommended that it not be installed at all. Also you really should be using CBPi3 rather than version 2.2 as 2.2 isn't supported anymore and may have issues with Buster, the latest Rasbian version.
Also, if you can give more details and maybe pictures of your panel wiring it would make it easier for people help you if you have issues. There are some really knowledgeable folks here and they helped me a great deal when I was sorting out my Pi build.
Good luck with your build.
 
Thanks, I sent a request to join the group.

I installed 2.2 because I was following the website instructions, didn't realize they were outdated. I'll give 3.0 a shot.
 
Just an update

Installed craftbeerpi 3.0, skipped wiring pi. Everything set up flawlessly except my one wire wouldn't work but was able to google an answer for that. It's all up and running finally. They zipties are temporary, lol.
 

Attachments

  • MVIMG_20190902_120905.jpg
    MVIMG_20190902_120905.jpg
    283 KB
I am having trouble calibrating my DS18S20 sensors for fermentation. I chose an offset based on icewater to make them 0. Then I measured room temperature and the error was at least 3 degrees using 5 sensors. Is there a more accurate way of calibrating sensors other than offset based?
 
I am having trouble calibrating my DS18S20 sensors for fermentation. I chose an offset based on icewater to make them 0. Then I measured room temperature and the error was at least 3 degrees using 5 sensors. Is there a more accurate way of calibrating sensors other than offset based?
In general, yes. Specific to this project, no. Any such calibration would have to be supported by the code.

The good news is you really don't need that wide of a calibration range. Calibrate your sensor for the midpoint of your process and it will be more than close enough.
 
Thanks @LBussy, I did it. Now my cooling relay actuator is firing when it should stop. I need to invert the logic. Is there a setting for that?
 
I'm sure there is, I don't know how to do it. I just follow this thread because I find it interesting, not because I know anything about CBP. :)

One of the others will be along shortly I imagine.
 
There are 2 basic actuators for relay, GPIOSimple & RealyBoard. Both do the same but with inverted logic. GPIOSimple will output hi logic when the relay should be on.
Pay attention also the the thresholds in the fermenter definitions. The ON offset should be > than the off one.
 
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.



This worked like a champ!! Thanks.
 
Hi guys, has anyone had issues with their DS18B20 probes where the rating on Cbpi just locks up and stops changing even though the temperature is still climbing? Its happening to me a lot the last few days and I cant see why?
 

Latest posts

Back
Top