---
title: "NORVI AGENT 1-BT02-LTE – USER GUIDE"
description: "## Programming  The NORVI AGENT 1-BT02-LTE has a mini USB port for serial connection with the SoC for programming. Any ESP32-supported programming IDE can be used to program the controller. Follow this Guide to programming NORVI ESP32-based controllers with the…"
url: "https://norvi.io/docs/norvi-agent-1-bt02-lte-user-guide/"
updated: "2026-04-06"
category: "OTHER PRODUCTS / NORVI AGENT1 4G LTE / NORVI AGENT 1-BT02-LTE"
---

# NORVI AGENT 1-BT02-LTE – USER GUIDE

## Programming 

The NORVI AGENT 1-BT02-LTE has a mini USB port for serial connection with the SoC for programming. Any ESP32-supported programming IDE can be used to program the controller. Follow this Guide to programming NORVI ESP32-based controllers with the Arduino IDE.

**SoC:** ESP32-WROVER-B           
**Programming Port:** USB UART

## Digital Inputs 

#### Wiring Digital Inputs

The digital inputs of NORVI AGENT 1-BT02-LTE can be configured as both sink and source connections. The inverse of the Digital Input polarity should be supplied to the common terminal.

![](https://norvi.io/wp-content/uploads/2024/09/7-2-1.jpg)
NORVI AGENT 1-BT02-LTE Digital Input Wiring

### Programming Digital Inputs 

Reading the relevant GPIO of the ESP32 gives the value of the Digital Input. When the inputs are in the OFF state, the GPIO goes HIGH, and when the input is in the ON state, the GPIO goes LOW. Refer to the GPIO allocation table in the datasheet for the digital input GPIO.

```cpp

                #define INPUT1 18

void setup() {
   Serial.begin(115200);
   Serial.println("Device Starting");
   pinMode(INPUT1, INPUT);
}

void loop() {
   Serial.print(digitalRead(INPUT1));
   Serial.println("");
   delay(500);
}
```

## 4 - 20 mA Analog Input

#### Wiring Analog Inputs 

![](https://norvi.io/wp-content/uploads/2024/09/13-1.jpg)
NORVI AGENT 1-BT02-LTE Analog Input Wiring

![](https://norvi.io/wp-content/uploads/2024/09/4-20-wiring-1-1024x526.jpg)

#### Reading Analog Input

Reading the relevant I2C address of the ADC gives the value of the Analog Input.

![](https://norvi.io/wp-content/uploads/2024/09/4-20-READING-1.jpg)

### Programming Analog Inputs 

```cpp

                #include <Adafruit_ADS1X15.h>
#include <Wire.h>
Adafruit_ADS1115 ads1;

void setup() {
   Serial.begin(115200);
   Serial.println("Device Starting");
   Wire.begin(21,22);
   ads1.begin(0x48);
   ads1.setGain(GAIN_ONE);
}

void loop() {
  Serial.print("Analog 0 ");
  Serial.println(ads1.readADC_SingleEnded(0));
  delay(10);
  Serial.print("Analog 1 ");
  Serial.println(ads1.readADC_SingleEnded(1));
  delay(10);
  Serial.print("Analog 2 ");
  Serial.println(ads1.readADC_SingleEnded(2));
  delay(10);
  Serial.println("");
  delay(500);
}
```

## Transistor Output

### Wiring Transistor Outputs

![](https://norvi.io/wp-content/uploads/2024/09/12-1-2.jpg)
NORVI AGENT 1-BT02-LTE Transistor Output Wiring

### Programming Transistor Outputs 

Reading the relevant GPIO of the ESP32 gives the value of the Transistor Output. Refer to the GPIO allocation table in the datasheet for the Transistor Output GPIO.

```cpp

                #define OUTPUT1 23
void setup() {
  Serial.begin(115200);
  Serial.println("Device Starting");
  pinMode(OUTPUT1 , OUTPUT);
}
void loop() {
  digitalWrite(OUTPUT1, HIGH);
  delay(500);
  digitalWrite(OUTPUT1, LOW);
  delay(500);
  Serial.println("");
  delay(500);
}
```

### Built-in Buttons

| Button 1 Pin |   Digital Input GPIO35 |
| --- | --- |

GPIO Connection of buttons

#### Programming Buttons

```cpp

                #include <Adafruit_NeoPixel.h>
#define BUTTON_PIN   35    //Digital IO pin connected to the button. This will be
#define PIXEL_PIN    25    // Digital IO pin connected to the NeoPixels.
#define PIXEL_COUNT 1

Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800);
bool oldState = HIGH;
int showType = 0;

void setup() {
  Serial.begin(115200);
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  Serial.println("RS-485 TEST");
}

void loop() {
  bool newState = digitalRead(BUTTON_PIN);
  if (newState == LOW && oldState == HIGH) {
    delay(20);
    newState = digitalRead(BUTTON_PIN);
    if (newState == LOW) {
      showType++;
      if (showType > 9)
        showType = 0;
      startShow(showType);
    }
  }
  oldState = newState;
}

void startShow(int i) {
  switch (i) {
    case 0: colorWipe(strip.Color(0, 0, 0), 50);   break;
    case 1: colorWipe(strip.Color(255, 0, 0), 50); break;
    case 2: colorWipe(strip.Color(0, 255, 0), 50); break;
    case 3: colorWipe(strip.Color(0, 0, 255), 50); break;
    case 4: theaterChase(strip.Color(127, 127, 127), 50); break;
    case 5: theaterChase(strip.Color(127, 0, 0), 50); break;
    case 6: theaterChase(strip.Color(0, 0, 127), 50); break;
    case 7: rainbow(20); break;
    case 8: rainbowCycle(20); break;
    case 9: theaterChaseRainbow(50); break;
  }
}
```

### LTE Communication

| Model of LTE Modem | SIM7000 |
| --- | --- |
| FCC ID | 2AJYU-SIM7000 |
| TAC | 86615402 |
| RXD | GPIO4 |
| TXD | GPIO2 |
| RESET | GPIO5 |
| POWER | GPIO19 |

GPIO Connections of LTE1 Communication

| Model of LTE Modem | SIM7500 |
| --- | --- |
| FCC ID | 2AQ9M-SIM7500 |
| TAC | 86147503 |
| RXD | GPIO4 |
| TXD | GPIO2 |
| RESET | GPIO5 |
| POWER | GPIO19 |

GPIO Connections of LTE2 Communication

### Programming LTE Communication

```cpp

                #define GSM_RX 4
#define GSM_TX 2
#define GSM_RESET 5
unsigned long int timer1 = 0;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello");
  Serial2.begin(115200, SERIAL_8N1, GSM_RX, GSM_TX);
  pinMode(GSM_RESET, OUTPUT);
  digitalWrite(GSM_RESET, HIGH);   // RS-485
  timer1 = millis();
  Serial2.println("AT");
    while (Serial2.available()) {
    int inByte = Serial2.read();
    Serial.write(inByte);
    }
  }
  timer1 = millis();
  Serial2.println("AT+CPIN?");
  while(millis()<timer1+10000){
    while (Serial2.available()) {
    int inByte = Serial2.read();
    Serial.write(inByte);
    }
  }
  timer1 = millis();
  Serial2.println("AT+CFUN?");
  while(millis()<timer1+10000){
while (Serial2.available()) {
    int inByte = Serial2.read();
    Serial.write(inByte);
    }
  }
Serial.println("AT TIMEOUT");
}
```

### USB and Reset

![](https://norvi.io/wp-content/uploads/2024/09/4-5-1.jpg)
USB, BOOT and Reset
