Smoothbore

A smoothbore weapon is one that has a barrel without rifling. Smoothbores range from handheld firearms to powerful tank guns and large artillery mortars. The majority of shotguns are smoothbores and the terms "shotgun" and "smoothbore" can be synonymous.
History.
The earliest mention of a smoothbore weapon was about the year 1000 in Dunhuang. The weapon was called a fire lance. The basic parts that make up a gun are a barrel, a charge and a projectile. The gun must also have a way to ignite the black powder charge. The earliest guns were made of bamboo, later replaced with metal barrels. The first mass produced guns were the matchlocks.
Matchlock.
The classic European matchlock gun was a smoothbore weapon that held a burning slow match in a clamp at the end of a small curved lever called a "serpentine". When the lever (or in later models a trigger) was pulled, it lowered the smoldering match into the flash pan. This ignited the priming powder. The flash from the primer travelled through the touch hole igniting the main charge of propellant in the gun barrel. 
One problem with the matchlock was that the match had to be constantly lit. The match was soaked in potassium nitrate to keep the match lit for longer periods of time. If the match was not lit when the gun needed to be fired, the mechanism was useless. This was a real problem in wet weather. Another drawback was the burning match itself. At night, the match would glow in the darkness showing the matchlock holder's position. The smell of burning match-cord also gave away a musketeer's position. The main advantage of the matchlock was that it allowed the shooter to hold the weapon at eye level so as to better aim the weapon.
Flintlock.
After about 200 years, the next major development was the flintlock. It used a flint striking mechanism. Another improvement replaced the flashpan with a smaller “priming pan” that held a smaller amount of black powder. It also contained an opening into the breach to ignite the main powder charge. A small piece of steel (called a “frizzen”) was mounted to the top of the priming pan. When the trigger was pulled the mechanism created a spark igniting the powder in barrel. When the powder and ball were loaded into the barrel, it was then tamped (pushed) down with the ramrod. The hammer was pulled back to the first click, called "half-cocked". To make the weapon ready to fire, the hammer was pulled back to the "full-cocked" position. When the trigger was pulled, a spring caused the hammer to fall igniting the charge. Flintlocks were the main firearm for the next 200 to 300 years before being replaced by percussion cap guns.
Percussion cap.
The percussion cap mechanism was the next great improvement in firearms. It was also called a caplock. The percussion cap was based on the discovery of fulminate of mercury in about 1800. When struck with a sharp blow, mercury fulminate detonates. In 1816, Joshua Shaw, an artist living in Philadelphia, painted fulminate of mercury on the inside of copper caps. He fitted it over a small nipple on the firing hole over the bore. When the hammer struck the percussion cap, the gun fired. By 1826 they were widely used and had replaced the flintlock.
The percussion cap eliminated the flash pan, flint and frizzen. It added the step of placing a cap on the nipple cone, but it was a real advantage to troops in battle. Percussion caps were quick to load and worked in nearly all weather conditions.
Smoothbore cannon.
Crude cannons existed in China from about the 12th century, possibly earlier. One of the first weapons used in Europe was the bombard. They were built in different diameter barrels to fire anything from a small rock to a cast iron ball. By the 16th century cannons began to replace bombards. Casting had greatly improved in Europe after about 1570. In the early 1500s, French cannons were used to break up masses of men in their campaigns in Italy. The Germans had some of the best gunners in Europe and developed cannon that could hit targets at up to . Next, the Swedish under Gustavus Adolphus developed lightweight cannons that could easily move around the battlefield. He used a cast 4-pounder that weighed about and could be pulled by just two horses.
In 1742, Englishman Benjamin Robins wrote "New Principles of Gunnery" where he added science to the field of ballistics. He developed carronades which were short, lightweight smoothbore cannons that could be used on the decks of ships. During the American Revolutionary War, the British had a number of different cannons as well as mortars. Many of the American weapons were captured British cannon.
In 1853 France introduced the Canon-obusier de 12, a 12-pounder capable of firing both shot and shell. The U.S. Army adopted the Napoleon 12-pounder in 1857 as the Model 1857 12-Pounder Napoleon Field Gun. It became the most popular field gun on both sides during the American Civil War. They were ultimately replaced by rifled barrel cannons beginning after the Civil War.