Simulation
I was working on the Krysalis robotic hand, and before ordering the rev B PCBs, I wanted to do everything I could so that they wouldn't instantly fail on the bench. I ran hours of simulation in a combined test suite that included MuJoCo for the assembly, and KiCad and ngspice for the electrical side. I then used SIL and combined data feeds to recreate the whole system virtually.
I ran the suite over and over, and once it was pretty clean, the last run had no surprises. At that point, 66 of the 71 checks passed, three were known cases I had already accepted, and two failed. One of them was the motor current budget, which was 10 mA over the power cutoff. That's a one-line firmware fix, not a hardware change.
I still don't fully trust the numbers, and I won't truly know how the system will perform until I'm testing it on the bench.
Built with ngspice · MuJoCo · Python · zig cc · arduino-cli · KiCad