Scottish Inventions · Transport · Card No. 39 of 50
Robert Davidson: The Aberdeen Chemist Who Built the World's First Electric Locomotive
Robert Davidson (1804–1894), an Aberdeen chemist, built the world's first known electric railway locomotive — the Galvani — which ran under its own power on the Edinburgh and Glasgow Railway in September 1842, some 37 years before Werner von Siemens' celebrated 1879 electric railway.

On this page
TL;DR
- Robert Davidson (1804–1894), an Aberdeen chemist, built the world's first known electric railway locomotive — the Galvani — which ran under its own power on the Edinburgh and Glasgow Railway in September 1842, some 37 years before Werner von Siemens' celebrated 1879 electric railway.
- The Galvani worked but was commercially doomed: its non-rechargeable zinc batteries were ruinously expensive to feed compared with coal, and the machine was later destroyed by railway workers who, in the words of one modern encyclopaedia, "saw it as a threat to their job security."
- Scotland can claim an extraordinary double: Davidson pioneered the electric railway locomotive, while a shadowy compatriot, Robert Anderson, is widely credited with an early electric road carriage in the 1830s — though Anderson's story is so thinly documented that it must be treated with caution.
The Honest Verdict
Yes — the historical record supports the proud Scottish claim: Robert Davidson of Aberdeen built and successfully demonstrated the first known full-size electric locomotive in 1842, a genuine world first in the practical application of electric traction to a railway.
Key Facts
Aberdeen 1804
Born in Aberdeen on 18 April 1804 and died there on 16 November 1894, aged 90.
Chemist by Trade
A manufacturing chemist by trade, whose workshop skills let him build his own galvanic batteries.
Motors from 1837
Built his first fair-sized electric motor in 1837, based on his own switched-reluctance principles.
Galvani 1842
Ran his full-size electric locomotive on the Edinburgh and Glasgow Railway in September 1842.
16 feet · c. 4 mph
About 16 feet (4.9 m) long, five to seven tons, moving itself at roughly walking pace.
37 Years Before Siemens
Davidson's 1842 experiment predated Werner von Siemens' celebrated 1879 electric railway by 37 years.
Early Life and Aberdeen Background
Robert Davidson was born in Aberdeen on 18 April 1804. His family was in trade: according to his obituary in the Aberdeen Evening Express of 16 November 1894, his father carried on the business of a wine and spirit merchant "for many years" at 44 Broad Street, and the young Davidson entered that business at an early age. He was educated at Marischal College, one of Aberdeen's two universities at the time, attending the second- and third-year classes from 1819 to 1821, where he heard the lectures of Professor Patrick Copland. According to the University of Aberdeen's account, he received this education in return for working as a laboratory assistant.
In the 1820s Davidson set up in business near the Aberdeen–Inverurie Canal — first supplying yeast, then moving into the manufacture and supply of chemicals, with diverse sidelines such as file-sharpening and, later, perfumes. He was, by the standards of his city, a prosperous and practical man of business. His chemical trade is important to the story: making his own galvanic batteries "was not a difficult task for a chemical supplier and man with workshop skills," as the University of Aberdeen's John S. Reid put it.
Davidson had two consuming passions outside business: astronomy and electricity. In astronomy he built himself a large reflecting telescope some 35 feet long, with a 2-foot-diameter mirror — a genuine landmark of struts and ladders in his corner of Aberdeen. It was electricity, though, that would carry his name into history. Aberdeen in the 1830s was a vigorous centre of Scottish intellectual and scientific life, and Davidson's work found an audience in the learned societies of both Aberdeen and Edinburgh.
The Scientific Context
Davidson worked at the dawn of the electrical age. Alessandro Volta had unveiled the first battery — the voltaic pile — in 1800, and in the 1820s and 1830s Michael Faraday demonstrated how electricity could be turned into mechanical motion, though in a form useless as a practical motor. Steam, meanwhile, ruled transport: George Stephenson's Rocket of 1829 had proved the steam locomotive, and by the early 1840s Britain was in the grip of railway fever. Scotland's first inter-city line, the Edinburgh and Glasgow Railway, opened for passenger traffic on 21 February 1842, following a ceremonial opening on 19 February.
The great question of the moment was whether electricity might replace steam for traction. Davidson was not alone in asking it. In the United States, the Vermont blacksmith Thomas Davenport received the first US patent for an electric motor (Patent No. 132) on 25 February 1837, having earlier run a small model car on a short track. In Russia, the German-born physicist Moritz von Jacobi propelled a 28-foot paddle-boat carrying passengers along the Neva at St Petersburg in September 1838, and improved it in 1839. These were the parallel experiments of a genuinely international moment — and, strikingly, Davidson's machines were among the most ambitious of them all.

