Arduino Tutorial: WiFi

WiFi is one of the most common communication protocols. Whether in your own home, classrooms, cafes or airports, everywhere we meet WLAN. And its use is also very popular in the Arduino environment!

WiFi essentially uses an infrastructure network, which additionally supports ad-hoc networks in infrastructure mode.

The infrastructure mode of wireless communication provides a bridge to other networks, access control and forwarding. Network management functions reside in the access point (router) and clients can easily remain (on the network).

WiFi is also a star-based network. Communication is from wireless nodes (devices) to a wireless access point (router or network controller).

The standard currently in use is 802.11ac (released in 2013), although the 802.11n version (released in 2009) still prevails. The 802.11ac offers speeds of up to 800 Mbps, while 802.11n offers up to 150 Mbps.

You may also have seen devices with older standards such as 802.11a / b / g. However, since WLAN is backward compatible, old devices will continue to work with devices that have new standards.

The range of your device's WLAN depends on a few factors:

  • What WiFi standard is the device running? The latest standards offer more range than older versions.
  • Obstacles like walls also play a crucial role in determining the range. Therefore, the range of the WLAN network in open spaces is more than in closed spaces with walls and other obstructing objects.

Advantages of WiFi:

  • WiFi has a relatively good range and can penetrate walls and other obstacles.
  • Adding and removing devices on a WLAN network is relatively easy.

Disadvantages of WiFi:

  • The network's radio waves can interfere with other devices.
  • The security of WLAN is weaker than wired applications.

WLAN is ideal for your Arduino project if you want to establish a fast connection between WiFi-compatible devices and the Internet. WiFi is designed to keep power consumption to a minimum, so you can run your project on a suitable battery. WiFi should be used if you don't really care about exactly how and when your device connects and communicates with your server.

Arduino and WiFi: Shield or standalone module?

To be able to use WiFi functionality in the Arduino environment, there are different approaches. Either you use a WiFi shield for one of the Arduino microcontrollers or you use a standalone module which can be programmed with the Arduino IDE.

Meanwhile, there are enough inexpensive Wifi modules that you can use around Arduino, so you don't necessarily need to purchase a shield for your microcontroller.

For example, the ESP8266 is a low-cost Wi-Fi module whose inputs and outputs you can control with an Arduino.

You can find an overview of different ESP8266 modules here:

Matching products

Ai-WB2-01M_1.pngAi-WB2-01M_2.png
AI-Thinker AI-Thinker Ai-WB2-01M WiFi & Bluetooth Module (800-Reel)
Sale price1.232,61 €
Not in stock, available for backorder

Matching this article

View all
esp-01s_2_600x600.jpgesp-01s_1_600x600.jpg
AI-Thinker AI-Thinker WiFi Module - ESP8266 ESP-01S
Sale price2,00 €
Only 2 units left
Save 2,50 €
Waveshare_esp32-s3-dev-kit-n8r8-1_Development_Board_1.jpgWaveshare_esp32-s3-dev-kit-n8r8-1_Development_Board_2.jpg
Waveshare Waveshare ESP32-S3 Microcontroller, 2.4GHz Wi-Fi Dev Board
Sale price6,13 € Regular price8,63 €
In stock, 18 units
esp-07s_600x600.png
AI-Thinker AI-Thinker ESP8266 SMT Module - ESP-07S
Sale price2,00 €
In stock, 24 units
BW16_1.jpgBW16_2.jpg
AI-Thinker AI-Thinker BW16 Dual-Frequency Wi-Fi Bluetooth SoC Module
Sale price5,25 €
Not in stock, available for backorder
ESP8266-ESP-12F_600x600.png
AI-Thinker AI-Thinker ESP8266 SMT Modul - ESP-12F Full Reel (800 pcs/reel)
Sale price1.418,11 €
Not in stock, available for backorder
mod-wifi-esp8266-dev-1_600x600.jpgmod-wifi-esp8266-dev-2_600x600.jpg
Olimex Olimex MOD-WIFI-ESP8266-DEV UEXT Expansion Module
Sale price2,80 €
In stock, 4 units
Save 4,55 €
Waveshare_esp32-s3-pico_Development_Board_1.jpgWaveshare_esp32-s3-pico_Development_Board_2.jpg
Waveshare Waveshare ESP32-S3 Microcontroller, 2.4 GHz Wi-Fi Dev Board
Sale price5,59 € Regular price10,14 €
In stock, 38 units
Olimex_ESP32-S2-DevKitLipo-USB-a_Development_Board.jpg
Olimex Olimex ESP32-S2-DevKit-Lipo-USB-EA
Sale price7,50 €
In stock, 4 units
Olimex_ESP32-PRO_Evaluation_Board_1.jpgOlimex_ESP32-PRO_Evaluation_Board_2.jpg
Olimex Olimex ESP32-PRO-C
Sale price15,00 €
Only 1 unit left