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.[43]
Electric powered bicycles slower than 20 km/h without pedaling are legally recognized as a non-mechanically operated vehicle in China.[32] According to "TECHNOLOGY WATCH", this should help promote its widespread use.[33] Electric bicycles were banned in some areas of Beijing from August 2002 to January 2006 due to concerns over environmental, safety and city image issues. Beijing has re-allowed use of approved electric bicycles as of January 4, 2006.[34] Some cities in China still ban electric bikes.

"Bicycles" and "Electric Bicycles" are legally defined in the Texas Transportation Code Chapter 551., titled "Operation of Bicycles, Mopeds, and Play Vehicles" in Subchapter A, B, C, and D.[58] The following definition of electric bicycle was passed by the Texas legislature in 2001. "Electric bicycle" means a bicycle that is designed to be propelled by an electric motor, exclusively or in combination with the application of human power, cannot attain a speed of more than 20 miles per hour without the application of human power; and does not exceed a weight of 100 pounds. The department or a local authority may not prohibit the use of an electric bicycle[0] on a highway that is used primarily by motor vehicles. The department or a local authority may prohibit the use of an electric bicycle[0] on a highway used primarily by pedestrians.
Electric-assisted bicycles are treated as human-powered bicycles, while bicycles capable of propulsion by electric power alone face additional registration and regulatory requirements as mopeds. Requirements include electric power generation by a motor that cannot be easily modified, along with a power assist mechanism that operates safely and smoothly. In December 2008, The assist ratio was updated as follow:
There are dozens of good 25Km/h pedelecs. Our advice is to go the nearest good e-bike store and get it from there, because e-bikes may need good support. Only if you like servicing a bike yourself is buying from the Internet a good option. As of Spring 2013, a good benchmark to compare with is the Austrian KTM Amparo also called KTM Severo 8M or the German Kalkhoff Impuls or Agattu series. It has a reliable Panasonic middle motor and a good battery. If you want a more sexy design, try the SMART from the urban car maker of the same name.

Not all electric bicycles take the form of conventional push-bikes with an incorporated motor. Some are designed to take the appearance of low capacity motorcycles, but smaller in size and comprising of an electric motor rather than a petrol engine. Bicycles of note include the Sakura electric bicycle, which incorporates a 200W motor found on standard e-bikes, but also includes plastic cladding, front and rear lights, and a speedometer. It is styled as a modern moped, and is often mistaken for one based on its similarity in appearance.
The 1968 Vienna Convention on Road Traffic of the United Nations considers a bicycle to be a vehicle, and a person controlling a bicycle (whether actually riding or not) is considered an operator. The traffic codes of many countries reflect these definitions and demand that a bicycle satisfy certain legal requirements before it can be used on public roads. In many jurisdictions, it is an offense to use a bicycle that is not in a roadworthy condition.[citation needed]
In the theoretical electric bike we considered up above, we had the dynamo/motor driving the back wheel directly, simply by pressing on the tire. Most electric bikes work a different way. They have compact electric motors built into the hub of the back or front wheel (or mounted in the center of the bike and connected to the pedal sprocket). Take a look at the hub of an electric bike and probably you'll see it's much fatter and bulkier than on a normal bike. You can read more about how these motors work in our main article about hub motors.
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.[63] The rules for e-bikes on public roads, sidewalks, and pathways are under state jurisdiction, and vary.