Davidson's Early Electric Experiments (1837–1839)
By 1837 Davidson had built his first fair-sized electric motor, working on his own principles. His design used electromagnets acting on iron bars fixed around a rotating wooden cylinder or "log" — one for each axle — with a switch cutting the current when the bars were in opposition. This is, in effect, an early form of what modern engineers call a switched reluctance motor, and a full-size working replica now stands in the Grampian Transport Museum.
By 1839 Davidson had applied his batteries and motors to a printing press, a turning lathe and a four-wheeled electric car — arguably the first known electric four-wheeled vehicle. In 1840 he staged a public "Electromagnetic Exhibition" in Aberdeen, where thousands paid a shilling to see a working model electric locomotive capable of carrying two people, an electric lathe, an electric printing press, and an electromagnet that could lift two tons. He took the exhibition to Edinburgh the following year, where it was seen on 12 February 1842 by a ten-year-old James Clerk Maxwell, taken along by his father. To bolster his railway scheme, Davidson secured the endorsement of the Royal Scottish Society of Arts, which — per John S. Reid of the University of Aberdeen — "made him a £15 grant."
The Galvani — the World's First Electric Locomotive (1842)
Between his Aberdeen and London exhibitions, Davidson built his masterpiece: a full-size electric locomotive he named Galvani, after the Italian scientist Luigi Galvani, whose experiments with frogs' legs first hinted at the link between electricity and motion. The machine was a four-wheeled locomotive about 16 feet (4.9 metres) long. It was powered by Davidson's own non-rechargeable galvanic (primary) cells — batteries that generated current by consuming zinc in acid — driving his electromagnetic motors, one on each axle.
Sources differ on its exact weight and capability. The University of Aberdeen gives "about 6 tons"; Guinness World Records describes "a battery locomotive weighing five tons on the Edinburgh & Glasgow Railway, Scotland, where it ran at 6.5 km/h (4 mph)"; and Wikipedia's "Electric locomotive" article describes a "seven-ton vehicle [that] hauled a load of six tons at four miles per hour (6 kilometres per hour) for a distance of one and a half miles (2.4 kilometres)." The consistent core across all accounts is a several-ton machine that moved at roughly walking pace.
In September 1842 the Galvani ran on the Edinburgh and Glasgow Railway. The railway had not yet reached Aberdeen, so the newly opened Edinburgh–Glasgow line was the natural proving ground. This was, so far as the record shows, the first time an electric motor had hauled a substantial machine along a railway track — the world's first electric railway locomotive. It was, however, a limited triumph: the University of Aberdeen and Wikipedia both note that it was capable of carrying only itself, hauling no meaningful load of passengers or goods, and the directors of the railway were not sufficiently impressed to take the concept further.

Did You Know?
Davidson named his locomotive Galvani after Luigi Galvani, whose eighteenth-century frog-leg experiments first revealed the link between electricity and animal motion — the same experiments that eventually inspired Mary Shelley's Frankenstein.

