Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use NB IoT 2 Click: Examples, Pinouts, and Specs

Image of NB IoT 2 Click
Cirkit Designer LogoDesign with NB IoT 2 Click in Cirkit Designer

Introduction

The NB IoT 2 Click (Manufacturer Part ID: MIKROE-4562) is a compact development board designed by MIKROE for Internet of Things (IoT) applications. It features a cellular module that supports Narrowband IoT (NB-IoT) technology, enabling low-power, wide-area connectivity for IoT devices. This makes it ideal for applications requiring reliable, long-range communication with minimal power consumption.

Explore Projects Built with NB IoT 2 Click

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP8266 and HC-05 Bluetooth-Based Home Automation System with 4-Channel Relay Control
Image of home automation using arduino: A project utilizing NB IoT 2 Click in a practical application
This circuit is a Bluetooth-based home automation system that uses an ESP8266 NodeMCU to control a 4-channel relay module. The relays can be toggled via Bluetooth commands received from an HC-05 Bluetooth module or by pressing connected pushbuttons. The system also includes pilot lamps to indicate the status of each relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Bluetooth-Controlled Relay for LED Bulb Activation
Image of SRAD MC Model: A project utilizing NB IoT 2 Click in a practical application
This circuit features an Arduino Nano microcontroller interfaced with an HC-05 Bluetooth module for wireless communication. The Arduino controls a single-channel 12V relay, which in turn switches an LED bulb on and off. The relay is powered by a 12V 200Ah battery, which also supplies power to the bulb, and the Arduino is programmed to manage the relay activation based on Bluetooth commands received from the HC-05 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano and BNO055 Sensor with Bluetooth Connectivity
Image of Clutch Pedal Gyro: A project utilizing NB IoT 2 Click in a practical application
This circuit features an Arduino Nano interfaced with a BNO055 sensor and an HC-05 Bluetooth module. The Arduino communicates with the BNO055 via I2C (using A4 for SDA and A5 for SCL) and with the HC-05 via serial communication (using D0/RX and D1/TX for data transfer). The HC-05's Key and State pins are connected to D2 and D3 of the Arduino for module control, and all components share a common ground with the Arduino powered at 5V and the BNO055 at 3.3V from the Arduino's 3V3 output.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP8266 NodeMCU with LoRa and RS-485 Communication and Ethernet Connectivity
Image of Wiring Diagram LoRa: A project utilizing NB IoT 2 Click in a practical application
This circuit serves as a multi-protocol communication hub featuring two ESP8266 NodeMCUs for processing, each connected to a LoRa Ra-02 SX1278 for long-range wireless communication. One NodeMCU is also connected to an RS-485 module for serial communication and a W5500 Ethernet module for network connectivity, with MB102 modules supplying power.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with NB IoT 2 Click

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of home automation using arduino: A project utilizing NB IoT 2 Click in a practical application
ESP8266 and HC-05 Bluetooth-Based Home Automation System with 4-Channel Relay Control
This circuit is a Bluetooth-based home automation system that uses an ESP8266 NodeMCU to control a 4-channel relay module. The relays can be toggled via Bluetooth commands received from an HC-05 Bluetooth module or by pressing connected pushbuttons. The system also includes pilot lamps to indicate the status of each relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SRAD MC Model: A project utilizing NB IoT 2 Click in a practical application
Arduino Nano Bluetooth-Controlled Relay for LED Bulb Activation
This circuit features an Arduino Nano microcontroller interfaced with an HC-05 Bluetooth module for wireless communication. The Arduino controls a single-channel 12V relay, which in turn switches an LED bulb on and off. The relay is powered by a 12V 200Ah battery, which also supplies power to the bulb, and the Arduino is programmed to manage the relay activation based on Bluetooth commands received from the HC-05 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Clutch Pedal Gyro: A project utilizing NB IoT 2 Click in a practical application
Arduino Nano and BNO055 Sensor with Bluetooth Connectivity
This circuit features an Arduino Nano interfaced with a BNO055 sensor and an HC-05 Bluetooth module. The Arduino communicates with the BNO055 via I2C (using A4 for SDA and A5 for SCL) and with the HC-05 via serial communication (using D0/RX and D1/TX for data transfer). The HC-05's Key and State pins are connected to D2 and D3 of the Arduino for module control, and all components share a common ground with the Arduino powered at 5V and the BNO055 at 3.3V from the Arduino's 3V3 output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Wiring Diagram LoRa: A project utilizing NB IoT 2 Click in a practical application
ESP8266 NodeMCU with LoRa and RS-485 Communication and Ethernet Connectivity
This circuit serves as a multi-protocol communication hub featuring two ESP8266 NodeMCUs for processing, each connected to a LoRa Ra-02 SX1278 for long-range wireless communication. One NodeMCU is also connected to an RS-485 module for serial communication and a W5500 Ethernet module for network connectivity, with MB102 modules supplying power.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Smart metering (e.g., water, gas, electricity)
  • Asset tracking and fleet management
  • Environmental monitoring (e.g., air quality sensors)
  • Smart agriculture (e.g., soil moisture sensors)
  • Industrial IoT (e.g., predictive maintenance)

