MKR WiFi 1010 signal strength meter
Build it step by step
0 of 7 doneWire the display
VCC and GND, SDA to pin 11, SCL to pin 12.
Install the libraries
WiFiNINA, Adafruit SSD1306 and Adafruit GFX.
Edit the sketch
Put your Wi-Fi name and password in the placeholders.
Upload it
The display says Joining Wi-Fi, then shows a dBm number.
Walk around with a power bank
The bar rises near the router.
Go behind a wall
The signal falls.
Note the best spots
And the weak ones.
How do you build an MKR WiFi 1010 signal strength meter?
An Arduino MKR WiFi 1010 measures the Wi-Fi signal strength of your own network and draws it as a bar on an OLED, to find the best spot for a router or a sensor. You need Arduino MKR WiFi 1010, SSD1306 OLED Display and Breadboard 830 Tie Points. It takes 7 steps and about 120 minutes.
- Level
- Beginner
- Time
- About 120 min
- Parts
- 3
Parts list
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| OLED VCC | MKR VCC pin | Power at 3.3 V |
| OLED GND | MKR GND pin | Common ground |
| OLED SDA | MKR pin 11 (SDA) | I2C data |
| OLED SCL | MKR pin 12 (SCL) | I2C clock |
Code
Wi-Fi signal strength is reported as RSSI, a negative number of decibels relative to a milliwatt, where closer to zero is stronger. Around minus 40 to minus 50 is excellent, minus 60 is good for streaming, minus 70 is the edge of reliable use and minus 80 is unreliable. The MKR WiFi 1010 has a separate Wi-Fi chip, called the NINA module, and the WiFiNINA library talks to it. Once the board has joined your own network, one call returns the current signal strength. The program draws it as a number and a bar and keeps the best value seen, so you can walk around the house with the board on a power bank and see which spots are good and which are weak. This is useful for placing a router, an extender or a Wi-Fi sensor. The board only joins 2.4 GHz networks. The name and password in the sketch are placeholders; use your own and never share the sketch with the real ones in it.
Runs on a virtual Arduino MKR WiFi 1010 in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
#include <SPI.h>
#include <WiFiNINA.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
const char WIFI_NAME[] = "YOUR_WIFI_NAME"; // placeholders: use your own network
const char WIFI_PASSWORD[] = "YOUR_WIFI_PASSWORD";
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
long best = -120;
const char* quality(long rssi) {
if (rssi > -50) return "Excellent";
if (rssi > -60) return "Good";
if (rssi > -70) return "Fair";
if (rssi > -80) return "Weak";
return "Very weak";
}
void setup() {
Wire.begin(); // pins 11 and 12 on the MKR
if (!oled.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { while (true) {} }
oled.clearDisplay();
oled.setTextColor(SSD1306_WHITE);
oled.setCursor(0, 0);
oled.print("Joining Wi-Fi...");
oled.display();
while (WiFi.begin(WIFI_NAME, WIFI_PASSWORD) != WL_CONNECTED) {
delay(3000);
}
}
void loop() {
long rssi = WiFi.RSSI(); // signal strength in dBm, closer to 0 is stronger
if (rssi > best) best = rssi;
int bar = constrain(map(rssi, -90, -30, 0, 120), 0, 120);
oled.clearDisplay();
oled.setTextSize(1);
oled.setCursor(0, 0);
oled.print(WIFI_NAME);
oled.setTextSize(2);
oled.setCursor(0, 14);
oled.print(rssi); oled.print(" dBm");
oled.drawRect(0, 38, 124, 10, SSD1306_WHITE);
oled.fillRect(2, 40, bar, 6, SSD1306_WHITE);
oled.setTextSize(1);
oled.setCursor(0, 54);
oled.print(quality(rssi)); oled.print(" best "); oled.print(best);
oled.display();
delay(500);
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Next to the router | Strong, better than minus 50 |
| In the next room | Fair or good |
| Behind a thick wall | Weaker by 10 or 20 dBm |
| Far end of the house | Weak |
| Best value | Keeps the highest seen |
If it does not work
Stays on Joining Wi-Fi
Check the name and password, and that the network is 2.4 GHz.
Display blank
Check the I2C wires on pins 11 and 12 and the address 0x3C.
Does not compile
Install the WiFiNINA library and the SAMD board package.
Number jumps around
This is normal, watch the trend, not each value.
Firmware warning
Update the Wi-Fi firmware with the Arduino IDE's updater tool if asked.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the MKR WiFi 1010 signal strength meter?
Arduino MKR WiFi 1010, SSD1306 OLED Display and Breadboard 830 Tie Points.
How long does the MKR WiFi 1010 signal strength meter take to build?
About 120 minutes for a beginner maker, in 7 steps.
How do I know the MKR WiFi 1010 signal strength meter works?
Next to the router: Strong, better than minus 50. In the next room: Fair or good. Behind a thick wall: Weaker by 10 or 20 dBm.
Stays on Joining Wi-Fi: what should I check?
Check the name and password, and that the network is 2.4 GHz.
Display blank: what should I check?
Check the I2C wires on pins 11 and 12 and the address 0x3C.
Does not compile: what should I check?
Install the WiFiNINA library and the SAMD board package.
Number jumps around: what should I check?
This is normal, watch the trend, not each value.
