Wifi quality tester

Wifi quality tester © GPL3+

Use your MKR wifi1010 and an lcd screen to monitor your WiFi signal Strength. It even work with and exernal power supply (exernal battery)

  • 3,295 views
  • 3 comments
  • 8 respects

Components and supplies

Apps and online services

About this project

I've always had bad WiFi strength in my room so I wanted to monitor my wifi strength.

I buy a mkr1010 use the arduino wifi code and modify it to have my lcd screen showin my SSID(Name of wifi), my IP and the RSSI(signal strength in dbm).

Code

ConnectWithWPA_SCREEN_STATE.inoArduino
If you want to use a 16x2 lcd just change the addresse line 6 to 0x27,16,2).Dont forget to create a secret arduino files and add it by clicking the little below the magnifying glasses and click new tab and select your secret arduino
#include <SPI.h>
#include <WiFiNINA.h>
#include "arduino_secrets.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd (0x27, 20, 4);//change the addresse line 6 to 0x27,16,2) if you have a 16x2 screen

///////please enter your sensitive data in the Secret tab/arduino_secrets.h
char ssid[] = SECRET_SSID;        // your network SSID (name)
char pass[] = SECRET_PASS;    // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0;            // your network key Index number (needed only for WEP)

int status = WL_IDLE_STATUS;
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
//IPAddress server(74,125,232,128);  // numeric IP for Google (no DNS)
char server[] = "www.google.com";    // name address for Google (using DNS)

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
WiFiClient client;

void setup() {
  lcd.init();
  lcd.backlight();
  lcd.setCursor (0, 0);

  //Initialize serial and wait for port to open:

 

  // check for the WiFi module:
  if (WiFi.status() == WL_NO_MODULE) {
    
    // don't continue
    while (true);
  }

  String fv = WiFi.firmwareVersion();
  if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
    
  }
  // attempt to connect to Wifi network:
  while (status != WL_CONNECTED) {

    lcd.setCursor(0, 0);
    lcd.print("Connecting to:");
    lcd.print(ssid);

    // Connect to WPA/WPA2 network. Change this line if using open or WEP network:
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(1000);
    lcd.clear();
  }
  // if you get a connection, report back via serial:
  if (client.connect(server, 80)) {

    lcd.print("connected to server");
    delay(3000);
    lcd.clear();
  }
  delay(2000);
}
void loop() {
  // if there are incoming bytes available
  // from the server, read them and print them:
  while (client.available()) {
    char c = client.read();
    Serial.write(c);
  }

  lcd.setCursor(0, 0);
  lcd.print("SSID: ");
  lcd.print(WiFi.SSID());

  // print your board's IP address:
  IPAddress ip = WiFi.localIP();

  lcd.setCursor(0, 1);
  lcd.print("IP : ");
  lcd.print(WiFi.localIP());

  // print the received signal strength:
  long rssi = WiFi.RSSI();

  lcd.setCursor(0, 2);
  lcd.print("(RSSI):");
  lcd.print(rssi);
  lcd.print(" dBm");
  // if the server's disconnected, stop the client:
  if (!client.connected()) {
lcd.clear();
    lcd.print("disconnecting from server.");
  }
}
SECRET.ARDUINO.inoArduino
Dont forget to create a secret arduino files and add it by clicking the little below the magnifying glasses and click new tab and select your secret arduino
#define SECRET_SSID "your WiFi name"
#define SECRET_PASS "your wifi password"

Comments

Author

Default
adameliemorin
  • 1 project
  • 0 followers

Additional contributors

  • Base of the wifi code by Arduino

Published on

August 18, 2020

Members who respect this project

DefaultDefaultAoh14ggjr0 ylljczt6muxu8ywzgp4banfpombjb5lb7ng=s96 cDefaultDefault

and 3 others

See similar projects
you might like

Similar projects you might like

Arduino-ESP WiFi Integration

Project in progress by Turai Botond

  • 18,675 views
  • 11 comments
  • 61 respects

Cable Tester RJ45 (Ethernet)

Project tutorial by Andreaberri

  • 15,075 views
  • 2 comments
  • 22 respects

Wifi Debugging for WifiNINA Arduino Boards

Project tutorial by arduinocc

  • 2,150 views
  • 2 comments
  • 1 respect

Arduino speed detector

Project tutorial by yashastronomy

  • 13,464 views
  • 10 comments
  • 13 respects

WiFi Strength Measurer

Project tutorial by aerodynamics

  • 2,971 views
  • 1 comment
  • 8 respects

Smart Door Lock Using WiFi Login Page by Arduino & ESP8266

Project tutorial by ElectroPeak

  • 30,562 views
  • 12 comments
  • 57 respects
Add projectSign up / Login