◆ Rebuild

Part 8 · Chemistry

Calcium Cyanamide, Dicyandiamide and Melamine

Heat calcium carbide red-hot in nitrogen and it soaks the nitrogen up, becoming a black powder called lime nitrogen — a slow fertiliser and weed killer, and, with the electric-arc process, one of the first two ways anyone took nitrogen from the air by industry. Dissolved and warmed, it gives dicyandiamide; pressed with ammonia, that becomes melamine, the six-nitrogen ring behind hard plates, laminates, stoving paints and fire-retardant coatings. Today melamine is made from urea instead.

Difficulty
●●●●●
Time
An afternoon for a test-tube run; one to two days per oven charge plus a day to cool; dicyandiamide in a day; melamine needs pressure plant
Steps from zero
40 prerequisites →

You need first

Calcium Carbide and AcetyleneUrea

This unlocks

—
The full path from nothing — 40 steps before this one
  1. Fire
  2. Cordage and Rope
  3. Stone Tools
  4. Finding and Preparing Clay
  5. Finding and Identifying Ores
  6. Hunting and Trapping
  7. Basic Woodworking
  8. Charcoal
  9. Pottery
  10. The Kiln
  11. Hides and Leather
  12. Bricks
  13. Lime
  14. Salt
  15. Fermentation
  16. Lye and Potash
  17. The Wheel and Axle
  18. Firebrick and Refractories
  19. Glass
  20. Bellows
  21. Gears
  22. The Lathe
  23. Iron (the Bloomery)
  24. Copper Smelting
  25. Laboratory Glassware
  26. The Waterwheel
  27. Blacksmithing
  28. Magnets
  29. The Battery
  30. Steel
  31. The Steam Engine
  32. Copper Wire
  33. Electrolysis
  34. Hydrogen, Oxygen and Gases
  35. Machine Tools
  36. The Generator
  37. The Electric Arc Furnace
  38. Ammonia
  39. Calcium Carbide and Acetylene
  40. Urea
  41. Calcium Cyanamide, Dicyandiamide and Melamine

Do them roughly in this order. See it on the tech tree →

Why it matters

Plants are starved of nitrogen everywhere, yet four-fifths of the air is nitrogen. Before 1900 the only ways to fertilise with it were manure, guano and saltpeter (Compost and Manure, Saltpeter). Calcium cyanamide was one of the first two factory answers, alongside the electric-arc process of Norway that burned air into nitric acid (Nitric Acid). In 1905, eight years before the first ammonia plant, factories were turning carbide and nitrogen into a black fertiliser by the thousand tonnes.

It still matters for a rebuilding community, because it needs no high pressure — only carbide (Calcium Carbide and Acetylene), nitrogen (Liquid Air, Nitrogen and the Noble Gases) and an oven that reaches bright orange heat. If you have hydroelectric power to make carbide but not yet the high-pressure machinery for Ammonia, this is your nitrogen.

The same powder leads on:

How it works

Calcium carbide is calcium joined to two carbons. Hot enough, it trades one carbon for nitrogen:

calcium carbide + nitrogen → calcium cyanamide + carbon

The reaction gives out heat — once started at about 1,000 °C it keeps itself going, creeping through the powder like a slow fire. The carbon it releases stays mixed in as fine black soot, which is why the product is black.

In moist soil, cyanamide reacts with water. The calcium becomes lime; the cyanamide (a small molecule, carbon and two nitrogens) turns to Urea within days, then to ammonia, then to nitrate that plants drink. On its way, the free cyanamide is a poison to germinating seeds, seedlings, slugs and some soil diseases, which is why it must go on a week or two before sowing — and why it cleans a seedbed of weeds.

In warm, mildly alkaline water, two cyanamides join into dicyandiamide (DCD). Heat DCD with ammonia and three cyanamide units close into a ring with six nitrogens: melamine. Urea heated to about 400 °C makes the same ring, throwing off ammonia and carbon dioxide.

