Government regulation is written and administered with a broad, dull, painful axe. Regulations do not mix well with independent, maverick, DIY programs either. Vehicle regulations get started when there is either a visible tragedy, or a rising conflict with the status quo (like the SFO scooters program). The ebike community cannot afford a deadly accident especially if it involves others and the ebike or ebike rider are at fault. The Ebike community is up against a tough status quo that consists of pedestrians, motor vehicle traffic, the large well-funded and battle tested regular bicycle community, and the environment (especially for MTB riding and off-road use).
Controllers for brushless motors: E-bikes require high initial torque and therefore models that use brushless motors typically have Hall sensor commutation for speed and angle measurement. An electronic controller provides assistance as a function of the sensor inputs, the vehicle speed and the required force. The controllers generally allow input by means of potentiometer or Hall Effect twist grip (or thumb-operated lever throttle), closed-loop speed control for precise speed regulation, protection logic for over-voltage, over-current and thermal protection. Bikes with a pedal assist function typically have a disc on the crank shaft featuring a ring of magnets coupled with a Hall sensor giving rise to a series of pulses, the frequency of which is proportional to pedaling speed. The controller uses pulse width modulation to regulate the power to the motor. Sometimes support is provided for regenerative braking but infrequent braking and the low mass of bicycles limits recovered energy. An implementation is described in an application note for a 200 W, 24 V Brushless DC (BLDC) motor.
The federal Consumer Product Safety Act defines a "low speed electric bicycle" as a two or three wheeled vehicle with fully operable pedals, a top speed when powered solely by the motor under 20 mph (32 km/h) and an electric motor that produces less than 750 W (1.01 hp). The Act authorizes the Consumer Product Safety Commission to protect people who ride low-speed electric vehicles by issuing necessary safety regulations. The rules for e-bikes on public roads, sidewalks, and pathways are under state jurisdiction, and vary.