How Does Distance Affect Wireless Signal Strength?
Abstract
Are you ever annoyed by a poor Wi-Fi signal? What about when you try to send a text message, and it just won't go through because of poor cell service? Have you ever wondered what factors affect the strength of your signal and the speed of the connection? If so, this project is for you!
Summary
None
micro:bit boards required, see Materials section for details
No issues
Objective
Determine how distance affects the strength of a wireless signal.
Introduction
Many of us use wireless devices, like cell phones, tablets, and laptops, every day. These devices send information through the air using invisible electromagnetic waves. There are different types of electromagnetic waves. Some of them, like visible light, are visible to the human eye. Others, like radio waves, are invisible to humans. They pass right through our bodies without us even noticing! Radio waves are used by wireless devices to communicate. The fact that they can pass through solid objects (sort of like how visible light can pass through glass) explains why you can still get a cell phone signal inside your house or get a Wi-Fi signal when your Wi-Fi router is in another room.
You can think of electromagnetic waves like ripples in a pond (Figure 1) that spread out from the source and form bigger and bigger circles as they move farther away. Something else in the pond (like a bug floating on the surface) could feel the waves as they go by. Electromagnetic waves act like this, except they form three-dimensional spheres in the air instead of two-dimensional circles on the surface of a pond.
When two wireless devices communicate, the device that sends a signal is called the transmitter. The device that receives the signal is called the receiver. Regular car radios are just receivers. They receive a signal from a radio tower (the transmitter), but they do not send a signal back. Most modern wireless devices act as both transmitters and receivers. Your cell phone can receive data, text, and calls from a cell tower, but it can also send information back.
Many different things can affect the signal strength between two devices. You have probably experienced a weak Wi-Fi or cellular connection before. Maybe you were trying to watch a video, and the video froze or appeared very grainy. Maybe you were trying to send a text message, and your phone said "sending..." for what felt like forever, or maybe you tried to make a phone call, and the other person's voice sounded garbled and full of static. All of these are signs of a weak wireless signal.
In this project, you will use little programmable boards called micro:bits to investigate how the distance between a transmitter and a receiver affects the strength of a wireless signal. There are many other variables you can explore listed in the Variations section.
Terms and Concepts
- Wireless
- Electromagnetic wave
- Visible light
- Radio wave
- Source
- Transmitter
- Receiver
- Signal strength
Questions
- How do you think the distance between a wireless transmitter and a receiver will affect the signal strength between them?
- Hint: sound also travels as a wave. How does the loudness or strength of a sound change as you get farther away or closer to the source?
- What other factors do you think affect the signal strength between a transmitter and a receiver?
Bibliography
- Micro:bit Educational Foundation (n.d.). Getting Started. Retrieved May 14th, 2025
- Ducksters (n.d.). Types of Electromagnetic Waves. Retrieved May 14th, 2025
Materials and Equipment
- Computer with USB port
- micro:bit boards (2). You can purchase two micro:bit Go bundles, or purchase one bundle (which contains the USB cable you will need to upload code and battery pack to use your micro:bit as a mobile transmitter) and a separate standalone board
- Tape measure or meter stick
Experimental Procedure
Program Your Micro:bits
- If this is your first time using a micro:bit, follow the Getting Started instructions on the micro:bit website to learn how to use a micro:bit and how to connect it to your computer.
- Decide what programming language you will use:
- If you are new to coding, we recommend using Microsoft MakeCode to program your micro:bits. MakeCode is a graphical programming language that lets you make computer programs using colored blocks of code instead of a text editor. The example code in this procedure uses MakeCode. We recommend following a few of the MakeCode tutorials before starting your project.
- You can also program your micro:bits in Python, JavaScript, or Scratch. You may prefer this approach if you already have programming experience in one of these languages. See the Let's Code page for more details.
- Start a new MakeCode program. Call it "Transmitter." This program will make one of your micro:bit boards send a radio signal when you press one of the buttons.
- Drag out blocks to build the program shown in Figure 2.
- Inside the
on start
block:- Put a
radio set group 1
block. You will set both micro:bits to the same radio group to make sure they can communicate with each other. - Put a
radio set transmit power 7
block. This sets your micro:bit's radio to maximum power (you can set the power level between 0-7).
- Put a
- Add an
on button A pressed
block. Add the following blocks inside it:play tone middle C for 1 beat until done
: This plays a short musical note to confirm when you have pressed the button.radio send number 0
: This makes the micro:bit broadcast the number "0" as a radio signal.show icon (check mark)
: This makes the LED grid on the micro:bit show a check mark to confirm that the message has been sent.pause (ms) 1000
: This makes the check mark stay on the screen for 1 second. One millisecond (ms) is 1,000 seconds. You can change the number if this feels like too long (or too short).clear screen
: This turns all the LEDs off again. Without thepause (ms) 1000
block, if you cleared the screen, the check mark would flash too quickly for you to see and then disappear.
- Inside the
- Download this program to one of your micro:bit boards.
- Unplug the board from your computer and plug in the battery pack.
- Press button A to confirm that the program works.
- Start a new MakeCode program and call it "Receiver." This program will make your other micro:bit board display the strength of the received signal when it receives a message from the transmitter.
- Drag out the blocks to build the program shown in Figure 3.
- Inside the
on start
block, add aradio set group 1
block. This makes sure your receiver is part of the same radio "group" as the transmitter. - Add an on
radio received receivedNumber
block. The code in this block will happen when the micro:bit receives a number from another micro:bit. Inside the block, add:play tone low C for 1 beat until done
: This makes your micro:bit play a sound to confirm that it has received a signal. (You can pick a different tone if you want.)show number received packet signal strength
: This will make the micro:bit display the signal strength of the received message on the LED grid. Since the micro:bit only has a 5x5 grid of LEDs, it cannot display the entire number at once. The number will scroll across the screen.
- Inside the
- Signal strength is measured in units called decibel milliwatts, abbreviated dBm. These units can be a little confusing for a couple of reasons:
- First, they are negative. A number that is farther away from zero (more negative) means a weaker signal. A strength of -50 dBm is typically considered very good—you would be able to stream HD videos, do video calls, or play games with no trouble. A strength of -90 dBm is a very weak signal—you might not even be able to make phone calls or send text messages.
- Second, because the units follow a logarithmic scale. Every increase of 10 dBm means that the signal strength increases by a factor of 10. For example, a signal strength of -60 dBm is ten times stronger than a signal strength of -70 dBm. You do not have to worry about this too much for this science project. Just remember that a "bigger" negative number (a number that is farther away from zero or has a larger absolute value) means a weaker signal.
Conduct Your Experiment
- Set up your micro:bit boards so that the receiver is at one end of a tape measure or meter stick (Figure 4). Since you will not need to move it, you can leave your receiver plugged into the USB cable for power, but you can also use a battery pack.
- Make a data table like Table 1.
Signal strength (dBm) | ||||
---|---|---|---|---|
Distance (cm) | Trial 1 | Trial 2 | Trial 3 | Average |
0 | ||||
10 | ||||
20 | ||||
30 | ||||
... |
- Decide what orientation you will keep your micro:bit boards in for the experiment. It is important to keep this constant for all of your trials. For example, you could have the two micro:bit boards facing each other (so the LED grids are facing toward each other), or facing away from each other (so the back of one board is facing the front of the other board), but you should be consistent.
- Place your transmitter board as close as possible to the receiver board. (It is OK if the boards are touching.)
- Press button A on your transmitter board. Listen for the beeps to confirm that the message has been sent and received.
- Watch the LED grid on your receiver board. Record the signal strength in your data table.
- Repeat steps 5-6 two more times, for a total of three trials at this distance.
- Move your transmitter board 10 cm farther away and conduct three more trials, repeating steps 5-6 three times at the new distance.
- Keep moving your transmitter board farther away, conducting three more trials at each distance, until the signal strength stops changing or the receiver board stops receiving the signal completely.
- Analyze your data.
- Calculate an average signal strength for each distance. To do this, add up the three signal strength readings and divide by three.
- Make a graph with distance on the horizontal axis and average signal strength on the vertical axis. Remember to label your axes and include units.
- How does signal strength change with distance? Does this match your prediction?
- How can you relate your results to everyday experience using wireless devices? Have you ever noticed how the strength of your signal (or resulting speed of your connection) changes depending on how close you are to a Wi-Fi router or cell tower?
Ask an Expert
Variations
- Try using the
radio set transmit power
block to set your transmitter micro:bit to a different power (you can select a power level from 0 to 7). What happens if you change the power level and repeat the experiment, keeping the distances the same as in your initial experiment, to produce a second line on your graph? Can you repeat this for each available power level? - Does the relative orientation between the two micro:bit boards matter? Repeat the experiment multiple times. Keep your receiver board in the same orientation but change the orientation of your transmitter board each time.
- Do obstacles or materials placed between the two micro:bits affect the signal strength? Does the size of the obstacle/object matter? What if you place the two micro:bits on opposite sides of a wall or go outside and test natural obstacles like trees and hills?
- Use the
radio set frequency band
block to set your micro:bits to something other than the default frequency (make sure you set each board to the same frequency). You will need to do some research about radio frequencies, and you can read more about the set frequency band block here. Do your results change if you repeat the experiment at a different frequency? - Can you make a simple two-way "messaging" app that lets two micro:bits send basic messages to each other? For example, pressing button A on one micro:bit could make a smiley face appear on the other micro:bit. Based on the results of your experiment, what is the maximum range at which you expect the two micro:bits will be able to communicate?
Careers
If you like this project, you might enjoy exploring these related careers:
Related Links
- Science Fair Project Guide
- Other Ideas Like This
- Computer Science Project Ideas
- My Favorites
- What Materials Can Block a Wi-Fi Signal?
- Focusing Signals for a Better Wireless Network