Thanks for the comments guys. It helps.
I have been spending my time exploring and building various variants of the hardware for the Brain Box. Weather proofing and easily removable battery has been quite a challenge to resolve. So far I have been using the battery bag as my way of weather proofing the brain box, by tuck it away inside. But if you want to uickly remvoe the battery, this isn't an option without a connector to make that quick. And it is already taking me way too long to assemble these units with a lot of fiddly soldering, so adding a bunch of extra soldering for a connector is not a great option.
So what have I come up with. This:
(1) Basic Brain Box
This is what I am thinking of as the default interface for my friction drive. It has no display, and is programmed via USB and a terminal program on PC/MAC.
It allows people to attach any ESC they like, is all housed in a weather proof box. Plug'n'play type design, stripped down to the essentials.
- connects in between battery and controller on battery leads
- throttle in (hall, pot or button)
- throttle out to ESC
- wheel sensor (with wires long enough to reach either wheel)
- two code options
-- closed source CB code, for button throttle, PID power&speed control, cruise control, min.max speeds, downloadable trip & life stats via USB
-- open source generic throttle interface. provides basic throttle mapping to start with, but obivously has access voltage, current, speed inputs. Can be expanded with other iouts too such as temperature sensors, more buttons, switches.
Notes:
- this could also be used as a throttle interface for any ebike. Allowing any type of throttle input, and custom throttle profiles
- this would be based on the Arduino Nano, which includes a USB port that allows very easy conection to a computer if reprogramming is required.

- CB-Brain Box - Basic plus two throttle options button and hall
- CB-BB_Basic.jpg (118.17 KiB) Viewed 863 times
(2) Standard Brain Box
- similar to the Basic, but adds a 8x2 LCD. Programmed via LCD now, and remove USB programming.
- This gives you the usual Cycle Analyst type stats, plus a few extras. But still lacks SD datalogging, or temp sensor input.
- For me to keep the current 8x2 enclosure I have been using I would have to change to an Arduino Mini Pro, which losses the USB port, so this would make it a lot harder for people to reprogram it if required.
- Or I could go to a 16x2 display, keep the Arduino Nano and handy USB port.
Optional Extras:
These are things that I have implemented, but are just taking too much time for me to wire up without a custom PCB to make life simpler. So for now they are not being included by default. I am not sure how I will handle it in the future, it depends on the feedback I get. Perhaps I could have the code implemented to handle them, and let people wire it up themselves. Don't know.
- SD datalogging
-- This is a cool feature but one that in normal usage is rarely used. So I am not sure people would pay a premium for it.
-- It currently automatically records trip stats summary, and a separate file that logs settings, and real time data
- Temp sensor
-- again this is easy to implement, but just another wire hanging out that most people wont use.
The people that will want these features are those that are stats nerds, or those pushing the limits of there drives. As you can log all the throttle, power, volts, amps, speeds, temps you could desire. It has been a really useful tool for my development of the drive, and to understand how different motor behave, but most people just wont use them. The other nice thing is that it can automatically log trip stats without any intervention. So you could just pull the files once a month, year whatever, and check out battery usage, efficiencies, volts, wh, etc.
(3) DIY Kit
An option to get around the high labour component of me making these in prototype form, would be for me to supply a complete kit with all required parts, preprogrammed, and allow people to assemble it themselves. It would allow people to wire it up exactly how they like. So they could make it a fully integrated package, or easily removable, or take advantage of any weather proof enclosures they have elsewhere on their bike. Add connectors where they like, or hardwire the whole lot.
(4) The complete package
This is my ideal solution. It has the ESC & brain box in one weather proof package, which is the goal for supplying a complete package. Just plug in the battery, connect the pahse wires out, and strap on to the bike and your away. But...... it is a nightmare to make so I was happy to do it once for myself, but I would not be able to do this for others as it takes too way much time. If I got a custom PCB made I might be able to make this more realistic, but I am not there yet.
- on/off switch
- battery leads in, phase wires out
- throttle in (hall,pot, or button)
- temp sensor connector
- micro SD card
- wheel sensor (with wires long enough to reach either wheel)
- 8x2 LCD display
- custom closed-source code with all bells and whistles, ebike stats, temp sensor, data logging, PID power & speed control, min/max speeds, ....
Anyway here are a few pics of the Complete Package.

- CB-Brain Box - Complete
- CB-BB_Complete_3.jpg (102.84 KiB) Viewed 863 times

- CB-BB- Complete - On/Off Switch. Very Handy.
- CB-BB_Complete_2.jpg (94.41 KiB) Viewed 863 times

- CB-BB - Complete - Connectors. Battery, Phase, Throttle In, Temp, LCD, SD Card
- CB-BB_Complete_1.jpg (99.18 KiB) Viewed 863 times
P.S. The battery gauge at the moment is based off of wh used, relative to capacity entered. Battery voltage is too rough especially with voltage sag making it difficult underload.