Hey guys !
I spotted this stuff about brake cutout switch importance... if you think you may turn the throttle while applying brake to the hub motor by accident then yep pretty important. Also equally, if you want regen to function efficient and intuitively... brake cutout is really the only way.
So the controller you received doesn't have the wires already? All that should be needed is to run a single thin wire along with the existing loom which goes for the throttle. Open the controller and post pics of the PCB to be sure, but most likely there will be a pad marked "EBS -" (near where the wires come out), solder this new wire to this pad.
The new wire running to "EBS -" (which for consistency with other infineon wiring colors I'm going to refer to as Yellow from now on) is connected (shorted) to one of the existing ground wires already present in the loom (just use the black wire going to the throttle... tap into it) to activate. So... run 2 wires to whatever switch you decide to use (must be normally open type switch) and whalla... you have a functional eBrake cutout (or regen).
With regards to the switch... I have many solutions for you as I have I employd one or the other of these on most of my builds - I am (literally) working on the thread for them and will update this post when it's finished with pictures in a little while (my goal for tonight, while waiting for a megapack to charge - 10S12P ) but there are methods as simple as visiting your local radioshack and getting a reed switch (the tiny kind) with N.C. contacts and mounting them beneath your brake pull housings attached with anything (glue, jbweld?, epoxy, ca) and then just attach a magnet to the moving part of your pull arm so when you pull them the magnet is moved away from the switch and it will go closed and short the Yellow wire to ground (5v ground). You could reverse this using a N.O. relay mounted towards the endpoint of the pulls travel, then place a magnet on the back of the pull so when you use the break the N.O. relay is closed by the magnet and eBrake is activated.
Another (better) method (for water safety, simplicity and size) is the hall effect sensor method. I will detail this out in my other thread but you can get hall sensors dirt cheap or salvage them from any bldc motor which may have them (some CD drives, misc parts) or you can just order them for a few bucks each (3-6). I have some so tiny (SMT type) which I use within my hobby/rc motors to enable use with infineon controllers. In either case, these work the same as the magnet (sort of) but usually the send positive voltage so... solder the ebrake line (the yellow wire) into th EBS + instead of the EBS -.
Another (sorry) point to make, using this method means you don't have to put the switch on the pulls.... controller in the back of the bike? Mount a hall sensor on your brake mounts some where and a small neodium magnet on the brake arms or caliper moving part... now you get the cutout but the point of interface can be the front or rear wheel... if you have a partiall exposed brake line... you can use th cable along the length too...
I'm just trying to help you think out of the box for eBrake locations and such...
I never use the stock eBrake pulls... if you need 2 send me a PM.
-Mike