Substance Looks Nitrogen Key fact
Lime nitrogen (technical) Black-grey powder or granules 19–22 % About 60 % calcium cyanamide, 12 % carbon, rest lime
Dicyandiamide White crystals 67 % Melts at 209 °C
Melamine White crystals 67 % Does not melt; turns to vapour about 345 °C
Calcium carbide lime + coal, arc Lime nitrogen black, 20–22 % N Fields fertiliser, lime, weed killer Cyanamide in water Dicyandiamide white crystals Urea ammonia + CO₂ Melamine six-nitrogen ring nitrogen 1,000–1,100 °C spread pH 8–9 70–80 °C, 2–3 h 390–410 °C catalyst ammonia and carbon dioxide back to the urea plant water + carbon dioxide filter off chalk and soot ammonia, autoclave 250–300 °C (old route) Dicyandiamide uses nitrification inhibitor epoxy hardener fire-retardant salts Melamine uses resin for plates, laminates stoving paint fire-retardant coatings wet-strength paper
Fig. 1 From carbide and urea to melamine. Carbide heated in nitrogen becomes lime nitrogen, used on fields or stirred in water with carbon dioxide to give a cyanamide solution. Warmed at pH 8–9 this gives dicyandiamide crystals; heated with ammonia under pressure these give melamine. Today urea heated to about 400 °C gives melamine directly, and the ammonia and carbon dioxide it releases go back to the urea plant.

What you need

Item Amount or size See
Calcium carbide Dry lumps, crushed fine Calcium Carbide and Acetylene
Nitrogen, dry, under half a percent oxygen Up to 0.44 kg (about 350 litres) per kg of pure carbide Liquid Air, Nitrogen and the Noble Gases
Fluorspar (fluorite), powdered 1–2 % of the carbide Fluorspar and Fluorine Compounds
Quicklime or fused calcium chloride To dry the nitrogen Lime
Steel tube with screwed or clamped end caps, or a brick-lined steel oven Below Metal Pipes and Tubes, Firebrick and Refractories
Heat source reaching 1,000–1,100 °C Charcoal or coke furnace; electric heater for an oven Electric Kilns and Furnaces, Very-High-Temperature Furnaces
Mill to crush carbide and the cooled cake Closed, dust-tight Ball Mills, Crushers and Grinders
Carbon dioxide For dicyandiamide Lime kiln gas, Fermentation

Where to find it

There is nothing to dig up here: everything starts from carbide, which starts from limestone and coal or charcoal in an electric furnace (Calcium Carbide and Acetylene). Fluorite is glassy, cubic, often purple or green, and softer than quartz (Fluorspar and Fluorine Compounds). Nitrogen is the air itself, stripped of oxygen by hot copper or by a liquid-air plant (Liquid Air, Nitrogen and the Noble Gases).

Method 1: A test-tube run

This proves your carbide and nitrogen work, and makes enough lime nitrogen for garden trials.

air Hot copper takes the oxygen Quicklime dries it Bubbler flow in Carbide in an iron boat 1–2 cm deep, loose, with 1–2 % fluorspar bright orange, 1,000–1,100 °C, 3–6 hours Bubbler slower while absorbing equal = finished Steel tube 3–5 cm across, 50–60 cm long Flush with nitrogen before heating; cool under nitrogen before opening.
Fig. 2 The small-scale nitrogen train. Air is pushed slowly through a tube of red-hot copper turnings that remove its oxygen, then through a tower of quicklime that dries it, then past a bubbler that shows the flow. It enters a steel tube holding a boat of powdered carbide in a furnace at bright orange heat, and leaves through a second bubbler. While the carbide is taking up nitrogen the outlet bubbles slower than the inlet; when they match, the run is finished.
  1. Make nitrogen. Pass air slowly over red-hot copper turnings (Liquid Air, Nitrogen and the Noble Gases, Method 1). Watch the copper: when it is black all through, switch to a fresh tube or regenerate it.
  2. Dry it through a tower of lumps of quicklime 30 cm tall. Any water that reaches the carbide makes acetylene.
  3. Crush the carbide in a closed iron mortar to pass a kitchen sieve (about 1 mm), working fast in dry air. Mix in 1–2 % of powdered fluorspar. Fill a small iron boat, or a trough bent from sheet iron, loosely to 1–2 cm deep. Loose powder lets the gas in; packed powder takes far longer.
  4. Load the boat into a steel tube 3–5 cm across and 50–60 cm long (Metal Pipes and Tubes). Fit caps with small pipes in and out, each to a bubbler of oil.
  5. Flush with nitrogen for 15 minutes before heating, to push out all air.
  6. Heat the middle of the tube to bright orange, 1,000–1,100 °C, in a charcoal furnace with bellows or an electric tube furnace. A steady flow of a few bubbles a second.
  7. Watch the bubblers. While the carbide absorbs nitrogen, the outlet bubbles much slower than the inlet. As the reaction ends, the two come to match. A charge of 50–100 g takes 3–6 hours.
  8. Cool under nitrogen. Hot lime nitrogen in air burns. Keep the flow on until the tube is cold enough to touch.

