Connect the battery to the speed controller and the throttle. Follow the instructions included with the kit to connect each part. Typically, you’ll only need to plug the connector on the speed controller into the connector on the battery, then repeat the process for the throttle. Be sure not to touch the battery wires together, as this could create a dangerous spark! 
A new electric cyclist will likely experience two conflicts of thought: 1). Will the general public accept my use of this power assist technology, or Will they ridicule and reject me as being lazy? 2). Will I stand out to law enforcement by the look of my bike or riding a bit faster than other cyclist on hills and roads? Grappling with these two thoughts will tempt most folks to try and remain unnoticed and ride more responsibly. After I became an advocate of e-transportation on two wheels, enjoying the benefits of power assist commuting, I eventually was a bit put off by this federal law, especially the 20mph limitation. Is 20 mph really practical and justified? Is it not true that many active young people on typical road bicycles are able to actively ride in the 20-25mph range? I discovered that ebikes, with larger tires and disk brakes, can comfortably and safety cruise in that range of speed. The standard 2001 Federal law of 20mph, eventually became a practical limitation for an ebike commuter of over 20 miles a day, and caused me to get a bike beyond the federal limits, making me more alert and sensitive when riding in the presence of the police.
An electric bicycle is a bicycle with an electric motor used to power the vehicle, or to assist with pedaling. In many parts of the world, electric bicycles are classified as bicycles rather than motor vehicles, so they are not subject to the same laws as motor vehicles. Electric bicycles are one type of motorized bicycle. However, electric bicycles are defined separately and treated as a specific vehicle type in many areas of legal jurisdiction.
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.