Arduino R4 WiFi Network Scanner - No External Components Required!

  Рет қаралды 2,347

learnelectronics

learnelectronics

Күн бұрын

Пікірлер: 16
@learnelectronics
@learnelectronics 8 ай бұрын
/* Arduino Uno R4 Wifi Network Scanner by learnelectronics 12 FEB 2024 based on code writtern & modified by: created 13 July 2010 by dlf (Metodo2 srl) modified 21 Junn 2012 by Tom Igoe and Jaymes Dec */ #include "ArduinoGraphics.h" #include "Arduino_LED_Matrix.h" #include ArduinoLEDMatrix matrix; void setup() { //Initialize serial and wait for port to open: Serial.begin(9600); matrix.begin(); matrix.beginDraw(); matrix.stroke(0xFFFFFFFF); // add some static text // will only show "UNO" (not enough space on the display) const char text[] = "*|*"; matrix.textFont(Font_4x6); matrix.beginText(0, 1, 0xFFFFFF); matrix.println(text); matrix.endText(); matrix.endDraw(); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } // check for the WiFi module: if (WiFi.status() == WL_NO_MODULE) { Serial.println("Communication with WiFi module failed!"); // don't continue while (true); } String fv = WiFi.firmwareVersion(); if (fv < WIFI_FIRMWARE_LATEST_VERSION) { Serial.println("Please upgrade the firmware"); } } void loop() { byte mac[6]; // scan for existing networks: Serial.println("Scanning available networks..."); listNetworks(); WiFi.macAddress(mac); Serial.println(); Serial.print("Your MAC Address is: "); printMacAddress(mac); delay(10000); } void listNetworks() { // scan for nearby networks: Serial.println("** Scan Networks **"); int numSsid = WiFi.scanNetworks(); if (numSsid == -1) { Serial.println("Couldn't get a WiFi connection"); while (true); } // print the list of networks seen: Serial.print("number of available networks:"); Serial.println(numSsid); // print the network number and name for each network found: for (int thisNet = 0; thisNet < numSsid; thisNet++) { Serial.print(thisNet); Serial.print(") "); Serial.print(WiFi.SSID(thisNet)); Serial.print(" Signal: "); Serial.print(WiFi.RSSI(thisNet)); Serial.print(" dBm"); Serial.print(" Encryption: "); printEncryptionType(WiFi.encryptionType(thisNet)); } // Make it scroll! char text[] = "xxxxxxxxxxxx"; String gazinda = String(WiFi.SSID(0)); gazinda.toCharArray(text, 13); matrix.beginDraw(); matrix.stroke(0xFFFFFFFF); matrix.textScrollSpeed(50); // add the text matrix.textFont(Font_5x7); matrix.beginText(0, 1, 0xFFFFFF); matrix.println(text); matrix.endText(SCROLL_LEFT); matrix.endDraw(); } void printEncryptionType(int thisType) { // read the encryption type and print out the name: switch (thisType) { case ENC_TYPE_WEP: Serial.println("WEP"); break; case ENC_TYPE_WPA: Serial.println("WPA"); break; case ENC_TYPE_WPA2: Serial.println("WPA2"); break; case ENC_TYPE_WPA3: Serial.print("WPA3"); break; case ENC_TYPE_NONE: Serial.println("None"); break; case ENC_TYPE_AUTO: Serial.println("Auto"); break; case ENC_TYPE_UNKNOWN: default: Serial.println("Unknown"); break; } } void printMacAddress(byte mac[]) { for (int i = 5; i >= 0; i--) { if (mac[i] < 16) { Serial.print("0"); } Serial.print(mac[i], HEX); if (i > 0) { Serial.print(":"); } } Serial.println(); }
@kalidabdul6862
@kalidabdul6862 8 ай бұрын
Hello For the hanging c , just put some spaces before and after the string.
@mschwage
@mschwage 8 ай бұрын
Step 1: hit the like button. Step 2: enjoy the video. Thanks!!!! Another awesome video.
@learnelectronics
@learnelectronics 8 ай бұрын
Thank you, you just made my day!
@shagreobe
@shagreobe 8 ай бұрын
Can't wait to get an r4
@warrenking1815
@warrenking1815 8 ай бұрын
Neat, a scanner for wifi
@EdSym1
@EdSym1 8 ай бұрын
AAs mentioned earlier add some white space. "String gazinda = String(WiFi.SSID(0)) + " ";"
@diptimanbora2512
@diptimanbora2512 8 ай бұрын
I should’ve waited for R4 to come out..
@PatricksDIY
@PatricksDIY 5 ай бұрын
I mean I wouldn't call that "hacking" every phone scans wi-fi and provides the name and the signal.
@Keeping_IT_Simple
@Keeping_IT_Simple 8 ай бұрын
Being lazy as I am , is there a link to your code , so I don't have to type in the code please?
@learnelectronics
@learnelectronics 8 ай бұрын
Yes, I'm sorry. I'll pin it to a post here
@Keeping_IT_Simple
@Keeping_IT_Simple 8 ай бұрын
@@learnelectronics absolutely no need for apologies. Thankyou for this code & excellent video
@blazingtrailsrc396
@blazingtrailsrc396 8 ай бұрын
i want one that displays the login info of the networks lmao
@bblod4896
@bblod4896 8 ай бұрын
Honey trap? ☮️ brother.
@learnelectronics
@learnelectronics 8 ай бұрын
A honey trap is a router that is connected to nothing.
@TheTrueVoiceOfReason
@TheTrueVoiceOfReason 8 ай бұрын
What, you didnt call The Matrix "Neo"? 😂🤣🤣😂
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 20 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 11 МЛН
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 48 МЛН
Arduino R4 hidden easter egg!
6:43
Trevor Makes
Рет қаралды 71 М.
Arduino Uno R4 WiFi LESSON 6: Create a Binary Counter With Arduino
22:29
Downloading Images From US Military Satellites
26:51
saveitforparts
Рет қаралды 956 М.
Using the Arduino Uno R4 WiFi Built In LED Matrix.
1:11:28
Paul McWhorter
Рет қаралды 10 М.
Flipper Zero Must Have Modules
14:53
sn0ren
Рет қаралды 53 М.
Getting Started with Meshtastic - Devices
15:01
The Comms Channel
Рет қаралды 222 М.
Viewer Request: Three Different Ways To Make A Motion Detector
10:53
learnelectronics
Рет қаралды 2 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 20 МЛН