The boat holds a hard, dark grey to black cake that has swollen and weighs about a third more than the carbide did.

Method 2: The cyanamide oven

The industrial oven of 1905–1950 was simple: a closed steel drum, brick-lined, with an electric heater down the middle to start the fire.

Steel shell 75 cm inside, 1.1 m tall Firebrick lining 11 cm, over insulation Paper holder burns away; cake does not stick Sight hole Carbon rod heater current starts the core glowing Reaction front bright orange, moves outward on its own heat Lime nitrogen black, finished Carbide powder grey, not yet reacted Vent Nitrogen side holes, slight overpressure Nitrogen base pipe to transformer to transformer
Fig. 3 The cyanamide oven in section. A steel shell lined with firebrick stands on a base. Inside, a thin paper or cardboard cylinder holds the powdered carbide charge round a central carbon rod. Current through the rod heats the core to start the reaction, which then spreads outward on its own heat. Nitrogen enters at the bottom and through the sides; a lid with a sight hole closes the top. The finished cake is lifted out whole and cooled.

Build it.

  • Shell: welded or riveted steel plate, about 75 cm across inside the lining and 1.1 m tall (Welding), holding about 500 kg of carbide powder.
  • Lining: one course of firebrick, 11 cm thick (Firebrick and Refractories), over a layer of insulating brick or kieselguhr.
  • Heater: a carbon rod 4–6 cm across standing in the centre, with copper or steel clamps for heavy current at top and bottom (Electric Kilns and Furnaces). A few hundred amps at 50–100 volts from a transformer starts the reaction in an hour or two.
  • Gas: nitrogen in through a pipe at the base and a ring of holes in the lower wall, at slightly more than air pressure so air cannot leak in. A sight hole in the lid, and a small vent.
  • Charge holder: a cylinder of thick paper or thin cardboard lining the brick, filled with carbide. It burns away and keeps the cake from welding to the lining.

Run it.

  1. Grind the carbide to a fine powder (most passing 0.2 mm) in a closed mill flushed with nitrogen; carbide dust and damp air make acetylene. Mix in 1–2 % fluorspar.
  2. Fill the holder round the rod. Close the lid and flush with nitrogen.
  3. Switch on the rod. When the core glows bright orange (the sight hole shows it), the reaction starts and spreads outwards. Cut the current back, then off, once the meter on the nitrogen line shows a steady, large uptake.
  4. Feed nitrogen as fast as it is used, keeping a gentle overpressure. A charge takes one to two days; uptake falling to almost nothing means it is done.
  5. Cool the closed oven, or lift the glowing block out with a crane into a closed cooling box under nitrogen (Cranes and Lifting). It takes about a day.

Finishing the cake.

  1. Break and grind it in a closed mill to a fine powder.
  2. Kill the leftover carbide. Spray in about 1 % of water while turning the powder in a ventilated drum. It gives off a little acetylene — no flames anywhere near.
  3. Oil it. Mix in 2–3 % of heavy mineral oil, or roll it with a little water into granules 1–4 mm across and dry them. Both stop the dust that makes lime nitrogen so unpleasant to spread.
  4. Bag it in waxed paper or plastic-lined sacks and store dry. Damp makes it cake and slowly turns some of it into dicyandiamide, which acts more slowly in the soil.

A good oven takes up nitrogen evenly, gives a cake that is dark and uniform right through, and a product at 20–22 % nitrogen. A grey centre with a pale, unreacted rim means the charge was packed too tight or the nitrogen too wet or too oxygen-laden.

Calcium cyanamide on the field

