Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Open WiFi Scanner using Esp8266

By Prabakaran P.M

SUMMARY:

This project is to create an open wifi Scanner which will indicate visually by an LED, when there is an open WiFi (i.e) a WiFi without Password or WiFi without authentication. Here an LED is connected to the GPIO pins of ESP8266-01 and it is used for the indication of Open Wifi availability. LED will be blinking while searching for an open WiFi, LED will be ON continuously when an open WiFi is Found. This is done by NodeMCU Firmware and Lua Scripting.

DESCRIPTION:

Prerequisites & Equipment:

  1. ESP8266 with Flashed NodeMCU.(Flashing ESP8266 With NodeMCU)

  2. EsPlorer for tutorial refer this link.

  3. Open WiFi Scanner Coding

After Finished With Flashing of NodeMCU. You can connect the ESP8266 to USB-UART converter in normal mode by the following connection.

The connection details are as below:

WIFI Module

USB-TTL

Vcc

3.3v

Gnd

Gnd

TX

RX

RX

TX

CH_PD

Connected to 3.3v to enable chip firmware boot

Don’t forget to pull up CH_PD HIGH, you won’t get a response from the module if it is not done.
Since two pins need to be connected to 3.3v it’s easiest to either use a breadboard with some connector cables. Connect LED to it, cathode (longer pin) to GPIO2 pin of the ESP8266 and anode (shorter pin) to the GND pin.

Fig. 1: Prototype of ESP8266 based Open WiFi Scanner

The above connection will set the ESP-01 in normal operating mode.

Now open ESPlorer, Copy the coding and Create a file named as init.lua.

The File name should be exactly the same since every time NodeMCU boots up it will execute init.lua.

Open the file by clicking open icon in the ESPlorer window.

Fig. 2: Screenshot of ESPlorer Window

Open init.lua and click on the open button in the ESP8266 portion. After the port is opened upload the code by clicking upload button at the bottom of Host portion.

After uploading, press “Run” button now the program will start executing. Each and every time ESP8266 is powered on, this program will start automatically. If you want to stop it you can format using Format Button in ESP8266 Side.

Program Description:

_DELAY_LIST = 30000

_DELAY_BLINK = 250

_TIMER_BLINK = 0

_TIMER_LIST = 1

_PIN_LED = 4

These are the variables declared for the program.

wifi.setmode(wifi.STATION)

This line will make ESP8266 in client mode.

gpio.mode(_PIN_LED, gpio.OUTPUT)

gpio.write(_PIN_LED, gpio.LOW)

ledState = false

These lines will make GPIO2 as OUTPUT and LOW at first.

function blinker()

if (ledState==false) then

ledState = true

gpio.write(_PIN_LED, gpio.HIGH)

else

ledState = false

gpio.write(_PIN_LED, gpio.LOW)

end

end

tmr.alarm( _TIMER_BLINK, _DELAY_BLINK, 1, blinker )

The above function is used for the Blinking LED when there is no Open WiFi.

function listap(t)

This function is for searching the Open WiFi.

The APs are listed as +CWLAP: ecn,ssid,rssi,mac

The Parameter are

ecn: It is a number denoting the security of the Access point

0 – OPEN

1- WEP

2 – WPA_PSK

3 – WPA2_PSK

4 – WPA_WPA2_PSK

isFree = string.sub(v,0,1)

if (isFree==”0″) then

foundFree = true

end

The above Function will search for “0” in the “ecn” Field and stop the LED blink and make it HIGH which will denote the availability of open WiFi.

Here is the video


Filed Under: Featured Contributions

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • PS2 Keyboard To Store Text In SD Card Using Arduino Circuit Setup On Breadboard
    How To Use PS2 Keyboard To Store Text In SD Card Using Arduino- (Part 42/49)
  • Wireless Path Tracking System Using Mouse, XBee And Arduino Circuit Setup On Breadboard
    How To Make A Wireless Path Tracking System Using Mouse, XBee And Arduino- (Part 43/49)
  • How to Make a Wireless Keyboard Using Xbee with Arduino- (Part 44/49)
  • Making Phone Call From GSM Module Using Arduino Circuit Setup On Breadboard
    How to Make Phonecall From GSM Module Using Arduino- (Part 45/49)
  • How to Make a Call using Keyboard, GSM Module and Arduino
    How To Make A Call Using Keyboard, GSM Module And Arduino- (Part 46/49)
  • Receiving SMS Using GSM Module With Arduino Prototype
    How to Receive SMS Using GSM Module with Arduino- (Part 47/49)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • Renesas delivers intelligent sensor solutions for IoT applications
  • Microchip Technology releases AVR-IoT Cellular Mini Development Board
  • Qualcomm acquires Cellwize to accelerate 5G adoption and spur infrastructure innovation
  • MediaTek’s chipset offers high-performance option for 5G smartphones
  • Nexperia’s new level translators support legacy and future mobile SIM cards

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Tuning the antenna to be conjugately matched to input impedance of the die
  • about ATmega328 ADC pins
  • Netlist physical name update
  • nt1065_USB3 gnss receiver
  • LLC HB with synchronous rectifiers can be very dodgy?

RSS Electro-Tech-Online.com Discussions

  • PC/laptop working and processing so much harder when data is low quality
  • undefined reference header file in proteus
  • Capacitor to eliminate speaker hum
  • Decapped Chip On Board
  • Sony KV-A2913E (chassis AE1C) auto shuts off after one minute
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering