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

adafruit-feather-huzzah-with-esp8266-wifi-01_600x600.jpgadafruit-feather-huzzah-with-esp8266-wifi-03_600x600.jpg
Adafruit Adafruit Feather HUZZAH with ESP8266 WiFi
Sale price7,13 €
In stock, 13 units
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
adafruit-huzzah-esp8266-breakout-02_1_600x600.jpgadafruit-huzzah-esp8266-breakout-04_1_600x600.jpg
Adafruit Adafruit HUZZAH ESP8266 Breakout
Sale price4,38 €
In stock, 10 units
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
20190715104344_14735.png20190715104354_95270.png
AI-Thinker AI-Thinker ESP-32S Wifi Bluetooth Combo Module
Sale price3,00 €
In stock, 5 units
esp-07s_600x600.png
AI-Thinker AI-Thinker ESP8266 SMT Module - ESP-07S
Sale price2,00 €
In stock, 30 units
sparkfun-esp8266-thing_600x600.jpgsparkfun-esp8266-thing-02_600x600.jpg
Sparkfun SparkFun ESP8266 Thing
Sale price6,41 €
Only 3 units left
Olimex_ESP32-POE-ea_Development_Board.jpg
Olimex Olimex ESP32-POE-EA-IND
Sale price16,50 €
In stock, 35 units
sparkfun-esp8266-thing-dev-board-01_600x600.jpgsparkfun-esp8266-thing-dev-board-04_600x600.jpg
Sparkfun SparkFun ESP8266 Thing - Dev Board
Sale price6,41 €
Only 2 units left
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
Olimex_ESP32-GATEWAY-1-ind_1.jpg
Olimex Olimex ESP32-GATEWAY-IND
Sale price14,30 €
Only 1 unit left