• 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.
Anyone know why I get this error when trying to download and install CBPI 4?

pi@raspberrypi:~ $ git clone https://github.com/manue183/craftbeerpi
Cloning into 'craftbeerpi'...
Username for 'GitHub: Where the world builds software': ************
Password for 'https://[email protected]': **********
remote: Repository not found.
fatal: repository 'https://github.com/manue183/craftbeerpi/' not found


Thats the 2.2 branch?

https://craftbeerpi.gitbook.io/craftbeerpi4/
 
Last edited:
It's not. There are UI elements you can play with and you can then your actors on and off, read sensors but that's about it. There's a PID auto tune plugin you can install, I dunno if it works. I can't seem to get the PIDboil plugin to work.

There's also a mainstream channel and a development channel. It all gets kinda confusing. Best to stick to CBPI3 for now. And even then don't use his GitHub for that it's broken. You can use the python 3 version I quoted up above or the brewchef version.
 
Last edited:
Everytime it's come back blank for me I've spent multiple hours googling what the hell is wrong with the software and everytime it's been a problem with the hardware, wire came loose.
Well, I've had the chance to double check my wiring, and it looks good per the attached drawing I've seen floating around on here. However, someone recommended I use a 2.2K resistor instead of the 4.7K one. Just to be sure that wasn't causing a problem, I doubled two of my 2.2K resistor's in series for 4.4K total. This still didn't cause them to show up either in the RPi file system or under the CBPi 3.0 Equipment setup- Add Sensor- Select Sensor pull down. Thoughts?
 

Attachments

  • CraftBeerPi Wiring.png
    CraftBeerPi Wiring.png
    317.4 KB
The wiring is ok, and will work with any resistor between 1k and 5k.
Just to be sure the gpio4 is not broken you could set up onewire bus on a diferent pin.
I have used gpio17 some times, just change /boot/config.txt to:
dtoverlay=w1-gpio,gpiopin=17

Do you have another micro, as an arduino or similar, to test the sensors?
 
Posting a few pictures of my system wiring. Perhaps it'll help. I’ve tried 2 different sensors. One from Arber and a generic ds18b20.
 

Attachments

  • 7C522A7A-145F-485D-A34D-0292F0BBE359.jpeg
    7C522A7A-145F-485D-A34D-0292F0BBE359.jpeg
    1.4 MB
  • BEFBAA54-A290-487E-8298-68B7C9A1849A.jpeg
    BEFBAA54-A290-487E-8298-68B7C9A1849A.jpeg
    1.3 MB
  • FA6A5709-5644-48F9-9CE3-52F3BDB5113D.jpeg
    FA6A5709-5644-48F9-9CE3-52F3BDB5113D.jpeg
    2.7 MB
I think it looks fine.

Have you tried hooking up a sensor w/o the disconnect to see if you can get a reading? Also IIRC 1 wires can't be plugged in after boot. The sensors have to be connected then the PI booted.
 
Last edited:
It is true that hot-plugging One-Wire devices is an iffy proposition wrt device recognition.
It usually works, but often doesn't. Won't break anything, just needs a reboot.

I might have missed it, but raspi-config provides an enable for the One-Wire function that may need setting...

Cheers!
 
Have you tried hooking up a sensor w/o the disconnect to see if you can get a reading? Also IIRC 1 wires can't be plugged in after boot. The sensors have to be connected then the PI booted.
I'm glad you kept pushing this Phoenix. That pushed me to remove the wires run to the terminal and It turns out that I had a small short between data and VCC where I connected to the hat! Once I found that I did a quick test, connecting a sensor directly and it showed up fine. Thanks!!
Next I need to figure out how to set up my 5500W element. Do I set it for GPIOPWM? If so, what frequency? I'm connected to GPIO18.
 

Attachments

  • 1616361236450.png
    1616361236450.png
    371.7 KB
