TinkerExplorerv1.0.0

Fan

This project introduces a fan system using a DC motor and a pushbutton, where pressing the button powers the motor to spin and create airflow, demonstrating how electrical energy is converted into motion just like a real fan.

2026-04-133 min read
Inputs & OutputsPWM#UNDA.Xplora

Introduction

Is it hot outside? Feeling sticky and sweaty? Then it’s time to cool things down with your very own fan!

Fans are super " cool" inventions. With just one press of a button, the blades start spinning round and round, sending out a nice, cool breeze to make you feel fresh and happy.

Inside the fan, there's a small motor. When it turns on, it spins the blades and moves the air around you. That spinning is what moves the air and cools you down! It’s like having your own little wind.

Fans are found almost everywhere; at home, in school, in offices, buses, and even outside. Some are big and hang from the ceiling. Others are small and sit on a table. Even computers and cars use fans to stay cool!

In this fun project, you’ll build your own fan using a motor, some components, and cut-out paper for blades. Press the button and watch your blades spin!

Fan Circuit on Xplora 3D Simulator

Build the Project

In this section we will explore how to use UNDA.Xplora to build a simple electrical fan.

Components Used

#NameComponentQtyDescription
1Motor
Motor
1

DC Motor

2Pushbutton
Pushbutton
2

Choose your preferred button color

3Resistor
Resistor
1

10 Kilo-Ohm Resistor

4Jumper Wire
Jumper Wire
4

Male-Male Jumper Wires

5Breadboarding Wires
Breadboarding Wires
6

Choose breadboarding wires that fit easily between connection points

6Battery Connector
Battery Connector
1

9V Battery Connector

7Battery
Battery
1

UNDA 9V Rechargeable Battery

8UNDA:Xplora
UNDA:Xplora
1

Xplora Electronics Kit

Step 1

Wiring overview of connecting the Push Buttons on the Breadboard

Wiring Connections4 connections
FromWire / PartToNote
Push Button 1 PinsPush button 1Breadboard Pins (top-g4 & g6)(bottom-d4 & d6)Places button 1 on the breadboard
Push Button 2 PinsPush button 2Breadboard Pins (top-g14 & g16)(bottom-d14 & d16)Places button 2 on the breadboard
Breadboard Pin h6Resistor 10,000 kΩBreadboard Pin h10Used as a pull-up resistor for button 1
Breadboard Pin h16Resistor 10,000 kΩBreadboard Pin h20Used as a pull-up resistor for button 2
Product image
1
2
3
4
1
Push button 1 Connection

Insert the pushbutton with its top pins in breadboard pins g4 and g6, and its bottom pins in d4 and d6.

2
Push button 2 Connection

Insert the pushbutton with its top pins in breadboard pins g14 and g16, and its bottom pins in d14 and d16.

3
Resistor 1 Connection

Insert the 10 kΩ resistor with one leg in h6 and the other in h10 of the breadboard.

4
Resistor 2 Connection

Insert the 10 kΩ resistor with one leg in h16 and the other in h20 of the breadboard.

Pull-Up Resistors

In this project, the 10 kΩ resistors are used as pull-up resistors. They keep the push button pins at a HIGH (3.3V) state when the buttons are not pressed, giving the kit a stable signal to read.

When a button is pressed, the pin is connected to GND, changing the signal to LOW.

Step 2

Connecting the Push buttons to 3.3V Power.

Wiring Connections3 connections
FromWire / PartToNote
Xplora 3.3V Pin
red
Top Positive Breadboard Rail3.3V Power supplied to top positive breadboard rail
Top Positive Breadboard Rail
orange
Breadboard Pin j10Supplies 3.3V power to button 1
Top Positive Breadboard Rail
orange
Breadboard Pin j20Supplies 3.3V power to button 2
Product image
1
2
3
1
3.3V Power Connection

Connect a breadboarding jumper wire from any 3.3V pin on your kit to the top positive breadboard rail.

2
Button 1 Power Connection