Technical Specifications

Key Technical Details

Parameter Value
Cellular Module Quectel BG95
Communication Protocols NB-IoT, LTE Cat M1, EGPRS
Operating Voltage 3.3V
Power Consumption Ultra-low power in idle mode (<1mA)
Interface UART
Antenna Connector U.FL
Dimensions 42.9mm x 25.4mm
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

The NB IoT 2 Click uses the mikroBUS™ standard pinout. Below is the pin configuration:

Pin No. Pin Name Description
1 AN Not connected
2 RST Reset pin for the module
3 CS Not connected
4 SCK Not connected
5 MISO Not connected
6 MOSI Not connected
7 PWM Not connected
8 INT Interrupt pin
9 TX UART Transmit
10 RX UART Receive
11 SCL Not connected
12 SDA Not connected
13 3.3V Power supply (3.3V)
14 GND Ground

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the NB IoT 2 Click to a 3.3V power source via the mikroBUS™ socket.
  2. UART Communication: Use the TX and RX pins to establish UART communication with a microcontroller or development board (e.g., Arduino UNO, Raspberry Pi, or STM32).
  3. Antenna Connection: Attach an external antenna to the U.FL connector for optimal signal reception.
  4. SIM Card: Insert a compatible NB-IoT SIM card into the onboard SIM card slot.
  5. Initialization: Configure the module using AT commands via UART to establish a connection with the cellular network.

Important Considerations and Best Practices

  • Ensure the power supply is stable and within the specified range (3.3V).
  • Use a high-quality antenna to maximize signal strength and reliability.
  • Place the board in an area with good cellular coverage for optimal performance.
  • Avoid exposing the board to extreme temperatures or humidity.
  • Use proper UART settings (e.g., baud rate) as specified in the Quectel BG95 datasheet.

Example Code for Arduino UNO

Below is an example of how to initialize the NB IoT 2 Click with an Arduino UNO:

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial nbIoTSerial(2, 3); // RX = Pin 2, TX = Pin 3

void setup() {
  // Initialize serial communication with the NB IoT 2 Click
  Serial.begin(9600); // Serial monitor for debugging
  nbIoTSerial.begin(9600); // UART communication with the module

  Serial.println("Initializing NB IoT 2 Click...");

  // Send AT command to check communication
  nbIoTSerial.println("AT");
  delay(1000);

  // Read response from the module
  while (nbIoTSerial.available()) {
    String response = nbIoTSerial.readString();
    Serial.println("Response: " + response);
  }
}

void loop() {
  // Example: Send data to the module
  nbIoTSerial.println("AT+CSQ"); // Check signal quality
  delay(2000);

  // Read and print the response
  while (nbIoTSerial.available()) {
    String response = nbIoTSerial.readString();
    Serial.println("Response: " + response);
  }
}

Note: Replace AT+CSQ with other AT commands as needed for your application. Refer to the Quectel BG95 AT Command Manual for a complete list of supported commands.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Response from the Module

    • Cause: Incorrect UART connection or baud rate.
    • Solution: Verify the TX and RX connections and ensure the baud rate matches the module's default settings (9600 bps).
  2. Poor Signal Quality

    • Cause: Weak cellular coverage or poor antenna placement.
    • Solution: Use a high-quality antenna and place the board in an area with better signal reception.
  3. Module Not Connecting to Network

    • Cause: Incorrect SIM card or network settings.
    • Solution: Ensure the SIM card supports NB-IoT and is activated. Check the APN settings using the AT+CGDCONT command.
  4. High Power Consumption

    • Cause: Module not entering low-power mode.
    • Solution: Use the AT+QSCLK command to enable sleep mode when the module is idle.

FAQs

  • Q: Can I use the NB IoT 2 Click with 5V microcontrollers?
    A: No, the NB IoT 2 Click operates at 3.3V. Use a level shifter if interfacing with a 5V microcontroller.

  • Q: What is the maximum data rate supported?
    A: The maximum data rate depends on the network and mode (NB-IoT, LTE Cat M1, or EGPRS). Refer to the Quectel BG95 datasheet for detailed specifications.

  • Q: How do I update the firmware of the module?
    A: Firmware updates can be performed via the UART interface. Refer to the Quectel BG95 firmware update guide for detailed instructions.

  • Q: Can I use this board for GPS applications?
    A: No, the NB IoT 2 Click does not include GPS functionality. For GPS-enabled applications, consider using a module with integrated GNSS support.

This concludes the documentation for the NB IoT 2 Click. For further assistance, refer to the official MIKROE documentation or contact their support team.