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:

Passend dazu

Passend zu diesem Artikel

View all
nodemcu_1_1_600x600.jpgnodemcu_4_1_600x600.jpg
AI-Thinker AI-Thinker NodeMCU v2 - Lua based ESP8266
Sale price2,50 €
In stock, 19 units
adafruit-huzzah-esp8266-breakout-02_1_600x600.jpgadafruit-huzzah-esp8266-breakout-04_1_600x600.jpg
Adafruit Adafruit HUZZAH ESP8266 Breakout
Sale price9,87 €
In stock
esp-01s_2_600x600.jpgesp-01s_1_600x600.jpg
AI-Thinker AI-Thinker WiFi Module - ESP8266 ESP-01S
Sale price2,00 €
Only 3 units left
SIM8200EA-1.JPGSIM8200EA-2.JPG
Waveshare Waveshare SIM8200EA-M2 5G HAT for Raspberry Pi, 5G/4G/3G
Sale price319,00 €
Not in stock, available for backorder
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 price10,45 €
Only 3 units left
adafruit-atwinc1500-wifi-breakout_600x600.jpgadafruit-atwinc1500-wifi-breakout-01_600x600.jpg
Adafruit Adafruit ATWINC1500 WiFi Breakout
Sale price24,75 €
Not in stock, available for backorder
sparkfun-esp8266-thing-dev-board-01_600x600.jpgsparkfun-esp8266-thing-dev-board-04_600x600.jpg
Sparkfun SparkFun ESP8266 Thing - Dev Board
Sale price10,47 €
Only 2 units left
sparkfun-wifi-shield-esp8266-01_600x600.jpgsparkfun-wifi-shield-esp8266-02_600x600.jpg
Sparkfun SparkFun ESP8266 WiFi Shield
Sale price18,88 €
Not in stock, available for backorder