Shoot, just realized I forgot to update this thread after rebuilding my battery. I'm running on 44v now, which is alright, I just need a new BMS and charger so I don't have to check the voltage every few minutes while charging. In any case, using the code given above, and tweaking a few of the throttle voltage values to more precisely match my throttle, I am happy with the project as it stands. I have been using this to go everywhere for some time now, and I can happily say I have found no glitches, and it works just fine. The shutoff is instant, and power up is as fast as the built-in soft start will allow. I would recommend this project to anybody looking to have some of the functionality of a CA, with a far lower cost. My all-in cost for this project was $5 for the Arduino (an Amazon clone of the real thing), $17 for the contactless current sensor, and some wires, resistors, and a capacitor I had just laying about, so a total of $22-25, depending on your part sources. I might yet make some more refinements, and if I do, I'll make sure to post them here, but I believe this can stand on its own as a fully complete project. It would, in theory, be possible to implement a bunch of other functions, I just don't have any use for them right now. The Arduino has 4 more analog inputs available, and 13 more digital input/outputs, with the capability to run a basic LCD, so it should be quite possible to make something with more functionality than this project.