I'm glad you kept pushing this Phoenix. That pushed me to remove the wires run to the terminal and It turns out that I had a small short between data and VCC where I connected to the hat! Once I found that I did a quick test, connecting a sensor directly and it showed up fine. Thanks!!
Next I need to figure out how to set up my 5500W element. Do I set it for GPIOPWM? If so, what frequency? I'm connected to GPIO18.

I'm glad you got it sorted.

GPIOSimple/GPIOPWM - Depends on what you are using the element for. GPIOSimple is an on/off switch. GPIOPWM allows you to make adjustments to the power level. I've never entered a value into the frequency tab, and according to the amp meter I have installed, it just seem to work, so there's some sort of default value that's not shown. Papacap above might know more about how it all works. I couldn't find any definitive answer so I punted and just left that **** blank.
 
I do have it on an ssr, powered via a ULN2003 from GPIO18.
I'm getting Actor Error: Failed to setup actor 5500W BK Element. Please check the configuration
 
Anyone using this I/O board in a Raspi-based brewery controller?

IONO Pi

Not the cheapest solution at $113 but seems to have everything needed for controlling up to 3 SSRs (via open collector outputs), One-Wire interface on GPIO4 (plus 3 other GPIO) and 4 pumps @ 120V (via NO SPST relays). Looks to be a viable solution for someone wanting an all-in-one interface board. Also, has built-in poly-fuse on 9-24V power supply input, which I’ve not seen on any of the custom CBPI boards. There is also a CM Pi model with built-in PT-100/PT-1000 support, but that is even more costly.


That looks nice. I have been using a Henao Technologies board (out of business?) with expansion (pic here). But I hate wiring up the Max31865 boards. And, I think one of the expansion slots has failed, because I'm no longer getting readings despite replacing the max31865. Can you link to the CM Pi model with built-in PT-100/PT-1000 support, I couldn't find it?
 
Ok, so I've been able to double check my wiring to the SSR from the GPIO18. It all looked good, so I checked to see if the GPIO is firing. It's not. I tried others as well, and none are firing. Thoughts?
 
This is going to be long winded.... I'm not good at the raspberry pi so hopefully folks can chime in if I'm wrong. I'm gonna give you what I'd do from my experience....

I think I saw your post on facebook about how you installed CBPI. I tried that once, and it didn't work, and even the article has a modification saying using a different repo would be beneficial.

(Installing CraftBeerPi)


If you currently have CBPI to auto start, SSH into your pi, then:

CD craftbeerpi3
sudo ./install.sh
Should pop up a screen
Disable autostart. Start on boot, or whatever it's called.

This will allow you to keep your progress with your current system if what I tell you to do doesn't work. Then type:

cd (should return you to the root file system)
sudo mkdir CBPI3test
sudo git clone BrewChef/craftbeerpi3
This should download everything you need to run.
cd craftbeerpi3
sudo ./install.sh

This will be the same exact screen as you've seen.
Install Craftbeerpi3
Add to autostart if you want.
Start Craftbeerpi

What I do know is this is a more updated repository that includes everything to actually run, from my experience, and is how I currently run my craftbeerpi without issues.

What I DO NOT KNOW (and whoever reads this that actually codes could clue me in) is if this will have any conflicts with the currently installed CBPI3. From my limited knowledge of this system is these two will run independently from each other, but again I don't actually know.

The definite downside of what I'm having you do is you have to start over, add your sensors, actors, kettles, etc all over again. If you kept a list of your GPIO numbers and what they all lead to, this will take 5 minutes....and hopefully work.

Gonna end this with the fact that I don't actually know what I'm doing, I'm just trying to help given my experience.

Best of luck!
 
Last edited:
cd (should return you to the root file system)
sudo mkdir CBPI3test
sudo git clone BrewChef/craftbeerpi3
This should download everything you need to run.

Phoenix, thanks for jumping in here! I finally was able to try this today. Here's where I'm at:
pi@raspberrypi:~ $ sudo git clone BrewChef/craftbeerpi3
fatal: repository 'BrewChef/craftbeerpi3' does not exist