Use How much, per hectare When
Base dressing for vegetables, maize, potatoes 300–500 kg (60–100 kg nitrogen) Spread on moist soil, rake into the top 5–10 cm, wait 2 weeks before sowing, 1 week before planting out
Top dressing of cereals and grass 150–250 kg Early spring, on dry leaves, so it bounces off the crop but scorches broad-leaved weed seedlings
Clubroot of cabbages 500–1,000 kg 2–3 weeks before planting
Compost heaps 1 kg per cubic metre layer Sprinkled between layers; speeds rotting of straw

On a garden scale, 30–50 g per square metre is a base dressing — a heaped handful on a square metre.

It also brings lime: 100 kg of lime nitrogen does the work of about 50 kg of quicklime against soil acidity (Understanding Soil). On pasture it kills the mud snails that carry liver fluke of sheep (Animal Health).

Do not: mix it with ammonium sulfate or superphosphate in the bag (it releases ammonia and damages the phosphate); put it in the seed row; spread it on wet leaves of a crop you want to keep; or put it on before a heavy rain on a slope near a stream.

Dicyandiamide

  1. Stir 1 kg of fresh lime nitrogen into 4–5 litres of water in a wooden or enamelled vat (Enamel on Metal), in a ventilated place.
  2. Bubble in carbon dioxide (lime-kiln gas, scrubbed through water, or fermentation gas) with steady stirring. Calcium falls out as chalk, and the free cyanamide goes into solution. Stop when a drop of the liquid no longer turns red cabbage juice green — about pH 8–9 (Acids, Bases and Testing).
  3. Filter off the black sludge of chalk and carbon. Wash it once and add the washings.
  4. Warm the clear liquid at 70–80 °C for 2–3 hours. Two cyanamides join to form dicyandiamide. Keep it at pH 8–9 (a little caustic soda if it falls).
  5. Evaporate to about a third and cool slowly. White, flat, shining crystals form. Filter and dry them below 100 °C. Yield: about 1 kg of dicyandiamide from 4–5 kg of lime nitrogen.

A good product is white, melts sharply at 209–211 °C (Organic Synthesis and Fine Chemicals), and dissolves clear in warm water. Yellow or grey crystals need recrystallising from hot water with a little activated carbon (Activated Charcoal).

Uses:

  • Nitrification inhibitor. Soil bacteria turn ammonium into nitrate, which rain washes away and which escapes as nitrous gases. A little DCD — a few percent of the nitrogen in ammonium fertilisers, or about 10 kg per hectare on grazed pasture — slows those bacteria for weeks, so more nitrogen stays where roots can find it (Chemical Fertilisers).
  • Epoxy hardener. 5–7 parts of fine DCD powder stirred into 100 parts of epoxy resin lie inactive for months at room temperature and cure the glue at 150–180 °C: one-pot adhesives and the prepregs of Composites: Fibreglass, Carbon Fibre and Honeycomb.
  • Melamine (below), fire-retardant salts for wood and paper, and dye-fixing resins.

Melamine

The old route, from dicyandiamide. Dicyandiamide heated above its melting point rearranges to melamine with a sudden rush of heat, and some of it loses ammonia to form useless insoluble by-products. To keep control, the works heated DCD with ammonia in a strong autoclave at about 250–300 °C, so the pressure of ammonia held it on the right path (Pressure Vessels and Valves). This is pressure-plant work; do not heat DCD in a closed vessel without one built and tested for it.

The modern route, from urea. Six urea molecules give one melamine, six ammonia and three carbon dioxide:

  • Low-pressure plants pass molten urea with ammonia over a hot alumina–silica catalyst at about 390–410 °C and a few bar.
  • High-pressure plants use no catalyst, at about 400 °C and over 70 bar.

Either needs about 3 tonnes of urea per tonne of melamine, and returns nearly 2 tonnes of ammonia and carbon dioxide to the Urea plant. So melamine is made beside a urea works, never alone.

Purify crude melamine by dissolving it in boiling water (about 5 parts in 100, against 0.3 in cold), filtering hot through activated carbon, and cooling. It crystallises as fine white needles.

Tests. Pure melamine is a white powder that does not melt in a flame-heated spoon but slowly turns to white smoke with a smell of ammonia. Warmed with formalin at pH 9, it dissolves, and a drop of the syrup heated on a tin lid sets hard and glassy.

