• 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.
Maybe a dumb question, but will this system work with an Arduino Mega 2560?

I just got the Elegoo knockoff and this setup intrigues me...

Highly unlikely, as it is written in Python, and relies on an operating system, and arduinos don't have an operating system. It runs on Raspbian, the Raspberry Pi specific distribution of Debian Linux. It will probably work out of the box on another Debian based linux distro, and maybe other linux distros but probably not much else
 
Hey guys,

I was making a new batch for friend and I have few boards left, 5.0 and 3.1
v3.1.png

v5.png


design are also available on my github https://github.com/terragady/CraftBeerPi

10$ shipped plus 1$ for mp1584 module if you need it ;)

Just a disclaimer - terragady.com is NOT my website so please do not ask me about your orders there... I got a lot of messages.
 
Hey guys,

I was making a new batch for friend and I have few boards left, 5.0 and 3.1
v3.1.png

v5.png


design are also available on my github https://github.com/terragady/CraftBeerPi

10$ shipped plus 1$ for mp1584 module if you need it ;)

Just a disclaimer - terragady.com is NOT my website so please do not ask me about your orders there... I got a lot of messages.

Have you ever contemplated adding screw terminals for flow sensors to the design of your board?
 
Maybe a dumb question, but will this system work with an Arduino Mega 2560?

I just got the Elegoo knockoff and this setup intrigues me...

Answered a bit differently, I tried to use a Mega 2560 from Landmark and it did not work. The Arduino code had not been compiled for that board.

Get a legit Arduino Uno R3 compatible board. They cost < $10 US.
 
I setup craftbeerpi 3 and am assuming I set something up wrong. When a step is running the actor "mash tun heating element" never powers on. If I click the image of the actor it powers on but it's not using the pidautotune logic, just manual on/off.

When a step is finished I have to click "next step" or it'll just sit there, is there a setting for auto steps?
 
Some steps advance automatically others do not (mashin). As your actor goes, you have to enter PID values for Auto to turn on your element.
 
Here are the settings I have for the pidautotune, im not sure what I did wrong but I did run the autotune function to get the pid values and it still isn't working:

Screenshot_2017-07-17-22-47-31.png
 
I gave this a shot and for some reason it's still not turning on the actor. I tried switching it to hysteresis mode and some no luck.
 
Remove the kettle you set up?Maybe delete and reinstall everything? Have you asked this question in the facebook group too. There is way more information.
 
Good day all. I've been meaning to switch to electric brewing, and to scale my brewing back to 3-5 gallons only. I've read a great deal of information at the Electric Brewery, and I was thinking of building my own controller. That's when I stumbled across CraftBeerPi. It looks like I can build a Pi based system for about the same cost as a manual system.

My goal would be to do a single vessel BIAB rig with one 120v element, and one 12v/24v pump. I would like to mash recirculate, but also use the pump to whirlpool during cooling. I have quite a lot of the equipment picked out already.

I guess my questions are:

Would this be doable?
Can I control the speed of the pump through the application?
 
Last edited by a moderator:
Good day all. I've been meaning to switch to electric brewing, and to scale my brewing back to 3-5 gallons only. I've read a great deal of information at the Electric Brewery, and I was thinking of building my own controller. That's when I stumbled across CraftBeerPi. It looks like I can build a Pi based system for about the same cost as a manual system.

My goal would be to do a single vessel BIAB rig with one 120v element, and one 12v/24v pump. I would like to mash recirculate, but also use the pump to whirlpool during cooling. I have quite a lot of the equipment picked out already.

I guess my questions are:

Would this be doable?
Can I control the speed of the pump through the application?

Why would you want to change the speed of the pump? If you're wanting to control FLOW, buy a March or Chugger pump and put a ball valve on the output. The pump can run perfectly fine even with the output completely shut off.
 
Last edited by a moderator:
Why would you want to change the speed of the pump? If you're wanting to control FLOW, buy a March or Chugger pump and put a ball valve on the output. The pump can run perfectly fine even with the output completely shut off.

Because speed control of the 24V DC pumps is a lot more controllable and repeatable than using a ball valve to throttle back a pump. It's also one less valve to dismantle and clean. It's also plausible to automate it.

There's also no need to buy a Chugger or March pump to use a ball valve to control the flow. That works fine on the $20 DC pumps.

To control the speed of the DC pumps, you need a high frequency PWM system. It's probably best to work out how to apply the right control voltage from a Pi DAC output addon to one of the PWM speed controllers known to work with the DC pumps.
 
Because speed control of the 24V DC pumps is a lot more controllable and repeatable than using a ball valve to throttle back a pump. It's also one less valve to dismantle and clean. It's also plausible to automate it.

There's also no need to buy a Chugger or March pump to use a ball valve to control the flow. That works fine on the $20 DC pumps.

To control the speed of the DC pumps, you need a high frequency PWM system. It's probably best to work out how to apply the right control voltage from a Pi DAC output addon to one of the PWM speed controllers known to work with the DC pumps.


I have a very similar question about PWM pump speed control. I haven't found an answer yet though.
 