Edit: I see the problem. It should have had the actual web address:
sudo git clone BrewChef/craftbeerpi3

I had to change the name of the existing file craftbeerpi3 to craftbeerpi3test to do this. I'm hoping if this fails, I can just change the name back and it'll work fine...
 
Last edited:
What I do know is this is a more updated repository that includes everything to actually run, from my experience, and is how I currently run my craftbeerpi without issues.

I've completed the steps you laid out and it seems to put me back where I was. However, this does seem like a more complete load. I noticed it automatically installs several plugins (or perhaps it pulled from the ones I previously installed). I didn't have to install anything else to get it up and running, so this is definitely a better load!

The definite downside of what I'm having you do is you have to start over, add your sensors, actors, kettles, etc all over again. If you kept a list of your GPIO numbers and what they all lead to, this will take 5 minutes....and hopefully work.

Gonna end this with the fact that I don't actually know what I'm doing, I'm just trying to help given my experience.

I appreciate any help sir! Setup is easy in CBPi3, so this was a snap, but I'm still seeing the same problem where I get
Actor Error
Failed to setup actor BK 5500W Element. Please check the configuraiton

So perhaps it's not a software issue after all. I have confirmed I'm attached the the right GPIO's and I've confirmed with a meter that they are not firing when I fire them in CBPi. I'm checking this right on the pins of my HAT between GND and IO18. I believe I should see 3.3VDC there when fired from CBPi...

Another possibility is that I might not be controlling it correctly in CBPi, but I don't think so since I'm getting that Actor Error.
Under the Brewing tab I go to my Brew Kettle, select the arrow in the upper right, and Set Target Temp to something over ambient temp. Then I click the go button with the little car to fire the Actor. There's no operation guide that I can find, so I'm just going by intuition here. Can someone confirm I'm doing this right?
1616860408211.png
 
Couple of things....

Sorry bout the link to the brewchef repo, I didn't realize HBT automatically converted it to a hyperlink. I'm glad you figured out what I was trying to tell ya.

Did you rename the original craftbeerpi3 folder before or after git clone? I'm going to assume it errored out that's why you had to rename it before cloning? Reading through my post I forgot to include a step heh

sudo mkdir CBPI3test
cd CBPI3test
sudo git clone BrewChef/craftbeerpi3

Also yes, sorry for not warning you, the brewchef ones come with plugins already installed. They are harmless, you can disable them or leave them enabled it's no big deal.

As far as hardware/software issue - I'm still leaning towards software. The GPIO pins just turn on or off based on input from the software. There is no feedback when it comes to actors like elements or pumps like your previous issue with the temp sensors. So if there's no voltage between the GPIO you've assigned and ground, the software isn't telling the hardware to turn it on, and the hardware isn't telling the RPI it isn't working, cause it simply can't in this particular situation.

The car is auto mode, you are doing it right. You set the temp and it will fire and cut off at whatever parameter you set, in this case 217. Once you get this settled temperature control gets more involved cause the default parameters don't do a great job at holding that temp but we can get to that once the element actually fires.

The button to the right of it with the lightning bolt is going to be power. If the actor is set for GPIOPWM, it will default to 100. The same arrow you click to set temp you'll see an option for heater power. If you set it to a number between 1-100 it will cycle the element on and off to maintain that power between 1%-100%

One thing I did notice from your image, I've circled in the image below. Did you originally have this GPIO type going to relay board then change it to GPIOPWM ? Make sure you are hitting update and not close. If so maybe it's not saving your changes. I don't use a relay board, so I can't help you there if you are. You've posted before there is a ULN2003 between the RPI and the SSR. I don't know much about it, I'm going to assume it's to step up the voltage to trigger the SSR. If so I don't believe you'd use the relayboard type, CBPI won't care there's something in the middle of it and the SSR, the array would just step up the voltage.


1616864735696.png


