TinkerExplorerv1.0.0

Light Dimming

This project introduces light dimming using a potentiometer, allowing you to control the brightness of an LED by adjusting resistance.

2026-04-133 min read
PWMInputs & Outputs#UNDA.Xplora

Introduction

Did you know that the right kind of light can actually help you study better?

It’s true! Good lighting helps your brain take in information more easily, while bad lighting can slow you down and even cause eye strain, headaches, or trouble focusing.

Too dim, and your eyes work extra hard just to read.

Too bright, and the glare can make it tough to concentrate.

That’s why choosing just the right brightness is very important whether you're reading, relaxing, or getting ready for bed.

In this project, you’ll learn how to build your very own light dimmer that lets you control the brightness with a twist of a knob. Just like turning the volume up or down... but this time, it’s for light!

Let’s build a light dimmer and find the right light for your study zone!

Light Dimming Circuit on Xplora 3D Simulator

Build the Project

Let’s now move on to building the Light Dimming Project on the UNDA.Xplora breadboard, where you will set up the circuit and learn how to control the brightness of an LED using a potentiometer.

Components Used

#NameComponentQtyDescription
1LED
LED
1

White Colored LED.

2Resistor
Resistor
1

220 Ohm Resistor

3Jumper Wire
Jumper Wire
2

Male-Male Jumper Wires

4Breadboarding Wires
Breadboarding Wires
6

Choose breadboarding wires that fit easily between connection points

5Battery Connector
Battery Connector
1

9V Battery Connector

6Battery
Battery
1

UNDA 9V Rechargeable Battery

7UNDA:Xplora
UNDA:Xplora
1

Xplora Electronics Kit

Step 1

Wiring the White LED on the breadboard.

Wiring Connections6 connections
FromWire / PartToNote
Positive PinLEDBreadboard Pin b6Connects Positive Pin of buzzer on the breadboard
Negative PinLEDBreadboard Pin b4Connects Negative Pin of buzzer on the breadboard
Breadboard Pin e6Resistor 220 OhmBreadboard Pin g6Current-limiting resistor
Xplora Pin B6
white
Breadboard Pin i6Signal Jumper Wire
Xplora GND Pin
red
Top Negative RailConnect GND to the Top Negative Breadboard
Top Negative Rail
black
Breadboard Pin e4Connect GND to the LED
Product image
1
2
3
4
5
1
White LED Connection

Insert the LED with the positive (+) leg in pin b6 and the negative (–) leg in pin b4 of the breadboard.

2
Resistor Connection

Insert the 220-ohm resistor with one leg in pin d6 and the other leg in pin f6 of the breadboard."

3
Signal Wire Connection

Connect a jumper wire from breadboard pin i6 to digital pin B6 on your kit.

4
Ground Connection

Connect a breadboarding jumper wire from any GND Pin of the kit to the top negative breadboard rail.

5
LED Ground Connection

Connect a jumper wire from top negative rail to breadboard e4 to connect the LED to GND.

Step 2

Placing the Potentiometer on the breadboard

Wiring Connections3 connections
FromWire / PartToNote
Potentiometer Pin 1PotentiometerBreadboard Pin b20Connects potentiometer pin 1 on the breadboard
Potentiometer Pin 2PotentiometerBreadboard Pin b22Pin 2 is the potentiometer's signal pin
Potentiometer Pin 3PotentiometerBreadboard Pin b24Connects potentiometer pin 3 on the breadboard
Potentiometer Placement

The three pins on the potentiometer are evenly spaced. Once Pin 1 is in b20, Pin 2 and Pin 3 will easily insert into b22 and b24.

Product image
1
1
Potentiometer Connection

Place the potentiometer into the breadboard with Pin 1 in b20, Pin 2 in b22 (signal pin), and Pin 3 in b24.

Step 3

Connecting the potentiometer to 3.3v and Ground

Wiring Connections4 connections
FromWire / PartToNote
Xplora 3.3V Pin
red
Top Positive Breadboard RailProvides 3.3V to the top positive breadboard rail
Top Positive Breadboard Rail
red
Breadboard Pin e24Supplies 3.3V to potentiometer Pin 3
Top Negative Breadboard Rail
black
Breadboard Pin i20Provides GND to the potentiometer circuit
Breadboard Pin g20
black
Breadboard Pin e20Connects GND to potentiometer Pin 1
Product image
1
2
3
4
1
3.3V Power Connection

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

2
Potentiometer Power Connection

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

3
Potentiometer Ground Connection

Connect a breadboarding jumper wire from the top negative breadboard rail to breadboard pin i20.

4
Potentiometer Ground Bridge

Connect a jumper wire from g20 to e20 to connect Pin 1 of the potentiometer to GND.

GND and 3.3V Pin Swap

The potentiometer will still work if the 3.3V and GND connections are swapped. However, the direction of rotation will be reversed, so turning the knob clockwise will decrease the reading instead of increasing it (and vice versa).

Step 4

Connecting the Potentiometer to an ADC-capable Pin.

Wiring Connections1 connection
FromWire / PartToNote
Xplora ADC Pin A7
green
Breadboard Pin e22Signal Jumper Wire
Product image
1
1
Signal Wire Connection

Connect a jumper wire from to breadboard pin e22 to Xplora ADC Pin A7.

Run the Project

Power your UNDA.Xplora and upload the Light Dimming Project. Once fully loaded, open the Play Section and turn the knob of the potentiometer while simultaneously observing change in Play section as well as the LED Brightness.

Uploading Xplora Projects

You can always refer to Xplora Menu - Projects to learn how to load the project on your UNDA.Xplora.

Why we use an ADC Pin?

The ADC pin reads the changing voltage from the potentiometer, allowing the kit to measure the position of the knob and use it to control things like LED brightness, buzzer volume, or motor speed.

Observation

At each position of the potentiometer, a different analog voltage level is produced. This voltage is sent to the Xplora ADC Pin A7.

The ADC (Analog-to-Digital Converter) reads this changing voltage and converts it into a corresponding digital value.

This digital value is then used to control the brightness of the LED:

  • Higher ADC value → brighter LED
  • Lower ADC value → dimmer LED

As you rotate the potentiometer, the ADC continuously updates this value in real time, which is why both the LED brightness and the room lighting in the Play Section change smoothly.

Xplora 3D Breadboarding Simulator

Explore the virtual version of this project in the Xplora 3D app:
Light Dimming