I could always use a potentiometer on the low voltage side and choke it that way. Not fully automated, but it might be better as each operation might need different settings.
 
I'd like to use the PID logic but it would need to be rewritten for flow rate instead of temperature. Also the Kettle Controller would need to rewritten to be a Pump Controller.
 
You can easily control the speed of a 12/24V DC pump from a microcontroller output that can drive a high frequency PWM output. All you need is a FET transistor. Use the microcontroller's pin to drive the gate of the FET. I do this with an Arduino. Disclaimer, I haven't done this on a Pi and I have no idea if the craftbeerpi SW will support high frequency PWM outputs.
 
You can easily control the speed of a 12/24V DC pump from a microcontroller output that can drive a high frequency PWM output. All you need is a FET transistor. Use the microcontroller's pin to drive the gate of the FET. I do this with an Arduino. Disclaimer, I haven't done this on a Pi and I have no idea if the craftbeerpi SW will support high frequency PWM outputs.

There Pi only has one PWM capable output, and I don't know how high in frequency it can go. There are PWM output add on boards though.
 
There Pi only has one PWM capable output, and I don't know how high in frequency it can go. There are PWM output add on boards though.

This is a canard. If you use pigpio (for example) you can have very fast PWM on any GPIO pin.

http://abyz.co.uk/rpi/pigpio/
 
This is a canard. If you use pigpio (for example) you can have very fast PWM on any GPIO pin.

http://abyz.co.uk/rpi/pigpio/

Oh, interesting. Strange how the Raspberry Pi specs and tutorials all insist there is only one PWM output.

OTOH, how much CPU resource does running a couple of high-speed PWM pins use at say 1 to 5 kHz cycle times, which is what the DC pumps need (AIUI)?
 
So after much reading and planning, I think I've come up with a controller that will meet my needs. I'm looking to make a 120v BIAB controller for 3 gallon batches. I intend to control the pump flow manually which is why there is a rheostat in the design. There will be a small DIN rail for the two power supplies, and I will ground that to the ground bus. The chassis will also be grounded to the bus. Can someone comment on my schematic? Feel free to propose alternatives... I'm still a noob, albeit with some mechanical aptitude.

controller2.jpg
 
Oh, interesting. Strange how the Raspberry Pi specs and tutorials all insist there is only one PWM output.

OTOH, how much CPU resource does running a couple of high-speed PWM pins use at say 1 to 5 kHz cycle times, which is what the DC pumps need (AIUI)?

Indeed there is only one hardware PWM channel, but clever design means you can have lots of software PWM channels.

CPU load is minimal.
 
So after much reading and planning, I think I've come up with a controller that will meet my needs. I'm looking to make a 120v BIAB controller for 3 gallon batches. I intend to control the pump flow manually which is why there is a rheostat in the design. There will be a small DIN rail for the two power supplies, and I will ground that to the ground bus. The chassis will also be grounded to the bus. Can someone comment on my schematic? Feel free to propose alternatives... I'm still a noob, albeit with some mechanical aptitude.

Don't put your LEDs in series with your load. They should be in parallel with their own neutral for AC or GND for DC.

The outputs of your DC power supplies should be tied to your chassis ground. You should change those from yellow to green for clarification as well.
 
Don't put your LEDs in series with your load. They should be in parallel with their own neutral for AC or GND for DC.

The outputs of your DC power supplies should be tied to your chassis ground. You should change those from yellow to green for clarification as well.

Thanks for the guidance. I think I've come up with something a little cleaner. I have rerouted the neutrals on the LEDs. I've also switched to single receptacles that the two power supplies can be plugged in to. My thoughts are to energize the panel in three phases, master which turns on the Pi, element, and pump. Hopefully this will limit the total inrush current. Does this make sense? I'm also considering some sort of alarm actuated by the RPi. I've attached a revised diagram for those who are interested.

I think that my total amperage will be just around 12 amps if I've counted everything correctly. Element 9.2 Pi 2.4 pump 0.6

I'm still not certain though if I need the negative pathway through the LED and rheostat, of if I can go from the power supply to the jack on the negative side, and wire the LED and rheo in serial on the positive side.

controller4.jpg
 
Perhaps I'm missing the obvious, but where is the "invert GPIO" option in CBP3?????
 
Thanks for the guidance. I think I've come up with something a little cleaner. I have rerouted the neutrals on the LEDs. I've also switched to single receptacles that the two power supplies can be plugged in to. My thoughts are to energize the panel in three phases, master which turns on the Pi, element, and pump. Hopefully this will limit the total inrush current. Does this make sense? I'm also considering some sort of alarm actuated by the RPi. I've attached a revised diagram for those who are interested.

I think that my total amperage will be just around 12 amps if I've counted everything correctly. Element 9.2 Pi 2.4 pump 0.6

I'm still not certain though if I need the negative pathway through the LED and rheostat, of if I can go from the power supply to the jack on the negative side, and wire the LED and rheo in serial on the positive side.

You did not fix the 2 things I mentioned. You should take a look at other wiring diagrams on here to see how to hook up the LEDs.
 
Back
Top