I've also attached a screenshot of my brewery and how mine is listed when setup and saved correctly

1616864537247.png


Anecdotally, I know folks say you need to step up the RPIs voltage to the ssr, but my ssrs are all rated for 3-24v and I've never had a problem, so if the software is actually changing, maybe go straight from the RPI to the SSR (if your SSR is rated as low as 3v to trigger) and see if it fires then. I still believe you should have a voltage step up, and frankly I SHOULD include a voltage step up, but I forgot when I built my panel and I'm too lazy to add one until it stops working.

Also, while testing, make sure your elements submerged in water. Dry firing it is no good.

Ultimately, I still think it's a software thing. I'm not sure if you'd be keen to just reformatting the card and starting from scratch to make sure the original outdated install isn't messing with the brewchef install. Might be worth a shot if none of the above seems to work out.
 
Last edited:
Did you rename the original craftbeerpi3 folder before or after git clone? I'm going to assume it errored out that's why you had to rename it before cloning? Reading through my post I forgot to include a step heh

sudo mkdir CBPI3test
cd CBPI3test
sudo git clone BrewChef/craftbeerpi3
I did rename the folder, and now that makes sense to go to that directory to do the test...

One thing I did notice from your image, I've circled in the image below. Did you originally have this GPIO type going to relay board then change it to GPIOPWM ? Make sure you are hitting update and not close. If so maybe it's not saving your changes. I don't use a relay board, so I can't help you there if you are. You've posted before there is a ULN2003 between the RPI and the SSR. I don't know much about it, I'm going to assume it's to step up the voltage to trigger the SSR. If so I don't believe you'd use the relayboard type, CBPI won't care there's something in the middle of it and the SSR, the array would just step up the voltage.

I was just trying the other GPIO types to see if one of those worked. You are right about the ULN. I'm using it to switch 5V to the SSR. The SSR says it will trigger at 3V, but I figured I'd try removing the ULN if I was getting the 3.3V on the GPIO and it still wasn't triggering the SSR. I'm using a little ULN2003 motor driver board so I can use the connections.
1616877954198.png

Also, while testing, make sure your elements submerged in water. Dry firing it is no good.

Ultimately, I still think it's a software thing. I'm not sure if you'd be keen to just reformatting the card and starting from scratch to make sure the original outdated install isn't messing with the brewchef install. Might be worth a shot if none of the above seems to work out.

I don't even have the element plugged in to the control panel yet. I figured it'd be alright to fire the SSR without it being attached, and then I'd get the little LED on the SSR to tell me it fired. Once I have that going, then I'll try a live test. Hopefully that won't hurt anything.

I feel like it's the software as well, and I'm not opposed to starting over. It's not a huge process anyway now that I've done it once (or 1 & 1/2 times if you include the CBPi3 loads).

Thanks again!
 
Any luck?
Thanks for checking in, Phoenix. Unfortunately, I've been traveling for work all week and haven't been able to do anything! I'm hoping I can get some work in on it Saturday morning. My plan is to wipe the Pi and reload everything from scratch...
 
Last week i started building a controller box for a new HERMS brewery and chose for a rpi 4b with craftbeerpi. As a reference I used the descriptions on the cbpi website, the leaningman guide and a guide on a dutch craftbeer forum. So far so good, software installed, hardware built.

The ds18b20 sensors work like a charm in the user interface, but the SSR that switches my HLT hearing element does not. I used two jumper cables, one on the + side on the DC side of the SSR (fotek 40A DA front aliexpress) to GPIO 18 and a jumper cable from the - to a GND gpio. Trying to switch on the heater using the UI doesn't work.

I checked the SSR using two 1.5v batteries in serial to check if the SSR works and it does so 3.3v from gpio 18 should be sufficient.

My guess is that this might be a software issue but i am a complete newbie to RPI.

Has anyone had the same problem as I have? How can I get the SSR to respond to cbpi? Many thanks in advance
 
Back
Top