Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

Image of NB IoT 2 ClickDesign 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!
Image of Arduino Nano Bluetooth-Controlled Relay for LED Bulb Activation: 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.

Open Project in Cirkit Designer
Image of Arduino Nano and BNO055 Sensor with Bluetooth Connectivity: 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.

Open Project in Cirkit Designer

Common Applications

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

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

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