This points out the tech side of ebikes. One of many doo-dads that can be found on them is a brake motor cut-off sensor. When the brakes are applied, juice is cut off to the motor(s). Makes braking more effective. Otherwerise the motor still turns for a second after you stop pedaling, fighting the brakes.
But not all ebikes have these. Mine doesn’t. So after I brake, I still have 350 watts of power trying to propel the bike forward for a moment. Some people find this dangerous. I just don’t override the 20 mph setting.
These are one of the many aftermarket doo-dads people are always tinkering with, which makes owning an ebike fun.
Come spring I’m adding a second battery under the fairing, so I can switch them into parallel or series, either doubling the range, or doubling the power, at will. Nothing like the thrill of riding with six pounds of inexpertly-wired, inflammable lithium batteries inches from your junk.