A conversion kit, not a new bicycle
I wanted to make electric transportation more affordable by adding power to a bicycle someone already owns. I set a materials-cost target below $150, with a stretch goal below $100. Easy installation, a removable battery, straightforward maintenance, and low-cost manufacturing were central design requirements.
An initial attempt in 2020 stalled when I did not yet have the tools or electronics background to finish it. I returned to the project after building my own circuit-board mill and studying circuits and electromagnetism. The later prototype was divided into three systems: rider controls, a battery-and-electronics enclosure, and a motor.
Designing the sensorless motor controller
The electronic speed controller was the hardest part of the kit. I designed three MOSFET half-bridges around an ATmega328P microcontroller, with gate-driver chips controlling the power transistors. Rather than adding a rotor-position sensor, I used the voltage generated in the phase that was not being driven to work out when to switch phases.
At each step, two motor phases were driven while the third was left floating. Monitoring that floating phase's back-EMF zero crossing gave the controller information about the rotor position. Avoiding a separate sensor reduced the number of parts and connections I would have to package and protect on a bicycle.
The board also brought together a thumb throttle and an HM-10 Bluetooth module. Bench tests demonstrated control of a small brushless drone motor, detection of the generated voltage signal, throttle response, and two-way communication with an iPhone.
The enclosure and bike interface
I designed the battery housing, mounting system, and electrical connections as one assembly. A PETG enclosure held the batteries and controller, with flexible TPU seals and spring-loaded clips for removal from the bicycle. The prototype used two four-cell battery packs in series.
The enclosure work was about more than fitting the parts into a box: the battery needed to be removable, the throttle and motor needed accessible connections, and heat from the electronics needed somewhere to go. Weather sealing was a design goal, not a tested waterproof rating.
When making everything myself stopped helping
At first I milled and soldered the boards at home. I also tried building the transistor-driving circuitry from individual components. Troubleshooting fast switching signals with only a multimeter was frustrating, and the closely spaced copper on boards without solder mask made assembly difficult.
After more than 50 board attempts, I changed the process. I bought a used digital oscilloscope, switched to integrated gate-driver chips, and outsourced the board fabrication. Those changes let me spend more time developing the controller and less time fighting the limitations of my tools.
Testing a printed motor
I also designed an experimental hub motor and wound its coils by hand. After an early plastic stator produced very little voltage when spun, I tried an iron-filled PLA core and a Halbach arrangement of permanent magnets, intended to concentrate the magnetic field toward the windings.
The motor turned, but heat softened and deformed the printed core under load. That was a material limit, not just a controller problem. Printing the geometry was useful for prototyping, but the core also had to survive the heat of an operating motor. The controller tests and printed-motor experiments were steps toward the kit, not a completed production-ready bicycle conversion.
The next design decision
My proposed next step was a laminated metal stator paired with the controller and removable enclosure I had already developed. The 2024 component estimate was $82.74 excluding the motor. That was a prototype estimate, not an achieved retail price or the cost of a complete commercial product.































