The EV3 Fan: a motor turns two gears, and the gears spin the blades. It really moves air. You will feel it on your hand.
The Folding Fan Robot in Lesson 4 waved a fan. This one spins a fan. Spinning makes a much stronger wind.
This model will also get you stuck, on purpose. You will want it to blow harder. You will turn the speed up to 100 %. Then you can go no higher, because 100 % is the top. What you do next is the lesson.
In the real world 5 min
Where you have seen it
Lots of classrooms have a fan on the ceiling. Lots of homes have a standing fan in the corner too. In hot places, a fan is not a treat. It makes a hot room nice to be in.
An electric fan in a school. Photo: Curpharar / Wikimedia Commons (CC BY-SA 4.0).
Why it is built that way
A fan blade is set at a slant, or angle. As it spins, it hits the air at a slant. That pushes the air forwards, out of the way. Spin the blade faster, and it moves more air every second.
Here is what a fan does not do. It does not make the air cold. The air coming out is just as warm as the air going in. It cools you. The moving air carries heat and sweat off your skin. So a fan in an empty room does nothing useful at all.
What would go wrong without it
Here is the problem. A fan needs speed: lots of turns every second. But a motor has a top speed. It cannot go faster, whatever your program says.
So real fans do not just use the motor. The people who make them plan for the speed they need. They choose the blade size, the slant and the gears first. Then they switch it on. If they get that wrong, changing the controls will not fix it.
A program can only ask for what the machine can do. If the machine cannot do it, you need to change the machine.
The main idea: fix it in the build, not the program 6 min
When two gears turn together, you swap speed for strength. You cannot get more of both. But you can choose which one you want.
Arrangement
What you get
Good for
Small gear driving a big one
Geared down: slower, stronger
Lifting, walking, a barrier arm
Big gear driving a small one
Geared up: faster, weaker
A saw blade. A fan.
You saw this with the Wipers in Lesson 2. They were geared down. Then you geared the Gear Bot up in Lesson 8. What is new today is when you use it.
0.00turns in0.00turns out×3turning force
strongerslowerslow and strong — a lifting winch
Two gears, meshed. The one on the left is being turned; the one on the right is along for the ride.Watch the two counters. They are not climbing at the same rate.Whatever the follower loses in turns, it gains in force — and whatever it gains in turns, it loses in force. There is no setting that gives you both.Finished. Count the turns again with a different pair and the trade goes the other way.
stopped
The number of teeth is the whole story. 8 teeth driving 24 means 8 ÷ 24 of a turn out for every turn in — and the force changes by exactly the opposite amount.
Count the teeth in the demo. Then you can see the exact swap. Three turns of the first gear make one turn of the second. And the push is three times as strong. Swap the gears round, and you get the opposite.
The moment that matters
Your program is going to say set speed to (100) %. That is the biggest number the block takes. There is no 150.
So if someone wants a stronger wind, there is nothing to type. The keyboard cannot help now. Instead, take the model apart. Put a bigger gear on the motor. This time, it is the only thing left to try.
Before you spend an hour on a program, ask: can the machine really do this? Sometimes the fix is a gear, not a block.
▶Gear ratios, and motor speedAll about gears and the speed block. Open one if it is not clear yet.Show meHide
ComponentMechanics5 min
Gearing up and gearing down
Two meshed gears are a bargain. Whatever one of them gains in turns it loses in force, and whatever it loses in turns it gains in force. There is no arrangement of gears that gives you more of both, and no amount of building will find one.
The ratio is the teeth
Count the teeth on the gear you are turning (the driver) and the teeth on the one being turned (the follower). That is the whole calculation:
turns out = turns in × driver teeth ÷ follower teeth
An 8-tooth gear driving a 24 gives ⅓ of a turn out for every turn in — and three times the turning force. Turn the pair round and you get three turns out and a third of the force. Count the turns yourself below.
0.00turns in0.00turns out×3turning force
strongerslowerslow and strong — a lifting winch
Two gears, meshed. The one on the left is being turned; the one on the right is along for the ride.Watch the two counters. They are not climbing at the same rate.Whatever the follower loses in turns, it gains in force — and whatever it gains in turns, it loses in force. There is no setting that gives you both.Finished. Count the turns again with a different pair and the trade goes the other way.
stopped
The number of teeth is the whole story. 8 teeth driving 24 means 8 ÷ 24 of a turn out for every turn in — and the force changes by exactly the opposite amount.
Gearing down, gearing up
Arrangement
Turns
Force
What it is for
Gearing down — small driving large
fewer
more
winches, lifts, robot arms, anything that has to move a weight
Gearing up — large driving small
more
less
fans, spinners, launchers, wheels on a light fast robot
1 : 1 — same size
same
same
moving the drive to a different axle, or fixing a direction
The names are worth getting right because they are backwards from what people expect: gearing down makes the output slower, not smaller, and it is the setting that makes a weak motor able to lift things.
Gear trains
Put several pairs in a row and the ratios multiply. Two 1:3 reductions in series give 1:9 — which is how a Medium Motor ends up able to raise something it could never shift directly. This is also how a gearbox with a sensible number of parts reaches a ratio that a single pair never could: a 40-tooth gear driven by an 8 is 1:5, and doing it twice is 1:25.
Only the first and last gear affect the ratio. Anything in the middle passes the motion along and changes nothing but the direction — which is a whole idea of its own, in Changing the direction of a turn.
What it costs
Every mesh loses a little to friction, so a long train is less efficient than a short one. Gearing down far enough to lift a heavy load also makes the mechanism slow, and slow is not always acceptable. And a gear train that is geared down hard is very hard to turn backwards by hand, which is either a useful brake or a nuisance depending on what you are building.
Why it matters
A bicycle is the same idea with a chain instead of teeth in mesh: the low gear that gets you up a hill is turning the back wheel slowly and pushing hard, and the high gear you use going downhill does the opposite. Cars, drills, cranes and clocks are all making the same trade.
ComponentMotion4 min
Speed and power
Speed is set separately from movement. You tell the motor how fast it should go, and then you tell it to go — two blocks, in that order.
Speed is a percentage of what this motor can do, not a real-world unit — the same 50 % moves a light arm quickly and a heavy one slowly.
Blocks reference
Block
What it does
[A v] set speed to (25) % :: motors
Sets the speed for this motor from now on. Nothing moves — it only changes what the next movement will do.
[A v] run [clockwise v] for (2) [rotations v] :: motors
Now moves, at whatever speed was last set.
Set it first
when program starts :: events hat
[A v] set speed to (25) % :: motors
[A v] run [clockwise v] for (2) [rotations v] :: motors
Swap those two blocks round and the program still contains a speed of 25 % — it just never gets used. Both shafts below are asked for exactly 2 rotations; watch how long each one takes.
speed first — works
A set speed to 25 %
A run clockwise for 2rotations
speed last — does nothing
A run clockwise for 2rotations
A set speed to 25 %
0.00rotations · slow0.00rotations · fast
Speed first: the movement was slowSpeed last: it only affects the NEXT movement
Two programs. Same two blocks in each — only the order is different.Both are running — and the right-hand one is already finished. The left is barely a third of the way.Its speed block runs now, far too late to affect the movement above it. The left motor is still going, slowly, as it was told to.Both turned exactly 2 rotations. Only one of them did it at the speed the program asked for.Finished — it will run again in a moment.
stopped
Both shafts turn exactly 2 rotations. Only the time they take is different — and the right-hand program never gets the slow movement it was written to have.
The right-hand movement is over before the left is a third of the way round, because it ran at the default speed. Its set speed to () block does run — you can see it light up — but by then the movement it was meant to slow down has already happened. A speed block only ever affects the movements after it. This catches people out constantly.
Slow is often better
A high speed is not a better program. Slow movements are gentler on the gears, easier to watch and debug, and look more like the real machine — a barrier that snaps up in a fraction of a second reads as broken rather than fast.
Say this back before moving on: “A big gear turning a small gear makes the small one spin faster. But it pushes less hard.”
What’s in this build 4 min
Two electronic parts, plus two gears. The gears matter just as much.
Part
What it is doing here
EV3 Intelligent Brick
Runs the program and holds the model down. A spinning fan pushes back. The Brick’s weight stops the model sliding across the table.
Medium Motor
Turns the gears. It is the faster of the two motors. That is right for a job that only moves air.
The gear pair (no cable)
Sets how fast the blades turn for each turn of the motor. You are going to change this part.
Count your gearing before you run anything
Find the gear on the motor. Find the gear on the blade axle. Which is bigger?
Count the teeth on each one. Press a fingernail on the tooth you start from. It is easy to lose count on a 40-tooth gear.
Turn the motor drum one full turn by hand. Count how many times the blades turn. Write the number down. That is your ratio.
Use your two tooth counts. What should that number be? Did your counting and your turning agree?
Keep this number. In the last two sections, you will compare against it. You cannot compare with a number you did not write down.
Ports — and the rule 4 min
Sensors go in ports 1, 2, 3, 4. Motors go in ports A, B, C, D. You cannot swap them. If you do, nothing warns you. The robot just will not work.
Part
Port
Why this one
Medium Motor (drives the blades)
A
This time, the build guide tells you. Its last step says “Connect Medium Motor to Port A”. Most build guides in this course do not say which port. When one does, follow it.
Sensors
none
The fan cannot tell if anyone is in the room.
Check your own build now:
Motor cable in port A. A letter, not a number.
Spin the blades by hand. They should turn easily and keep going for a moment. If they stop at once, the gears are pushed together too tightly.
Nothing within reach of the blades. No cables, hair, paper or sleeves. This fan spins fast.
Is the model on a flat table, with the Brick sitting over the base? It will try to move.
Connect the Brick 4 min
Two routes, and either is fine. USB is the reliable one and the one to fall back on when a room’s Bluetooth is busy; Bluetooth leaves the robot free to move, which some models need.
▶How to connect the BrickUSB and Bluetooth, step by step, with a photograph of every screen. Open it if you have not done this before — or if pairing is not working.Show meHide
USB — the reliable one
Switch the Brick on with the dark grey centre button.
Cable into the Brick’s PC port — the small square socket beside the numbered ports, not one of the numbered ones.
Other end into the computer.
Bluetooth — name it first
Do these in order. Naming the Brick after you go looking for it in the list is how groups end up driving each other’s robots.
Name your Brick. On the Brick: Settings (the spanner) → Brick Name. Type something nobody else will pick, then press the tick. Every Brick is called EV3 until somebody changes it.
Turn Bluetooth on. Settings → Bluetooth. Tick Bluetooth and Visibility. Leave iPhone/iPad/iPod unticked.
Connect from EV3 Classroom. Click the Brick icon at the top of the programming area, find your Brick by name, and click Connect.
Say yes on the Brick. It asks “Connect?” with the computer’s name — choose the tick, then accept the passkey, which is already 1234.
Where to read it. The name sits in the bar across the very top of the screen, on every screen — so you can check which Brick you are holding at any moment without going into a menu. This one is EV3VE. A Brick nobody has renamed says EV3.Step 3, and the reason step 1 exists. Three Bricks in range — read the name before you click Connect. Pairing with the wrong one is not an error: it works perfectly, on somebody else’s robot.
Step 2.Bluetooth switches the radio on; Visibility is what lets the computer find you. With Visibility off your Brick works perfectly and simply never appears in the list.Step 4. Look at the Brick. It asks whether to accept and names the computer. Choose the tick.Then the passkey, already 1234. Press the tick again and you are connected.
The two failures, every class, every time. The Brick has gone to sleep while you were building — press the centre button to wake it. Or you have paired with the group at the next table, which is why the name matters.
The long version, including Port View and how to read the port tiles, is in the Brick & Bluetooth guide.
Route the cable behind the model. This machine’s whole job is to blow things about. If the USB cable gets in the blades, it will stop the fan. It may stop the lesson too!
Confirm the connection 2 min
Check the Brick icon. Is it connected?
Check the port tiles. A Medium Motor on A. If it says Large, you have the wrong motor. This model needs the fast one.
Spin the blades by hand and watch degrees counted move on the tile. The number counts the motor’s turns, not the blades’. The gears sit between them. The Brick does not know the gears are there.
The Brick can only count the motor. The program cannot see what the gears do. That is why you choose gears in the build, not in the program.
Change it and test 8 min
The first two changes are in the program. The rest are not. Spotting where the program stops helping is the point here.
Set the speed to 50 %. Feel the wind from the same place. Half the speed gives much less than half the wind.
Now set it to 150. See what the block does with that. Then set it back to 100. The program cannot help any more.
Stop typing. Take the fan apart and swap the two gears over. Put the big one on the motor and the small one on the blades. Build it again. Run the same program, and feel the difference.
Count the ratio again by hand, like you did in section 5. Write both numbers side by side. That is your proof.
The last one is tricky. With the new gears, does the fan reach full speed faster or slower than before? You gave up strength to get that speed. And strength is what gets the blades moving from still.
Step 3 is the whole lesson in one step. The program did not change at all. But the machine got better. The problem was never in the program.
“Turn it up” runs out. “Rebuild it” does not.
This is what you are building: the EV3 Fan.
Build it 15 min
Build the model before you read any further. Everything after this is about making it do something, and none of it will make much sense with nothing on the table in front of you.
Fullscreen it while you build — you can pause and scrub with the player's own controls.
Check the finished build against the picture before you switch anything on. A motor mounted the wrong way round is far easier to spot now than it is to debug later, when it looks like a program fault.
Fullscreen it while you build — you can pause and scrub with the player's own controls.
Challenges 27 min
Work through them in order — each is harder than the last. The extra challenge comes after all three, and it is meant to make you plan before you build.
Challenge 1
- When Up Button is pressed, the motor turns clockwise.
- When Down Button is pressed, the motor turns counterclockwise.
- When Center Button is pressed, the motor stops.
Fullscreen it while you build — you can pause and scrub with the player's own controls.
Log in to see hints.
Challenge 2
Create a variable named "speed"
- Set speed to 0.
- When Left Button is pressed, clear display, decrease speed by 5, play "Speed down" sound, limit minimum speed to -100, and display current speed.
- When Right Button is pressed, clear display, increase speed by 5, play "Speed up" sound, limit maximum speed to 100, and display current speed.
- When Center Button is pressed, start motor using "speed" as the motor speed.
- When Center Button is released, stop motor.
Fullscreen it while you build — you can pause and scrub with the player's own controls.
Log in to see hints.
Challenge 3
Create a variable named "speed"
- set the speed to 10 (start from the speed 10%)
When the center button is pressed, clear display and start a continuous loop:
- start motor using speed as the motor speed.
- display current speed on screen
- increase speed by 10 and play a beep sound every 1 second.
- if speed goes above 100, it will play a sound "three", "two", "one", stop motor and stop and exit the program.
Fullscreen it while you build — you can pause and scrub with the player's own controls.
Log in to see hints.
Extra challenge
Design and rebuild your fan so that the blades rotate much faster than your original setup. Before building, write down your predicted gear ratio on paper, and during your demonstration, explain why this gearing increases speed and what you had to give up to get it.
The program, block by block
Motor A (medium) · Speed default · Sensors none
What it does
The fan runs only while the centre button is held. Pressing it starts motor A
clockwise; letting go stops it.
Worth noticing
Two stacks, one button. Both hats watch centre. The first says pressed, the second
says released. That last dropdown is the whole difference.
Start, not run for.Start motor keeps turning until something stops it. The
release stack is that something.
No speed block. The motor runs at EV3 Classroom's default speed. Turning it up is
what the challenges are for.