Connect a breadboarding jumper wire from the top positive breadboard rail to breadboard pin j10.

3
Button 2 Power Connection

Connect a breadboarding jumper wire from the top positive breadboard rail to breadboard pin j20.

Step 3

Connecting the Push Buttons to Ground (GND).

Wiring Connections3 connections
FromWire / PartToNote
Top Negative Breadboard Rail
black
Xplora GND PinConnects bottom negative rail to Ground (GND) Connection
Top Negative Breadboard Rail
black
Breadboard Pin i4Connects the button 1 to Ground Connection
Top Negative Breadboard Rail
black
Breadboard Pin i14Connects the button 2 to Ground Connection
Product image
1
2
3
1
Ground Connection

Connect a jumper wire from any GND pin on your kit to any pin of the top negative breadboard rail.

2
Button 1 Ground Connection

Run a breadboarding jumper wire from the top negative breadboard rail to breadboard pin i4.

3
Button 1 Ground Connection

Run a breadboarding jumper wire from the top negative breadboard rail to breadboard pin i14.

Step 4

Connecting the push buttons to Xplora digital pins.

Wiring Connections2 connections
FromWire / PartToNote
Xplora Pin B5
green
Breadboard Pin i6Signal Jumper Wire for push button 1
Xplora Pin B15
blue
Breadboard Pin i16Signal Jumper Wire for push button 2
Product image
1
2
1
Signal Wire 1 Connection

Connect a jumper wire from breadboard pin i6 to digital pin B5 on the UNDA.Xplora board.

2
Signal Wire 2 Connection

Connect a jumper wire from breadboard pin i16 to digital pin B15 on the UNDA.Xplora board.

Step 5

Wiring overview of the DC Motor on the breadboard.

Wiring Connections4 connections
FromWire / PartToNote
Motor Positive PinBuzzerBreadboard Pin b27Connects Positive Pin of Motor on the breadboard
Motor Negative PinBuzzerBreadboard Pin b26Connects Negative Pin of Motor on the breadboard
Xplora Pin B0
blue
Breadboard Pin e27Signal Jumper Wire
Top Negative Breadboard Rail
black
Breadboard Pin e26Connects the negative buzzer pin to Ground (GND)
DC Motor Polarity

Take note that the motor has polarity meaning it has positive and negative terminal. The positive is marked by red wire and negative marked by black wire.

DC Motor Placement

The two pins of the motor are positioned close to each other, so when you insert one pin, the other pin should fit easily into the adjacent hole on the breadboard.

Product image
1
2
3
1
Motor Connection

Insert the motor with the positive (+) leg in pin b27 and the negative (–) leg in pin b26 of the breadboard.

2
Signal Wire Connection

Connect a jumper wire from breadboard pin e27 to digital pin B0 on your kit.

3
Motor Ground Connection

Connect a jumper wire from breadboard pin e26 to any GND pin on your kit.

Image Step

This step uses an image from the Xplora 3D Simulator. The motor are designed to simplify the connections for the simulation and it may look different from the actual Dc motor.

Even though the motor looks different, follow the instructions as given in this guide step when building the physical circuit.

Xplora Breadboarding Simulator

Check out the virtual breadboarding for the same project at:
Fan

Run the Project

Once you are done building the project, power up your kit. Upload your project and then open the Play Section and press the push button and observe what happens.

You can refer to Xplora Menu - Projects to check out the steps of how to upload the project.

Observation

When the first pushbutton is pressed, it sends a signal to the system, telling it to supply power to the motor, which then causes it to start rotating (like a fan). This happens because the button acts as an input device, allowing your UNDA.Xplora kit to detect the press and respond accordingly.

The second pushbutton is used to control the fan’s speed. Each press cycles through three speed levels: low, medium, and high.

When the first pushbutton is pressed again, the motor stops, showing how the system uses button inputs to control actions. The fan also remembers the last selected speed, so when it is started again, it resumes at the speed that was previously set.

In the Play Section, you will see that this rotation has been animated to mimic that of an electric fan.