Electric Bikes Explained
An electric bike is three parts with a very clear division of labour: a battery that holds energy, a controller that decides how much of it to use, and a motor that turns it into motion.
The three parts, and what each one does
The battery is a pack of lithium cells in series and parallel, and its job is simply energy. The controller is a microcontroller and a power stage that reads your pedal input and throttle, and decides how much current to allow through the motor. The motor converts that electrical energy into torque.
The controller is the interesting part for a student, because it is where a decision becomes a physical quantity. The torque sensor on the pedals, the throttle position and the current sensor all feed into a control loop that limits the current so that the motor does not draw more than the battery and the wiring can safely carry.
Reading the spec sheet
The headline numbers are range, top speed and torque, and all three are misleading on their own. Range depends far more on the rider, the terrain, the tyre pressure and the wind than on the battery size, because a cyclist is the limiting factor in almost every legal class of e-bike.
Torque matters more than speed for almost everybody. A rider climbing a hill at walking pace needs torque at the wheel, and torque is what the gear ratio multiplies. A small motor with a low gear can climb better than a large motor with a high one.
Step by step
-
Understand the motor types
Hub motors are simple and heavy; mid-drive motors are efficient and complex. Know which one you are looking at before comparing numbers.
-
Understand the battery
Cell chemistry, series and parallel arrangement, voltage, capacity in amp-hours, and what happens to range when you add cells.
-
Understand the controller and its limits
Current limit is what protects the wiring and the battery. It is also what you feel as the power tapering on a hill.
-
Understand the drivetrain
Gear ratios multiply torque and divide speed. This is where the feel of the bike comes from.
-
Understand the safety chain
Brakes, torque sensing and the cut-off switch are what make it safe. Test the cut-off before you trust the bike.
-
Read the efficiency honestly
Range per charge is a number about the rider and the weather as much as the battery. Learn to adjust for that.
What you'll need
| Item | Qty | Why |
|---|---|---|
| 48V battery pack with BMS | 1 | The energy store and its protection circuit. The BMS is the part that matters. |
| Brushless hub motor | 1 | The motor, in the rear wheel, with its integrated freewheel. |
| Controller | 1 | Decides how much current the motor gets, and enforces the limit. |
| Torque sensor crank set | 1 | Measures pedal input so the controller can assist proportionally rather than in steps. |
| Throttle and brake cut-off switches | 1 each | The safety chain, and the reason the motor stops when you brake. |
| Digital multimeter | 1 | To measure the pack voltage and confirm the cut-off switches actually work. |
Practise it before you build it
Every step above has a matching circuit in the ThinkEdge Learn simulator. The simulator runs a real
Arduino sketch against a modified-nodal-analysis solver, so digitalWrite actually drives the
LED on screen and the readings change when you change the wiring — no hardware, no burnt components.
The DHT11 is a small blue module that measures temperature (0-50°C) and humidity (20-90%). Inside it has a tiny microcontroller, a humidity sensor, and a thermistor. It speaks a custom one-wire protocol that the Adafruit DHT library decodes for you. You just call dht.readTemperature() and you get a number back.
Real thermostats are simple state machines: read a sensor, compare to a single threshold, and switch between "safe" and "alarm" outputs. We use a DHT11 to read temperature, a green LED to show "safe" (≤ 32°C), and a red LED + buzzer to warn when the temperature is too hot (> 32°C). This is the same logic as a freezer alarm, a server-room monitor, or a pool-temperature alert.
The Mega has 4 hardware serial ports (Serial, Serial1, Serial2, Serial3). That means you can talk to 4 different devices at the SAME time — like a GPS, a Bluetooth module, an XBee radio, and the USB. Use 3 of those ports to read 3 different sensors in parallel and stream their data to the Serial Monitor as a CSV row every second. This is the foundation of every real Arduino data logger.
When you spin a magnet inside a coil of wire, or move a coil past a magnet, you generate electricity. This is called electromagnetic induction (discovered by Michael Faraday in 1831). Bike dynamos use this principle: a small wheel rubs against the bike tire, spinning a magnet inside a coil. The faster you pedal, the more electricity you produce. In this project, you'll build a simple hand-crank generator circuit that powers an LED — proving you can make light from motion alone.
The classic first Arduino project — blink the built-in LED on pin 13 — but done the RIGHT way. Most beginners use delay(1000) to make the LED blink, but delay() blocks the whole CPU so you can't do anything else while the LED blinks. The real Arduino idiom is to track time with millis() and only toggle the LED when enough time has passed. This is how every non-trivial Arduino sketch works.
In factories, conveyor belts carry products past a sensor that counts them. A simple "break-beam" sensor (a light source + photodetector) registers each object as it passes. In this project, you'll simulate the conveyor with your hand: every time you press the button (mimicking a product passing the sensor), the counter increments and the LED blinks. Add a buzzer to beep once for every 10 items. This is the same logic as a people counter at a door, a coin counter at a bank, or a bottle counter on a bottling line.
Common questions
How long does an electric bike battery last?
A good 500 Wh pack on a typical flat commute gives somewhere around 40 to 70 km. The same pack can do 25 km of steep hills or 90 km of flat riding in a tailwind, because the rider's power output and the terrain dominate the calculation far more than the battery size does.
Do I need to know how lithium batteries work to teach this?
Not deeply, but the useful level is real. Students should understand why the cells are in series or parallel, what a battery management system does, why a damaged cell is a fire risk, and why the controller limits current. That is enough to make sensible engineering judgements about a pack they build or use.
What makes an e-bike controller cut out?
Usually a deliberate safety behaviour rather than a fault. Losing the torque sensor signal, opening the brake cut-off switch, or the battery dropping below its low-voltage threshold will all stop the motor. A controller that keeps running after any of those is a design that should fail differently.
Related guides
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. NCERT Science mapping on 47 projects, with Arabic and English copy in the regional builds.