Uses beyond plates and laminates (Resins: Phenolic, Polyester and Epoxy):

  • Stoving enamels. Melamine resin made with formaldehyde (Methanol and Formaldehyde) and butanol, mixed with alkyd paint resin, bakes at 120–150 °C into the hard, glossy finish of bicycles, cars, refrigerators and cookers (Pigments, Paints and Varnish, The Bicycle).
  • Fire-retardant paint. Melamine, ammonium phosphate and a sugar-like polyol in a paint swell in a fire into a thick insulating foam of char that protects steel beams and wood for 30–60 minutes (Steel Frames and Tall Buildings, Firefighting).
  • Wet-strength paper, tanning, and stiff open-celled foams for sound insulation.

Warning Melamine is not food and not a fertiliser. It releases nitrogen too slowly to feed plants. Added to milk or feed to fake protein readings, it forms kidney stones with its by-product cyanuric acid; in 2008 adulterated milk powder in China made about 300,000 babies ill and killed six. Keep melamine and its resins out of food, and do not cook in melamine ware.

How to tell it worked

  • Lime nitrogen: dark grey-black, heavy powder. A pinch in water gives a slightly alkaline, milky liquid (red cabbage juice turns green) without much fizzing; strong fizzing and a garlic smell mean leftover carbide. Heated with a little lye in a test tube, it gives off ammonia that turns damp red litmus blue.
  • Nitrogen content, roughly: the cake should weigh 30–40 % more than the carbide you put in. Less means incomplete reaction.
  • Garden test: cress sown in a pot the day after mixing in 5 g of lime nitrogen fails; sown two weeks later, it grows dark green and stronger than an untreated pot.

Note Troubleshooting. Reaction will not start → not hot enough (it must be bright orange), carbide too coarse, or carbide old and already weathered to lime. Add fluorspar; grind finer; use fresh carbide. Pale, low-nitrogen product → oxygen or moisture in the nitrogen burned the carbide to lime. Check the copper tube and drier; look for air leaks at joints. Cake fused to a glassy lump → too hot, above about 1,200 °C. Cut the heater sooner and feed nitrogen more slowly at the start. Dicyandiamide yield poor, liquid smells of ammonia → too hot or too alkaline, so cyanamide broke down to urea and ammonia. Hold 70–80 °C and pH 8–9.

Dangers

Danger Lime nitrogen and alcohol. Handling it and then drinking alcohol — or drinking within a day or two before — causes violent flushing of the face and chest, pounding heart, headache, breathlessness and vomiting, and has caused collapse. No beer, wine or spirits from the day before spreading until two days after. Tell every worker. Acetylene in storage. Leftover carbide meets damp and gives acetylene. Closed silos and bins have exploded. Store bags in a dry, ventilated shed, never sealed tanks, and never test with a flame. Hot cake burns in air, and the oven runs at 1,000 °C with heavy electric current (Wiring and Electrical Safety).

  • Dust is caustic: it burns eyes and the inside of the nose, and cracks skin. Spread with goggles, a cloth mask and gloves, with the wind at your back; wash afterwards. Granulated or oiled product is far kinder.
  • Animals must stay off treated ground until rain has washed it in, about a week.
  • Liquid cyanamide (hydrogen cyanamide), sold to vineyards and orchards to wake buds evenly, is much more toxic than the solid. Avoid making it.
  • Pressure plant for melamine is dangerous: hot ammonia under high pressure (Ammonia, Pressure Vessels and Valves).

What this unlocks

How it was first done

Justus von Liebig first made melamine in 1834, by heating potassium thiocyanate with sal ammoniac. In 1895–1898 in Berlin, Adolph Frank and Nikodem Caro, trying to make cyanide for gold mines from carbide, found that carbide heated in nitrogen gave calcium cyanamide. Their colleague Fritz Rothe showed in 1898 that the product was not cyanide but calcium cyanamide, and Frank's son Albert saw that it could feed crops. The first factory opened at Piano d'Orta in Italy in 1905, and plants followed in Norway, Germany, Canada and Japan wherever hydroelectric power made carbide cheap. Germany built huge cyanamide works during the First World War. Dicyandiamide became the route to melamine when American Cyanamid began making melamine resins in the late 1930s; urea-based processes took over in the 1960s. Lime nitrogen is still made in small amounts, mainly for vegetable growers in Europe and Asia.

Source: content/entries/chemistry/melamine-and-cyanamide.md