Heres a recipe, all the way to heroin.
Its for LARGE quantities, but I know you'll be able to do the math to reduce the amounts relatively.
"The process of extracting morphine from opium involves dissolving opium in hot water, adding lime to precipitate the non-morphine alkaloids and then adding ammonium chloride to precipitate the morphine from the solution. An empty oil drum and some cooking pots are all that is needed.
The following is a step-by-step description of morphine extraction in a typical Southeast Asian laboratory:
1. An empty 55-gallon oil drum is placed on bricks about a foot above the ground and a fire is built under the drum. Thirty gallons of water are added to the drum and brought to a boil. Ten to fifteen kilograms of raw opium are added to the boiling water.
2. With stirring, the raw opium eventually dissolves in the boiling water, while soil, leaves, twigs, and other non-soluble materials float in the solution. Most of these materials are scooped out of the clear brown 'liquid opium' solution.
3. Slaked lime (calcium hydroxide), or more often a readily available chemical fertilizer with a high content of lime, is added to the solution. The lime converts the water insoluble morphine into the water soluble calcium morphenate. The other opium alkaloids do not react with the lime to form soluble calcium salts. Codeine is slightly water soluble and gets carried over with the calcium morphenate in the liquid. For the most part, the other alkaloids become part of the residual sediment 'sludge' that comes to rest on the bottom of the oil drum.
4. As the solution cools, and after the insolubles precipitate out, the morphine solution is scooped from the drum and poured through a filter of some kind. Burlap rice sacks are often used as filters. They are later squeezed in a press to remove most of the solution from the wet sacks. The solution is then poured into large cooking pots and re-heated, but not boiled.
5. Ammonium chloride is added to the heated calcium morphenate solution to adjust the alkalinity to a pH of 8 to 9, and the solution is then allowed to cool. Within one or two hours, the morphine base and the unextracted codeine base precipitate out of the solution and settle to the bottom of the cooking pot.
6. The solution is then poured off through cloth filters. Any solid morphine base chunks in the solution will remain on the cloth. The morphine base is removed from both the cooking pot and from the filter cloths, wrapped and squeezed in cloth, and then dried in the sun. When dry, the crude morphine base is a coffee-colored powder.
7. This 'crude' morphine base, commonly known by the Chinese term p'i-tzu throughout Southeast Asia, may be further purified by dissolving it in hydrochloric acid, adding activated charcoal, re-heating and re-filtering. The solution is filtered several more times, and the morphine (morphine hydrochloride) is then dried in the sun.
8. Morphine hydrochloride (still tainted with codeine hydrochloride) is usually formed into small brick-sized blocks in a press and wrapped in paper or cloth. The most common block size is 2 inches by 4 inches by 5 inches weighing about 1.3 kilograms (3 lbs). The bricks are then dried for transport to heroin processing laboratories.
Approximately 13 kilograms of opium, from one hectare of opium poppies, are needed to produce each morphine block of this size. The morphine blocks are bundled and packed for transport to heroin laboratories by human couriers or by pack animals. Pack mules are able to carry 100-kilogram payloads over 200 miles of rugged mountain trails in less than three weeks.
The conversion of morphine hydrochloride to heroin base is a relatively simple and inexpensive procedure. The necessary chemicals are readily available industrial chemicals. The equipment is very basic and quite portable. Heroin conversion laboratories are generally located in isolated, rural areas due to the telltale odors of the lab's chemicals. Acetic anhydride, in particular, is a key chemical with the easily identified very pungent odor of pickles.
Heroin synthesis is a two-step process which generally requires twelve to fourteen hours to complete. Heroin base is the intermediate product. Typically, morphine hydrochloride bricks are pulverized and the dried powder is then placed in an enamel or stainless steel rice cooking pot. The liquid acetic anhydride is then added. The pot lid is tied or clamped on, with a damp towel used for a gasket. The pot is carefully heated for about two hours, below boiling, at a constant temperature of 185 degrees Fahrenheit. It is never allowed to boil or to become so hot as to vent fumes. It is agitated by tilting and swirling until all of the morphine has dissolved. Acetic anhydride reacts with the morphine to form diacetylmorphine (heroin). This acetylation process will work either with morphine hydrochloride or p'i-tzu (crude morphine base).
When cooking is completed, the pot is cooled and opened. The morphine and the acetic anhydride have now become chemically bonded, creating an impure form of diacetylmorphine (heroin). Water is added at three times the volume of acetic anhydride and the mixture is stirred. Activated charcoal is added and mixed by stirring and the mixture is then filtered to remove colored impurities. Solids remaining on the filter are discarded. Sodium carbonate, used at 2.5 pounds per pound of morphine, is dissolved in hot water and added slowly to the liquid until effervescence stops. This precipitates the heroin base which is then filtered and dried by heating in a steam bath for an hour. For each pound of morphine, about 11 ounces of crude heroin base is formed. The heroin base may be dried, packed and transported to a heroin refining laboratory or it may be purified further and/or converted to heroin hydrochloride, a water-soluble salt form of heroin, at the same site."
source:
http://opioids.com/jh/index.html
*(warning: may be more for show than practicality)*