Development log
What's done, with the date
An entry goes here only once it has been measured on the bench, on a real controller. Entries marked “Design” are checked in the design files, until the prototype tests. Problems found are posted here too. Newest first.
-
R7.1 enclosure: two flaws found before printing Design
While preparing the first shells for printing, two flaws showed up in the design files. The light holders covered all four solder leads of each LED: once seated, the LEDs couldn't have been wired. Each holder now has two windows, one under each row of leads. Behind the back emblem, the wires had 0.9 mm of room, less than a wire's thickness: a notch now gives them 2.1 mm.
The rev. 0.2 board is checked inside the enclosure, part by part: no interference, 0.35 mm at the tightest spot. The beta units' shells are printing here, in ASA, an outdoor plastic that handles sun and heat better than PETG. The seal, mounting and cold tests will be posted here, pass or fail.
-
Firmware 0.6.2: your settings survive a restart
The KT controller has no memory that can be read back, so the module now remembers the settings you choose in the app, such as the wheel size, and restores them when the bike is switched back on. For safety, the assist level, the headlight and the speed limit always start from the base values: the bike never wakes up at an old limit.
Publishing a wireless update now takes one command, which refuses any risky release: the wrong signing key, a mismatched version number, a stale file, or a version that isn't newer than the last. Tested on a computer; the test on the rev. 0.2 module is next.
-
Every KT display setting, captured on the bench
A series of captures with the motor off recorded every setting of the KT display, one at a time: the throttle modes, the throttle limit, the wheel magnets, regenerative braking, the P3 and P4 settings, and wheels from 16 to 28 in and 700C. The KT profile moves to version 0.8.1, and the app shows all of them, each explained in plain words.
The captures also confirmed that the KT controller sends back no confirmation of the settings it receives. The app now says so plainly, instead of implying the controller accepted it.
-
First test on the bike: one part with the wrong value, found and fixed
On the bike, the first circuit boards lost their connection as soon as the bike was switched on, and two modules were damaged. Powered on the bench without the bike's battery, they worked.
The cause is measured: in the parts list, one resistor in the circuit that watches the bike's power switch had the wrong part number, 2.4 Ω instead of 470 kΩ (about 3 Ω measured on an unused board). When the bike switched on, it let the battery voltage through to the microcontroller. On the remaining module, the resistor is replaced and the switch-on is softened: the bike now turns on over a fraction of a second instead of all at once. Revision 0.2 fixes the parts list at the source.
-
Circuit board, revision 0.2: the version meant for sale Design
Revision 0.2 fixes the parts list and separates the bike's power from the module's own supply: switching the bike on can no longer starve the module. The soft switch-on is built in, surge protection is tightened, and the 3.3 V regulator tolerates a much higher input voltage. It adds the R7 enclosure's status lights.
The schematic and the board layout match part for part, and every part is in stock at the manufacturer. Next: order the prototypes and test them on the bike. The results will be posted here.
-
The status lights, in the firmware Design
Firmware 0.6 drives the R7 enclosure's eight lights. The bottom line shows the state of the module and the bike, the logo shows the phone link, and the back emblem lights when the module is keeping the bike on. Parked for 2 minutes with no phone, everything goes dark and the module cuts the lights' power: each LED draws about 1 mA even when dark, which would drain the battery. Brightness is capped at a quarter of the maximum.
The rules are tested on a computer, and the demo on the home page uses exactly the same ones. The test on the rev. 0.2 board comes next.
-
R7 enclosure: slimmer, stronger Design
The enclosure is redesigned and checked in the design files: clearance around the board on every side, screw depths, seal squeeze, the cable-gland thread and pad compression. It measures 62 × 85 × 29 mm, 41% thinner than the first printed prototype (49 mm), with 60% less material.
One-piece shell with a continuous seal, board held without screws, two screws instead of eight, a tool-free clip for 22.2 to 35 mm bars, and three status lights: module powered, phone connected, latch state. Next: print the prototypes and test sealing, mounting and cold. The results will be posted here.
-
App: the new ride screen
The ride screen is rebuilt around a full-screen map with the gauge laid over it: four gauge styles to choose from, an assist ladder, landscape mode, the estimated range drawn on the map, and bike navigation with turn-by-turn directions. It runs in the app with the virtual bike, and the kurant.ca demo mirrors it. The road test comes with the beta units.
-
First circuit boards received
Kurant's first factory-assembled circuit boards (revision 0.1) have arrived. The firmware installed on the first try, through the programming connector.
-
Power-on, assist and a dropped phone: bench-tested
The module turns the bike on when the app asks and changes the assist level from the phone. When the phone disconnects, assist keeps the level you chose.
-
A motor simulator for the next profile
To capture a second controller's profile on the bench without riding, a small circuit simulates the motor's sensors, which keeps the controller from throwing its error code.
-
A second bike on the bench
An adapter cable connects a second bike (48 V) to the test bench, and its whole connector is mapped. It's the first step toward the next profile.
-
Final circuit schematic, revision 0.1
The board uses an already-certified ESP32-C3 wireless module. The latch that keeps the bike on is hardened with pull-down resistors and a power-on reset.
-
Reference captured from a KT-LCD5 display
The firmware's reference frame is captured again from a KT-LCD5 display, with all of its values.
-
Signed over-the-air updates: code written
The module only accepts signed firmware, and the private key stays offline. Testing on the final hardware is next.
-
Kurant replaces the display
With no stock display, the module takes over the KT controller in 329 ms, at 9600 baud, with 3 of 3 checksums valid. First command verified end to end: the headlight turns on (frame byte 1: 01 → 81; headlight output from 0 V to battery voltage). The stock display, plugged back in afterwards, kept every setting.
-
The power latch holds
The circuit that keeps the bike on works with the 48 V battery and survives a reset, a USB unplug and removing the microcontroller. An intermittent failure was found with the logic analyzer (too little base current, 2.6 mA) and fixed.
-
Listening to the KT controller
The module reads the controller's and the display's frames at 9600 baud, with valid checksums. Brake state is decoded.
Questions or corrections: [email protected]