The Destruction of the Galvani
The Galvani's end is one of the most striking and oft-repeated parts of the story — and one where honesty demands care. Wikipedia's "Electric locomotive" article states plainly that "it was destroyed by railway workers, who saw it as a threat to their job security." The University of Aberdeen's account is more cautious, saying the Galvani "was destroyed before Davidson could get it back, by men unknown but suspected of being promoters of steam engines." Other accounts say bluntly that steam mechanics smashed it in its shed, and one railway history records that it was destroyed while stored in the engine house at Perth.
The core of the story is reasonably well attested: the machine was destroyed, and the fear of the steam trade is the traditional explanation. But the precise where, when and who are not firmly documented, and readers should treat the vivid "Luddite mob" version as likely but not proven. What is certain is that no physical remains of the Galvani survive, and that after 1843 Davidson settled back into family life and business in Aberdeen, unable to find a patron to continue the work.
The Economic Problem: Why Electric Railways Failed in 1842
The Galvani proved the concept but could never have paid its way, and the reason was chemistry, not engineering. Davidson's batteries were primary cells: they produced electricity by consuming zinc, and once spent they could not be recharged — the chemicals simply had to be replaced. Zinc was expensive; coal was cheap. Feeding a battery locomotive was therefore vastly dearer than stoking a steam engine's firebox.
A widely quoted claim holds that running the Galvani cost about forty times more per mile than a coal-fired steam engine. This "forty times" figure circulates very widely, but its precise origin is shaky. It traces, through a chain of modern encyclopaedias, to a cost comparison associated with a report of the period — an extract from the Railway Times of 10 December 1842, reproduced in the appendix to Sir John Aspinall's 1909 presidential address to the Institution of Mechanical Engineers. However, the exact "forty times" wording appears to be a modern paraphrase rather than a verbatim 1842 quotation, and the accompanying claim that "later experiments in America proved these figures correct" is vague and uncited to a specific study. The qualitative economics, though, are not in doubt: contemporary and modern sources agree that battery traction was hopelessly uneconomic in 1842. Tellingly, Moritz von Jacobi in Russia reached the same conclusion by measuring the zinc consumed by his motors, judging electric motors uneconomic given the high price of zinc.
The technology to make electric traction viable arrived only later. The French physicist Gaston Planté invented the rechargeable lead–acid battery in 1859, and the perfecting of the dynamo from the 1860s meant electricity could be generated cheaply rather than consumed from a battery. It was Werner von Siemens who reaped the reward, demonstrating the first electric railway powered by a generator at the Berlin Industrial Exhibition in 1879. That machine drew its current from a third rail rather than carrying batteries, and its locomotive pulled three cars (six passengers each) around a 300-metre circular track; per Wikipedia's account of the exposition, "during the four months of the exhibition, it carried 90,000 passengers." Davidson's 1842 experiment predated Siemens by 37 years — a gap confirmed by the Grampian Transport Museum, which notes that the Galvani ran "37 years before Siemens' electric tramway... ran at the 1879 Berlin Exhibition."
Sidebar
Scotland's Other Electric Pioneer: Robert Anderson
Alongside Davidson stands a second, far more shadowy Scottish figure: Robert Anderson, widely credited with building the world's first crude electric road carriage sometime between 1832 and 1839. Where Davidson built a railway locomotive, Anderson is said to have fitted batteries and a motor to a horseless road carriage — which is precisely what distinguishes the two men.
Honesty is essential here. Almost nothing is reliably documented about Anderson: there is no known patent, no confirmed contemporary newspaper record, no surviving vehicle, and even the date is given only as a range. His carriage is universally described as "crude" and was powered, like Davidson's machines, by non-rechargeable primary cells. Because both men were Scots working with galvanic cells in the same decade, they are occasionally confused in careless sources.
A specific claim sometimes attributed to the IEEE — that "Scotsman Robert Anderson is the inventor of the first full-scale electricity driven carriage" — should be treated sceptically. That exact wording actually appears in a 2022 article in the Journal of Computer Science and Control Systems, published by the University of Oradea in Romania, not in an IEEE publication; and describing the carriage as "full-scale" sits awkwardly with the universal description of it as crude and experimental. A genuine IEEE history (Massimo Guarnieri, IEEE Industrial Electronics Magazine, 2011) does mention Anderson, but uses more cautious language, calling it a crude prototype. What we can fairly say is this: Anderson may well have built an electric road carriage before Davidson's railway locomotive, and both men belong to Scotland's remarkable early contribution to electric transport.
The Modern Legacy
The line of descent from Davidson's 1842 experiment to the modern world runs through Siemens' 1879 Berlin railway and into the first deep-level electric underground line, London's City and South London Railway. Officially opened by Edward, Prince of Wales on 4 November 1890 (with public service from 18 December 1890), it ran 3.2 miles from King William Street to Stockwell using 14 four-wheeled Mather & Platt locomotives, and — in Wikipedia's words — was "the first successful deep-level underground 'tube' railway in the world, and the first major railway to use electric traction." Today's high-speed electric trains, underground metros and trams are all conceptually the children of that walking-pace machine on the Edinburgh–Glasgow line.
Davidson lived just long enough to see his vision vindicated. On the opening of the electric tube in London, the elderly Aberdonian was rediscovered by the press as the "oldest living electrician," and — as Wikipedia records — "his reaction to the opening of the City & South London Tube was to commission a new set of business cards, that read 'Robert Davidson: Father of the Electric Locomotive'." The Electrician magazine declared that "Robert Davidson was undoubtedly the first to demonstrate the possibility of electrical traction in a practical way."
Modern recognition is real but modest. A full-size working replica of Davidson's motor, together with a replica of his battery and a model of the Galvani, forms the centrepiece of an "It's Electric!" exhibition at the Grampian Transport Museum at Alford, Aberdeenshire, produced with a companion book, Robert Davidson: Pioneer of Electric Locomotion, from Lumphanan Press. In Aberdeen, the little Canal Road where he lived and worked survives, but his house and business are gone.

