Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsThe ESP32's radio can scan for Wi-Fi networks in a couple of seconds. This sketch lists the strongest networks on a small OLED, with the signal strength in dBm, the channel and whether it is open or secured. Walk around the house with it on a power bank to see where your own network is strong or weak, or to pick the least crowded channel for your router. It only listens for names and strengths; it does not connect to or break into any network.
Use it only to see which networks are nearby and to improve your own network.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB power bank, so you can walk around with it.
wifi_scanner.inoVerify & upload in Electrolark#include <WiFi.h>
#include <Wire.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void setup() {
Wire.begin(21, 22);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
oled.setTextColor(WHITE);
WiFi.mode(WIFI_STA);
WiFi.disconnect();
}
void loop() {
oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0); oled.print("Scanning...");
oled.display();
int n = WiFi.scanNetworks(); // results come back sorted by signal strength
oled.clearDisplay();
oled.setCursor(0, 0); oled.printf("%d networks", n);
for (int i = 0; i < n && i < 4; i++) {
oled.setCursor(0, 14 + i * 12);
String name = WiFi.SSID(i);
if (name.length() > 10) name = name.substring(0, 10);
oled.printf("%s %d c%d%s", name.c_str(), WiFi.RSSI(i), WiFi.channel(i), WiFi.encryptionType(i) == WIFI_AUTH_OPEN ? "!" : "");
}
oled.display();
delay(4000);
}
The ESP32 scans 2.4 GHz only. Check the antenna end of the board is not covered by metal.
The OLED is small, so names are shortened to ten characters.
Signal strength changes, so the order does too.
No. The ESP32 has a 2.4 GHz radio only.
The network is open with no password.
Listing network names and strengths that are broadcast to everyone is normal and legal; do not try to access networks you do not own.
4 parts: ESP32-WROOM-32 38-Pin Development Board, 0.96" OLED Display 128x64, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 45 minutes. The build on this page has 6 steps.
No. This page has the complete, tested code (wifi_scanner.ino).
About ₹595 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Scanning Wi-Fi networks with WiFi.scanNetworks; Understanding dBm signal strength; Choosing a clear Wi-Fi channel.
Use it only to see which networks are nearby and to improve your own network.
Ideas that reuse this build: ESP32 OLED internet clock. They are listed under Take it further on this page.
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Press to roll: the pips tumble and slow down before landing on a number.
Wait for the light, hit the button: how many milliseconds can you beat?
A bright 4-digit clock that keeps time through power cuts.
Learning project. Check every circuit and the datasheet of each part before you power it up.