Wireless Module Guides: GSM, XBee, Bluetooth, RFID and WiFi

Photo of author

By Jackson Taylor

Home » Examples » Open Cv » Wireless Module Guides: GSM, XBee, Bluetooth, RFID and WiFi

As an Amazon Associate we earn from qualifying purchases.

Wireless modules let a small electronics project send data, receive commands or identify objects without a cable. This page is an index of the wireless module topics we cover: GSM, XBee, Bluetooth, RFID and WiFi. Below you will find what each one does, how you usually talk to it, and where to start.

Wireless module topics at a glance

Most of these modules work the same way from the microcontroller’s point of view. You connect them over a serial (UART) port, power them at the right voltage, and send text commands or raw data. Once you understand that pattern, switching between modules becomes much easier.

GSM modules and AT commands

A GSM module uses a SIM card and the mobile network. It can send and receive SMS messages, make voice calls and, on some models, connect to mobile data. That makes it a good fit for projects that must work where there is no WiFi, such as remote alerts and monitoring.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

GSM modules are controlled with AT commands, which are short text instructions sent over serial. A few of the most common ones are:

  • AT: checks that the modem responds. A working modem replies with OK.
  • AT+CPIN?: shows whether the SIM card is ready.
  • AT+CSQ: reports signal quality.
  • AT+CMGF=1: sets SMS to text mode.
  • AT+CMGS: sends an SMS to a given number.
  • ATD: dials a number.

Our guide to GSM AT commands shows how to check that a modem is working. If you want to see GSM used in a full design, look at this GSM based voting system simulation or a power theft detection project.

XBee S1 basic commands

XBee modules are small radio modules that create a simple wireless link between devices. The XBee S1 (Series 1) is based on the 802.15.4 standard and is often used for point-to-point links or small networks, such as replacing a serial cable between two boards.

See also
7 level inverter

You configure an XBee by entering command mode. Send +++ over serial and wait for an OK reply, without pressing Enter. Then you can use AT commands. Some of the basic ones are:

  • ATID: sets or reads the network (PAN) ID. Modules that need to talk to each other must share it.
  • ATMY: sets or reads the module’s own 16-bit address.
  • ATDH and ATDL: set the destination address.
  • ATWR: saves the settings to the module’s memory.
  • ATCN: exits command mode.

XBee modules run on 3.3 V, so check your board’s logic levels before wiring them to a 5 V microcontroller. Use a regulator or level shifting where needed.

Bluetooth modules

Bluetooth modules suit short-range links, such as controlling a robot from a phone or sending sensor readings to an app. Popular hobby modules like the HC-05 and HC-06 act as a wireless serial port. The HC-05 can act as master or slave, while the HC-06 is normally slave only.

Many of these modules also accept AT commands to change the device name, PIN or baud rate. The AT mode is usually entered in a special way, such as holding a button or a pin high while powering up, and the baud rate in that mode can differ from normal operation. Check the datasheet for your exact module. The RX pin of most Bluetooth modules also expects 3.3 V, so a simple voltage divider on the line from a 5 V board is a good habit.

RFID reader extension

RFID systems identify tags or cards by reading a unique ID when the tag comes close to a reader. They are common in attendance systems, access control and simple payment or tracking projects. Readers differ in frequency and interface, so match the tags to the reader. Low-frequency 125 kHz readers and 13.56 MHz readers use different tags.

Our RFID reader extension page covers how to extend a reader setup. For an example of RFID combined with other modules, see this smart ration card system, which uses RFID with GSM.

See also
BLINKING - 8051

WiFi modules

WiFi modules connect a project to your home network and the internet. They are the natural choice for dashboards, cloud logging and remote control over a local network. Low-cost modules based on the ESP8266 and ESP32 chips are widely used in hobby projects. The ESP32 also includes Bluetooth. Both run on 3.3 V, and power supply stability matters because WiFi transmission can cause short current spikes.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

If you are choosing hardware, read our list of the best WiFi modules for Arduino. If you use a Pico board, see whether the Raspberry Pi Pico has WiFi built in.

How to choose the right wireless module

  • Range: Bluetooth and RFID are short range, XBee and WiFi cover rooms to buildings, and GSM works wherever there is mobile coverage.
  • Infrastructure: WiFi needs a router, GSM needs a SIM and network coverage, while XBee and Bluetooth can connect directly.
  • Power use: battery projects should check each module’s current draw in the datasheet.
  • Voltage: many modules are 3.3 V only, so plan for level shifting and a stable supply.
  • Data needs: short alerts suit SMS, small sensor data suits XBee or Bluetooth, and larger or continuous data suits WiFi.

Frequently asked questions

What are AT commands?

AT commands are short text instructions, usually starting with “AT”, that you send over a serial connection to configure a module or make it do something, like send an SMS or change a network ID.

Which wireless module is best for beginners?

Bluetooth serial modules and WiFi modules like the ESP8266 are common starting points because they are inexpensive and well documented. The best choice still depends on range and whether you need a network connection.

Why does my module not respond to commands?

The usual causes are a wrong baud rate, TX and RX wires not crossed, a weak power supply, or a missing line ending that the module expects. Check these before suspecting the module itself.

See also
REAL TIME CLOCK (RTC) USING SMD IC BQ32000 AND MSP430 LAUCHPAD (MSP430G2553)

Can I connect a 3.3 V module to a 5 V Arduino?

Often yes, but not directly. Power the module from its correct supply and use a voltage divider or level shifter on the signal line going into the module.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works