Made a pretty big dent in Grain Brain tonight. Or, more accurately, I drank beer while figuring out how I’m eventually going to wire a ridiculous amount of stuff together.
I think I’ve finally got the entire low-voltage side planned out. Nothing actually got wired tonight. This was mostly figuring everything out on paper before I start connecting things and releasing the factory-installed smoke from the Raspberry Pi.
The Pi is going to monitor three flow meters, the mash temperature, and RTDs in both the HLT and boil kettle. The HLT and BK temps will use MAX31865 boards with 3-wire RTDs, and the mash tun gets a DS18B20. I’ve also got the GPIO assignments figured out for everything so hopefully I don’t discover halfway through that I’ve assigned one pin six different jobs.
The BrewZilla pumps are going to be controlled through 12V ice-cube relays. The Pi isn’t going to drive those directly. It’ll trigger a little 2N2222 transistor circuit, which will switch the relay coil. I install a diode across it because when the relay shuts off, the collapsing magnetic field can kick a voltage spike backward. The diode gives that spike somewhere harmless to go instead of beating the crap out of the transistor.
The heating-element SSRs will also be controlled through transistor circuits. The Pi supplies the 3.3V and 5V we need, and I bought a separate 12V power supply for the pump relays. I’m also going to fuse the 3.3V, 5V, and 12V feeds individually. Fuse holders cost basically nothing, and I’d rather replace a 50-cent fuse than explain to myself why I just murdered a Raspberry Pi.
I also finally settled on how I’m building the wiring inside the cabinet. DIN rail and terminal blocks for distribution, perfboard for the little transistor/resistor/diode circuits, screw terminals where it makes sense, ferrules, heat shrink, braided sleeving, and color-coded wire. Each sensor/device will basically have its own little harness so six months from now I don’t open the cabinet and discover a plate of spaghetti.
And because apparently I hate having money, I’ve ordered a pile of parts over the last few days: DIN rail and terminal blocks, MAX31865 boards, RTD probes, DS18B20 stuff, 2N2222 transistors, resistors, diodes, 12V relays, a 12V power supply, perfboard, screw terminals, wire, ferrules, sleeving, heat shrink, panel-mount USB/HDMI/power stuff, flow-meter hardware, switches, indicator lights, and enough miscellaneous electrical crap that Amazon probably thinks I’m building either a brewery controller or a poorly funded submarine.
Tomorrow I’ll probably start physically laying some of this stuff out.
Tonight, however, I’ve moved on to an Old Rasputin and have officially reached the point where Grain Brain electrical work has ceased for the evening.
Grain Brain
Better Than the Raccoon Toaster™