Did You Know?
- Davidson's locomotive was destroyed by railway workers who "saw it as a threat to their job security" — making it one of the first machines wrecked out of fear of automation.
- The Galvani proved electric traction worked in 1842, but it took another 37 years — until Siemens in 1879 — before electric railways became practical.
- Davidson's battery produced electricity by consuming zinc, which was so expensive that running the locomotive is often said to have cost around forty times more per mile than a coal-fired steam engine (a figure widely quoted, though its exact origin is uncertain).
- The electric car is older than the petrol car: Anderson's Scottish carriage of the 1830s predates Karl Benz's 1885 petrol car by roughly half a century.
- Scotland gave the world both an early electric road vehicle (Anderson, 1830s) and the first electric railway locomotive (Davidson, 1842) — in the same decade.
- Davidson named his locomotive Galvani after Luigi Galvani, whose frog-leg experiments first revealed the link between electricity and motion.
Timeline
18 Apr 1804
Born in Aberdeen
Robert Davidson is born in Aberdeen, son of a wine and spirit merchant at 44 Broad Street.
1819–1821
Marischal College
Attends the second- and third-year classes at Marischal College, hearing the lectures of Professor Patrick Copland while working as a laboratory assistant.
1820s
Chemist near the Canal
Sets up a chemical supply business near the Aberdeen–Inverurie Canal, later expanding into perfumes, yeast and file-sharpening.
1837
First large motor
Builds his first fair-sized electric motor and a model locomotive, using electromagnets acting on iron bars around a rotating wooden cylinder — an early switched-reluctance motor.
1839
Electric car and lathe
Applies his batteries and motors to a printing press, a turning lathe and a four-wheeled electric car — arguably the first known electric four-wheeled vehicle.
1840
Aberdeen Electromagnetic Exhibition
Stages a public exhibition where thousands pay a shilling to see a model electric locomotive carrying two people, an electric lathe, an electric printing press and an electromagnet that could lift two tons.
1841
Royal Scottish Society of Arts grant
Secures the endorsement of the Royal Scottish Society of Arts, which — per John S. Reid of the University of Aberdeen — 'made him a £15 grant.'
12 Feb 1842
Seen by young Maxwell
The Edinburgh version of the exhibition is visited by a ten-year-old James Clerk Maxwell, taken along by his father.
21 Feb 1842
Edinburgh and Glasgow Railway opens
Scotland's first inter-city railway opens for passenger traffic — the natural proving ground for Davidson's locomotive.
Sep 1842
The Galvani runs
The full-size Galvani electric locomotive is demonstrated on the Edinburgh and Glasgow Railway, moving at about 4 mph (6.5 km/h) — the world's first known electric locomotive.
After 1842
Destruction of the Galvani
The machine is destroyed, traditionally by railway workers who feared for their jobs; the precise place and circumstances are not firmly documented.
1859
Rechargeable battery
Gaston Planté invents the rechargeable lead–acid battery, unlocking the technology Davidson had needed.
1879
Siemens' Berlin railway
Werner von Siemens demonstrates the first practical electric railway at the Berlin Industrial Exhibition — 37 years after the Galvani.
4 Nov 1890
London's electric tube
The City and South London Railway opens as the world's first deep-level electric underground line, vindicating Davidson's vision.
1890
Father of the Electric Locomotive
Rediscovered by the press as the 'oldest living electrician,' Davidson commissions new business cards reading 'Robert Davidson: Father of the Electric Locomotive.'
16 Nov 1894
Death in Aberdeen
Davidson dies in Aberdeen, aged 90. He is buried in St Peter's Cemetery, his gravestone describing him simply as 'chemist.'
The Collector Card
Card No. 39 of 50 in the Scottish Inventions Collection — celebrating Robert Davidson and the world's first electric locomotive. Flip to read the back.
Frequently Asked Questions
- Who invented the first electric locomotive?
- The Scottish chemist and engineer Robert Davidson (1804–1894), of Aberdeen, built the world's first known full-size electric railway locomotive. His machine, named Galvani, ran under its own power on the Edinburgh and Glasgow Railway in September 1842 — 37 years before Werner von Siemens' celebrated electric railway of 1879.
- Was Robert Davidson the first person to build an electric train?
- Yes — the historical record supports the claim. From 1837 Davidson built experimental motors and a model locomotive; by 1839 he had produced a four-wheeled electric car, and in 1840 he staged a public Electromagnetic Exhibition in Aberdeen. His full-size locomotive Galvani followed in 1842 and was demonstrated on the Edinburgh and Glasgow Railway. It is the first known electric locomotive to have hauled itself along a public railway anywhere in the world.
- What was the Galvani locomotive?
- The Galvani was a four-wheeled electric locomotive about 16 feet (4.9 m) long, weighing somewhere between five and seven tons depending on the source. It was powered by Davidson's own non-rechargeable galvanic (primary) cells — batteries that produced current by consuming zinc in acid — driving two electromagnetic motors, one on each axle. Davidson named it after Luigi Galvani, whose frog-leg experiments first hinted at the link between electricity and motion.
- How did Robert Davidson's electric locomotive work?
- Large primary zinc batteries mounted on the wagon supplied direct current to two electromagnetic motors. Each motor used electromagnets acting on iron bars fixed around a rotating wooden cylinder or 'log' — one per axle — with a switch (commutator) cutting the current when the bars were in opposition. Mechanical gearing transferred this rotation directly to the iron railway wheels, propelling the Galvani along conventional railway track without coal, steam or fire.
- Why did the Galvani fail commercially?
- The problem was chemistry, not engineering. Davidson's batteries were primary cells that produced electricity by consuming zinc, which was expensive; coal, by contrast, was cheap. Feeding a battery locomotive therefore cost vastly more per mile than stoking a steam engine's firebox — a widely quoted figure suggests around forty times more, though its precise 1842 origin is uncertain. Contemporary and modern sources agree the economics were hopeless until rechargeable batteries and efficient dynamos arrived decades later.
- Was the Galvani battery powered?
- Yes. The Galvani carried its own power supply in the form of large non-rechargeable galvanic (primary) cells. There were no overhead wires, pantographs or third rails — those technologies came much later. Every foot the locomotive moved consumed zinc from Davidson's batteries, which is why the machine, though it worked, could never pay its way.
- When was the first electric locomotive demonstrated?
- The full-size Galvani was demonstrated on the Edinburgh and Glasgow Railway in September 1842. It moved itself along the track at roughly 4 mph (6.5 km/h), covering about a mile and a half. Guinness World Records describes it as 'a battery locomotive weighing five tons on the Edinburgh & Glasgow Railway, Scotland, where it ran at 6.5 km/h (4 mph).'
- What happened to the original Galvani?
- The Galvani was destroyed some time after its 1842 trials. The traditional account — repeated by Wikipedia's 'Electric locomotive' article — is that railway workers 'saw it as a threat to their job security' and smashed it. The University of Aberdeen's more cautious version blames 'men unknown but suspected of being promoters of steam engines'; other sources place its destruction at the engine house in Perth. The core of the story is well attested, but the precise where, when and who are not firmly documented, and no physical remains of the Galvani survive.
- Where can you see a replica today?
- A full-size working replica of Davidson's electromagnetic motor, together with a replica of his battery and a model of the Galvani, forms the centrepiece of the 'It's Electric!' exhibition at the Grampian Transport Museum at Alford in Aberdeenshire. A companion book, 'Robert Davidson: Pioneer of Electric Locomotion' (Lumphanan Press), tells the full story.
- Why is Robert Davidson important?
- Because in 1842, thirty-seven years before Werner von Siemens, an Aberdeen chemist proved that a locomotive could run on electricity. Every modern electric train, tram and underground metro descends conceptually from Davidson's walking-pace machine on the Edinburgh–Glasgow line. When London opened the world's first deep-level electric tube railway in 1890, the elderly Davidson was rediscovered as the 'oldest living electrician' — and famously commissioned new business cards reading 'Robert Davidson: Father of the Electric Locomotive.'

