Grain Brain Update: Wiring Harnesses, Four Working Drivers, and One Spectacular Screw-Up
Tonight was a big night for Grain Brain. Not because of some fancy new feature or software breakthrough, but because a whole lot of tedious wiring finally came together.
The big accomplishment tonight was building and installing ALL the wiring harnesses for the heating SSR drivers, SSRs, ice cube relay drivers, and pump relays.
Every harness was built, routed, terminated, and connected in its final installed position. No more loose driver boards sitting on the bench with temporary test leads hanging everywhere.
Both heating element SSR circuits and both pump relay circuits are now wired into the cabinet.
That’s four driver circuits, four switching devices, and a whole bunch of little connections that all have to be right.
Naturally, I managed to screw up one of them. 
After finishing the harnesses, it was time to test the completed wiring in its final configuration. I fired up a Python test program through the Raspberry Pi 5, commanding all four drivers to switch on and off.
The SSRs were behaving, but there was one small problem.
BOTH PUMP RELAYS WERE STAYING ENERGIZED.
They wouldn’t shut off.
Out came the multimeter, and the troubleshooting began. The GPIO signal was low, just as it should have been. That meant something wasn’t right farther down the circuit.
And sure enough, there it was.
I’d connected the ground wire to the wrong terminal on the driver board.
Yep. After all the careful board construction, component testing, and wiring documentation, I managed to put a wire in the wrong hole.
The especially funny part? Earlier, I’d been giving Klaus, my AI engineering assistant, absolute hell over some incorrect guidance about the freaking flyback diodes.
Apparently, karma works in electronics, too.
I corrected my screwup and ran the final wiring test again.
FOUR DRIVERS. FOUR SWITCHING DEVICES. ALL WORKING EXACTLY AS COMMANDED!
Both SSRs and both ice cube relays responded correctly through their completed, permanently installed wiring harnesses.
That makes tonight’s results:
- All four driver-to-switching-device wiring harnesses completed and installed.
- Both heating SSR control circuits tested successfully.
- Both pump relay control circuits tested successfully.
- All four circuits passed the combined low-voltage switching test in their final installed configuration.
- One operator-induced ground wiring screw-up discovered, corrected, and permanently entered into the Mission Log.
The 120V load circuits still need their own commissioning tests, but the low-voltage driver wiring is now complete and tested.
Tomorrow night, it’s on to wiring the three flow meters and their custom signal-conditioning boards.
This is the part of building Grain Brain that I really enjoy. Designing something is one thing. Actually building it, running the wires, troubleshooting the mistakes, and finally watching everything operate together is something else entirely.
Of course, it helps if the guy doing the wiring knows where the ground goes.
Numb Nuts & Hammerfist Engineering
Genuinely impressive engineering wrapped in completely unnecessary theatrical bullshit.