
Electrical circuits, DC motors, and regenerative braking on the city's last heritage route.
The 6:14 AM
Every morning at exactly 6:14, Subroto Dasgupta climbed into the driver's cabin of Tram No. 171 at the Esplanade depot in central Kolkata. The tram was sixty-three years old. Subroto was fifty-eight. They understood each other.
Tram No. 171 was a single-truck four-wheeler, built in 1961 at the Nonapukur workshop on the eastern edge of the city. Its body was riveted steel, painted in the Calcutta Tramways Company livery of cream and blue. Its windows were tall and narrow, designed in an era when air conditioning meant opening a window and hoping the breeze off the Hooghly River would find you.
Subroto had driven this route for thirty-one years — from Esplanade to Ballygunge, a distance of 7.2 kilometres through some of the most densely packed streets on Earth. The route threaded past College Street's bookstalls, through the shade of the banyan trees on Gariahat Road, past the sweet shops where rasgullas sat in terracotta bowls, and alongside the yellow Ambassador taxis that honked at the tram as though honking might make a 15-ton vehicle move faster.
This morning, Subroto's grandson Arjun was riding in the cabin. The boy was twelve, sharp-eyed, and full of questions. He had been asking to ride in the driver's cabin for months. Today, the last day of his school holidays, Subroto had finally agreed.
"Dadu," Arjun said, using the Bengali word for grandfather, "how does it move? There is no engine. There is no petrol tank."
Subroto smiled. He had been waiting for this question.
The Overhead Wire
"Look up," Subroto said.
Above the tram, a single copper wire stretched along the length of the route, suspended from poles and span wires at a height of exactly 5.5 metres. This was the overhead catenary — the tram's power line.
On the roof of the tram, a spring-loaded arm called a trolley pole pressed a grooved copper wheel against the underside of the wire. As the tram moved, the wheel rolled along the wire, maintaining constant electrical contact.
"That wire carries 550 volts of direct current," Subroto explained. "It comes from the Cossipore substation, nine kilometres north of here. The substation takes alternating current from the city grid, converts it to DC using rectifiers, and feeds it into the overhead wire."
"Why direct current?" Arjun asked. "My science teacher said AC is more efficient."
Subroto nodded approvingly. "Your teacher is right — for long-distance transmission. But for a tram motor, DC is better. A DC motor gives you something no AC motor can match: precise speed control using simple resistance. You change the voltage, you change the speed. No inverters, no frequency converters, no computers. Just a handle."
He pointed to the brass controller handle mounted on a pedestal in the centre of the cabin. It had twelve notch positions, from Off to Full Power.
The Circuit
"Here is the secret," Subroto said. "This entire tram is one big electrical circuit."
He traced the path with his finger: "Current flows from the Cossipore substation through the overhead wire. The trolley pole picks it up. It flows down through the cable into this controller. The controller feeds it into the traction motor under the floor — a big DC series motor, 65 horsepower. The current flows through the motor's field coils, creating a magnetic field. Then it flows through the armature — a cylinder of copper windings that sits inside that magnetic field. The magnetic field pushes on the current in the armature, and the armature spins. The armature is connected to the axle through a gear train. The axle turns the wheels. The wheels push 15 tons of steel and passengers down the road."
He paused. "And then — this is the part people forget — the current has to get back to the substation. It flows from the motor, down through the wheels, into the steel rails, and the rails carry it all the way back. The rails are the return conductor. That is why tram rails are always bonded with copper jumper cables at every joint — to make sure the return path is continuous."
Arjun stared at the rails ahead of them. "So we are driving on half the circuit?"
"Exactly. The overhead wire is one half. The rail is the other. The tram is the load in between."
The Series Motor
As the tram pulled away from the Esplanade stop, Subroto advanced the controller handle from Notch 1 to Notch 4. The motor hummed louder. The tram accelerated.
"A DC series motor is wired in a special way," Subroto explained. "The field coils and the armature are connected in series — one after the other, so the same current flows through both. When the tram is starting from rest, it draws a lot of current. That high current flows through the field coils, creating a very strong magnetic field. A strong magnetic field means high torque — strong pulling force. That is why a tram can start smoothly even when it is carrying 200 passengers. The motor automatically provides the most force exactly when you need it — at startup."
"What about top speed?"
"As the tram speeds up, the spinning armature generates a back-EMF — a voltage that opposes the supply voltage. This reduces the current. Less current means a weaker magnetic field and less torque, but by then the tram is already moving and does not need as much force. The motor naturally transitions from high-torque-low-speed to low-torque-high-speed. It is elegant."
He moved the handle to Notch 8. "The controller handle does not just turn things on and off. At each notch, it switches in or out sections of resistance in the circuit. At Notch 1, a lot of resistance is in the circuit, limiting the current. At Notch 12, all resistance is bypassed and the motor gets the full 550 volts."
The Braking Problem
They were approaching the Park Street crossing. A bus had stopped ahead. Subroto pulled the controller to the Off position and moved a second handle — the brake handle.
The tram began to slow. But Arjun noticed something on the ammeter — the needle, which had dropped to zero when Subroto cut the power, was now deflecting again. Current was flowing.
"Dadu, the motor is off. Why is there current?"
Subroto grinned. "Because now the motor is a generator."
"When I cut the power, the tram is still moving. The wheels are still turning. The wheels turn the axle, the axle turns the armature. A spinning armature inside a magnetic field does not just consume electricity — it produces it. This is regenerative braking. The tram's kinetic energy — its energy of motion — is being converted back into electrical energy."
"Where does the electricity go?"
"Back into the overhead wire. Other trams on the network can use it. In a busy hour, when one tram is braking while another is accelerating, energy flows from the braking tram to the accelerating one. The system recycles its own energy. A Kolkata tram recovers about 30 percent of its braking energy this way."
He applied more brake pressure, and Arjun heard a different sound — a grinding, metallic screech.
"That is the mechanical brake," Subroto said. "Regenerative braking works well at high speed, but below about 10 kilometres per hour, the armature is not spinning fast enough to generate useful voltage. So we switch to friction brakes — cast iron shoes that press directly against the wheel treads. Crude, but reliable."
College Street
The tram turned onto College Street, and Arjun watched the overhead wire shift from one span to the next. At each junction, the trolley pole navigated a complex arrangement of switches and crossings in the wire — called frogs, just like the switches in the rail below.
"This part of the route has been electrified since 1902," Subroto said. "Kolkata was the first city in Asia to run electric trams. Before that, the trams were pulled by horses. Before the horses, there was nothing — just mud lanes and palanquins."
They passed the gates of Presidency University, where Satyendra Nath Bose had studied — the physicist who gave his name to the boson, who corresponded with Einstein, who helped build the mathematics of quantum mechanics. Arjun did not know this yet, but he would.
"The whole system is old," Subroto said quietly. "The substations. The wire. The controllers. The motors. They talk about shutting it down every few years. They say buses are cheaper. They say metro rail is faster. They are right about both. But a bus burns diesel and fills College Street with smoke. A metro runs underground where no one can see the city. A tram runs on electricity, at street level, in the open air, carrying people past the bookstalls and the sweet shops and the university gates."
He pulled the controller to Notch 6 and the tram hummed forward.
"A tram is a 15-ton physics lesson," Subroto said. "And this city has been running one for 122 years."
Ballygunge Terminus
At the terminus, Subroto swung the trolley pole to face the other direction — a manual operation, done by pulling a rope that released the pole and swinging it 180 degrees. The tram had no front or back; either end could be the driving end. The controller handle was removed from its socket and carried to the other cabin. The seats, which were reversible, were flipped by the conductor.
In five minutes, Tram No. 171 would head back to Esplanade. Subroto would drive the same route, past the same bookstalls, under the same wire.
Arjun sat on the wooden bench and looked up at the trolley pole pressing against the overhead wire.
Fifteen tons. 550 volts. A circuit that used the rails of the city itself as one of its conductors.
"Dadu," he said, "can I come again tomorrow?"
The end.
Choose your level. Everyone starts with the story — the code gets deeper as you go.
Here is a taste of what Level 1 looks like for this lesson:
import numpy as np
import matplotlib.pyplot as plt
# Your first data analysis with Python
data = [45, 52, 38, 67, 41, 55, 48] # measurements
mean = np.mean(data)
plt.bar(range(len(data)), data)
plt.axhline(mean, color='red', linestyle='--', label=f'Mean: {mean:.1f}')
plt.xlabel("Sample")
plt.ylabel("Value")
plt.title("Electrical Circuits & DC Motor Engineering — Sample Data")
plt.legend()
plt.show()This is just the first of 6 coding exercises in Level 1. By Level 4, you will build: Build a DC Tram Motor Simulator.
Free
Level 0: Listener
Stories, science concepts, diagrams, quizzes. No coding.
You are here
Level 0 is always free. Coding levels (1-4) are part of our 12-Month Curriculum.
The real electrical engineering inside a heritage tram — DC series motors, regenerative braking, and circuit design for a 15-ton vehicle.
The big idea: "The Last Tram of Kolkata" teaches us about Electrical Circuits & DC Motor Engineering — and you don't need to write a single line of code to understand it.
Think about a torch. It has a battery, a bulb, and wires connecting them in a loop. Current flows from the battery, through the wire, through the bulb (which lights up), back through the other wire, and into the battery again. If you break the loop anywhere — remove a wire, unscrew the bulb — everything stops. Current needs a complete loop to flow. This is a circuit.
A tram is the same thing, just enormously scaled up. Instead of a battery, there is a substation that supplies 550 volts of direct current. Instead of a wire from the battery to the bulb, there is an overhead copper wire strung above the street. Instead of a bulb, there is a traction motor under the tram floor. And instead of a return wire from the bulb back to the battery, the tram uses the steel rails it runs on. The current flows from the substation, through the overhead wire, down the trolley pole into the motor, out through the wheels, into the rails, and back to the substation. The entire city street — the rails embedded in the road — is one half of the circuit.
This is why tram rails have copper jumper cables bonded across every joint where two sections of rail meet. If even one joint corrodes and loses contact, the return path is broken — just like removing a wire from your torch. The current cannot flow, and the tram stops. Maintaining unbroken electrical continuity across kilometres of rail, through rain, heat, and vibration, is one of the unglamorous but essential engineering challenges of running a tram system.
Here is a question to test your understanding: if a tram is drawing power from the overhead wire but the trolley pole loses contact for a moment (say, it bounces over a junction in the wire), what happens to the motor?
Key idea: A tram is a scaled-up electrical circuit. The overhead wire carries current from the substation to the motor; the steel rails carry it back. Both paths must be unbroken for the motor to work — exactly like any torch or household circuit, just measured in hundreds of volts and thousands of amps.
Imagine pushing a heavy wardrobe across a room. The hardest part is getting it to move in the first place — once it is sliding, keeping it going is much easier. A tram has the same problem. Starting a 15-ton vehicle from rest requires enormous force (torque). Once the tram is rolling at speed, it needs much less force to maintain that speed. What you want is a motor that automatically provides maximum torque at startup and then gradually trades torque for speed. This is exactly what a DC series motor does.
In a DC series motor, the two key parts — the field coils (which create the magnetic field) and the armature (the spinning part) — are wired in series, meaning the same current flows through both. When the tram is stationary and the driver applies power, the motor draws a large current because there is nothing opposing the voltage (no back-EMF yet). This large current flows through the field coils, creating a very strong magnetic field. A strong field acting on a high current in the armature produces enormous torque. The tram begins to move.
As the armature spins faster, it begins to act like a generator in reverse — it produces a voltage called back-EMF that opposes the supply voltage. This naturally reduces the current. Less current means a weaker magnetic field and less torque, but by this point the tram is already moving and does not need as much force. The motor has automatically shifted from "high torque, low speed" to "low torque, high speed" — without any gearbox, clutch, or computer. The physics of electromagnetic induction handles the transition smoothly.
This self-regulating behaviour is why DC series motors were the universal choice for traction — trams, trains, trolleybuses — for over a century. No other motor type available in 1902 could match this combination of startup torque and smooth speed transition. Modern electric trains use AC motors with electronic inverters to achieve similar characteristics, but the old DC series motor did it with nothing but copper wire and iron.
Key idea: A DC series motor wires the field coils and armature in series, so the same current flows through both. At startup, current is high, producing strong magnetic fields and high torque. As speed increases, back-EMF reduces current automatically, trading torque for speed — perfect for traction without any complex controls.
Access all 130+ lessons, quizzes, interactive tools, and offline activities
Roll a ball up a ramp. At the bottom, it has **kinetic energy** — the energy of motion. As it climbs, it slows down, converting kinetic energy into **...
Try this thought experiment. You have a torch with a dimmer switch. Turn the dimmer down: less current flows through the bulb and it glows dimly. Turn...