
Heltec T114 Library for Proteus: LoRa and BLE Simulation

Hello friends, I hope you all are doing great. Today, I am going to share the Heltec T114 Library for Proteus, so you can run a LoRa and Bluetooth LE simulation of Heltec's Mesh Node T114. The T114 is a slim 50.8 x 22.9 mm board with an nRF52840 for Bluetooth, a Semtech SX1262 for long-range LoRa radio and a 1.14" colour display - a favourite for off-grid mesh messengers. Our part has its real size, both 13-pin headers and a working display, and it runs your Arduino sketch in Proteus 8.5.
Heltec T114 Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Helping Tools
- Laptop WiFi Monitor: a laptop on the Wi-Fi of your design: a browser, a TCP / UDP terminal and ping
- Mobile WiFi Monitor: a smartphone that opens the pages of your board and sends it commands
- Serial Monitor Advance: a serial terminal window for the UART of your board
For the demo we built a LoRa messenger with two T114s: a node in the field sends temperatures and an SOS, and a base station shows them on its display and hands them to a phone - with no wire, no Wi-Fi and no phone network in between.
NOTICE: Proteus has no nRF52840 or SX1262 model, so our team has put a lot of effort into building this board ourselves: the display, the LoRa radio, the pins, the LED, the button and Bluetooth LE to the phone are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Heltec T114 Library for Proteus:
What is the Heltec Mesh Node T114?
The Mesh Node T114 is Heltec's low-power LoRa node built around Nordic's nRF52840 (an Arm Cortex-M4F with Bluetooth LE) and Semtech's SX1262 LoRa transceiver. It is very popular with the Meshtastic and MeshCore communities because it sleeps at about 11 microamps, takes a Li-Po battery and a solar panel, and still has room for a 1.14" TFT and a GPS module. Two 13-pin headers bring out the free GPIOs.
| Part | The real board | In the library |
|---|---|---|
| Processor | nRF52840, Bluetooth LE 5 | your Arduino sketch, ArduinoBLE |
| Radio | SX1262, up to 21 dBm, LoRa 470 to 928 MHz | LoRa between TEP boards (LoRaWan_APP.h) |
| Display | 1.14" 240 x 135 TFT (ST7789) | Adafruit_ST7789, on the part |
| Headers | two rows of 13 at 2.54 mm | the same pins and GPIO numbers |
| LED and buttons | green LED, USER and RST | the LED lit when LOW, USER clickable |
| Power | USB-C, Li-Po and solar sockets | drawn |
| Size | 50.80 x 22.86 mm | drawn at real size |
LoRa in a Few Words
LoRa (long range) spreads a slow signal over a wide band with a chirp modulation. That makes it very robust: a small battery node can reach a few kilometres in towns and much more across open land, at the price of a low data rate. The spreading factor sets the trade-off - SF7 is fast and short-range, SF12 slow and far. The demo uses 868.3 MHz, SF7, 125 kHz and coding rate 4/5.
Heltec's Way of Using the Radio
Heltec's Arduino examples start the radio with Mcu.begin(HELTEC_BOARD, SLOW_CLK_TPYE) and then use Semtech's radio API: Radio.Init, SetTxConfig, Send, Rx and callbacks in a RadioEvents_t. Our add-on has the same LoRaWan_APP.h calls, so the sketches look like Heltec's own.
Features of the Heltec T114 Library for Proteus
- The T114 at real size: the black board, the 1.14" display, USB-C, USER and RST, the green LED, the RGB LEDs, the nRF52840 + SX1262 module, the Bluetooth antenna, the LoRa IPEX socket and both headers, with our small TEP signature.
- LoRa: point-to-point packets between all TEP LoRa boards in a design, with RSSI and SNR from the LORADIST property.
- A real display: Adafruit_ST7789 and Adafruit_GFX draw on the part while the simulation runs.
- Bluetooth LE: ArduinoBLE with services, characteristics, descriptors and notifications; our Mobile WiFi Monitor is the phone.
- A complete package: about 4.1 MB with the part, the add-on, the thermistor, the resistor, the phone and the demo, without the source code of the models.
The T114 in Proteus Simulation
Search T114 in Pick Devices; the device HELTEC T114 is in TEPT114.LIB (Microprocessor ICs, LoRa Boards), with the prefix U. The USB-C opens the serial monitor.
The Pins
| Pins | What the library does with them |
|---|---|
| P2: 8, 7, 44, 46, 5, 47, 45, 31, 29, 30, 28 | GPIO, PWM, interrupt; 5 and 28 to 31 also analogRead (A3 to A7) |
| P1: 13, 16, 33, 9, 10 | 16 / 13 = Wire SDA / SCL, 9 / 10 = Serial1 RX / TX, 33 GPIO |
| 3V3, 5V, GND | the supplies |
| RST, SWDIO, SWCLK, SWO | drawn, not modelled |
| on the board | green LED 35 (lit when LOW), USER 42, the display, the SX1262 |
Download Heltec T114 Library for Proteus
Click the button below to download Heltec-T114-Library-for-Proteus-v1.0.zip (about 4.1 MB, without the source code of the models):
Heltec Mesh Node T114 Library for Proteus V1.0- README.txt: installation, the demo, the pins, the properties, troubleshooting and the limits.
- Proteus Library Files:
TEPT114.LIB, the thermistor and the resistor (TEPNTC.LIB,TEPRESISTOR.LIB) and the phone and laptop. - Proteus Model Files:
TEPNET.DLL,TEPNTC.DLLandTEPRESISTOR.DLL. - Arduino Code: both demo sketches and the TEP Boards for Proteus add-on 1.96.0, with LoRaWan_APP, SX126x-Arduino and ArduinoBLE.
- Proteus Simulation: the demo project, its two HEX files and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install Heltec T114 Library for Proteus
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the DLLs from Proteus Model Files into the MODELS folder, replacing an older
TEPNET.DLL. - Delete
TEPT114.IDXfrom the LIBRARY folder if it is there. - For your own sketches, copy Arduino Code\TEP Boards for Proteus\hardware into your Arduino sketchbook (Documents\Arduino), install Adafruit ST7735 and ST7789, Adafruit GFX and Adafruit BusIO from the Library Manager and restart the Arduino IDE; the board is Heltec Mesh Node T114 (TEP Proteus).
- Start Proteus, press P and search for T114.
Demo: a LoRa Messenger in Simulation
Hikers, farmers and rescue teams often work where there is no phone signal. Two LoRa boards can still swap short messages over kilometres - exactly what Meshtastic does with boards like the T114. Our demo is a small version: a node reports the temperature and can call for help, and a base shows everything on its screen and on a phone.
Open Heltec-T114-LoRa-Messenger.pdsprj. U1, node 1, runs T114_LoRa_Sensor.hex: R1 (10k) from +3.3V and RT1, a 10k bead from our NTC Thermistor Library for Proteus, make a divider on pin 5. U2, the base, runs T114_LoRa_Base.hex. There is no wire between the boards - only LoRa, at a LORADIST of 2 km. MOB1 is the phone.
| What | Meaning |
|---|---|
| every 5 s | node 1 sends "N1 22.1C #1" and the next numbers |
| USER on node 1 | an SOS: "N1 SOS" |
| the base's display | the last message, RSSI and SNR, the seconds since it |
| the base's bar | NODE 1 OK in green, SOS FROM NODE 1 in red |
| USER on the base | clears the SOS |
| the green LEDs | a flash per packet sent or heard |
Measuring the Temperature
Node 1 turns the voltage on pin 5 into the thermistor's resistance and then into degrees with the B-value equation:
float readTemperature() { // the divider: 3.3 V - 10k - pin 5 - NTC - GND
const int raw = constrain(analogRead(NTC_PIN), 1, 1022);
const float r = R_FIXED * raw / (1023.0 - raw);
return 1.0 / (1.0 / 298.15 + log(r / R25) / BETA) - 273.15;
}
Sending a Packet
send() marks the radio busy, flashes the green LED and hands the text to the SX1262; the TxDone callback frees it again:
void send(const char *text) {
busy = true;
digitalWrite(LED_BUILTIN, LOW); flashAt = millis(); // the green LED: a flash per packet
Radio.Send((uint8_t *)text, strlen(text));
Serial.print(F(">> LoRa: ")); Serial.println(text);
}
Reports and the SOS
The loop sends a report every 5 s - and an SOS first whenever USER was pressed, as soon as the radio is free:
void loop() {
readKey();
if (flashAt && millis() - flashAt >= FLASH_MS) { flashAt = 0; digitalWrite(LED_BUILTIN, HIGH); }
if (busy) return;
if (sosPending) {
sosPending = false; sent++;
send("N1 SOS");
show("SOS SENT", ST77XX_RED);
} else if (millis() >= nextSend) {
nextSend = millis() + SEND_MS;
tempC = readTemperature();
char text[24], t[8];
dtostrf(tempC, 1, 1, t);
sent++;
snprintf(text, sizeof text, "N1 %sC #%u", t, sent);
send(text);
show("REPORT SENT", ST77XX_GREEN);
}
}
The Base Starts Its Radio
The base uses Heltec's calls: Mcu.begin, the callbacks, the same LoRa settings as the node and continuous receive:
Mcu.begin(HELTEC_BOARD, SLOW_CLK_TPYE);
RadioEvents.RxDone = OnRxDone;
RadioEvents.RxTimeout = OnRxTimeout;
RadioEvents.RxError = OnRxError;
Radio.Init(&RadioEvents);
Radio.SetChannel(RF_FREQUENCY);
Radio.SetRxConfig(MODEM_LORA, LORA_BANDWIDTH, LORA_SPREADING_FACTOR, LORA_CODINGRATE, 0, LORA_PREAMBLE_LENGTH, LORA_SYMBOL_TIMEOUT,
LORA_FIX_LENGTH_PAYLOAD_ON, 0, true, 0, 0, LORA_IQ_INVERSION_ON, true);
Radio.Rx(0);
A Packet Arrives
OnRxDone() copies the message, keeps its RSSI and SNR, flashes the LED, raises the SOS if needed, tells the phone and listens again:
void OnRxDone(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr) {
if (size >= sizeof lastMsg) size = sizeof lastMsg - 1;
memcpy(lastMsg, payload, size); lastMsg[size] = 0;
lastRssi = rssi; lastSnr = snr; heardAt = millis(); fresh = true;
digitalWrite(LED_BUILTIN, LOW); flashAt = millis(); // the green LED: a flash per packet
Serial.print(F("<< LoRa: ")); Serial.print(lastMsg);
Serial.print(F(" (RSSI ")); Serial.print(rssi); Serial.print(F(", SNR ")); Serial.print(snr); Serial.println(F(")"));
if (strstr(lastMsg, "SOS") && !sos) { sos = true; Serial.println(F(">> SOS from node 1")); alertChar.writeValue("SOS NODE 1"); }
lastChar.writeValue(lastMsg);
Radio.Rx(0); // listen again
}
The Status Bar
The bar is drawn only when its state changes - waiting, OK or SOS - so the screen never flickers:
void drawBar() { // the bottom bar: SOS in red, or the waiting / OK state - only when it changes
static byte shown = 255;
const byte state = sos ? 2 : heardAt ? 1 : 0;
if (state == shown) return;
shown = state;
tft.fillRect(0, 105, 240, 30, sos ? ST77XX_RED : ST77XX_GREEN);
tft.setTextColor(ST77XX_BLACK); tft.setTextSize(2); tft.setCursor(10, 112);
tft.print(sos ? F("SOS FROM NODE 1") : (heardAt ? F("NODE 1 OK") : F("WAITING ...")));
}
Run the Simulation
Press Run. Both serial monitors - the same window as our TEP Serial Monitor Advance for Proteus - start; node 1 sends its first report a few seconds later and the base hears it:
Heltec T114 LoRa Sensor Node - The Engineering Projects
Node 1 on 868.3 MHz, SF7: a report every 5 s, USER = SOS
Heltec T114 LoRa Base Station - The Engineering Projects
Listening on 868.3 MHz, SF7 Bluetooth: "T114 Base" USER = clear the SOS
>> LoRa: N1 22.1C #1
<< LoRa: N1 22.1C #1 (RSSI -109, SNR 7)
Connect the Phone
On the phone open the Bluetooth app, press SCAN and connect to "T114 Base":
Warmer and Warmer
In the thermistor's window click Hot (60 C): the bead warms, and each report climbs. Both displays follow:
An SOS
Click USER on node 1: "N1 SOS" goes out at once, and the base's bar turns red. Here is the complete circuit while the simulation runs:
Clear the Alert
Click USER on the base: the SOS is cleared, and the next report brings the bar back to green:
>> LoRa: N1 26.9C #3
<< LoRa: N1 26.9C #3 (RSSI -109, SNR 7)
>> LoRa: N1 43.8C #4
<< LoRa: N1 43.8C #4 (RSSI -109, SNR 7)
>> LoRa: N1 SOS
<< LoRa: N1 SOS (RSSI -109, SNR 7)
>> SOS from node 1
>> USER: the SOS cleared
>> LoRa: N1 52.2C #6
<< LoRa: N1 52.2C #6 (RSSI -109, SNR 7)
RSSI and SNR
RSSI is the strength of the received signal in dBm: -60 is very strong, around -120 is near the limit at SF7. SNR compares the signal with the noise in decibels; LoRa can still decode packets below the noise floor, down to about -7.5 dB at SF7 and -20 dB at SF12. The LORADIST property sets the distance between the boards, and the base's display shows what the radio would measure.
Airtime and Duty Cycle
A short packet at SF7 and 125 kHz is on the air for a few tens of milliseconds; at SF12 the same packet takes well over a second. In Europe the 868 MHz band allows each device about 1 % airtime, so a node sending every 5 s at SF7 stays well inside the rule - at SF12 it would not. Choose the slowest spreading factor that your range needs, and send only when something changed.
Choosing the LoRa Settings
Both boards must agree on five settings, or the base never hears a packet. The frequency (868.3 MHz) is the channel. The bandwidth (125 kHz) is how wide the chirps sweep: a wider band is faster but hears more noise. The spreading factor (SF7) sets how long each symbol lasts. The coding rate (4/5) adds one parity bit for every four data bits, so a few damaged bits can be repaired. The preamble (8 symbols) is the wake-up tone in front of every packet that lets the receiver lock on. In the sketches these are the #define lines at the top, used by SetTxConfig on node 1 and SetRxConfig on the base.
Frequency Plans Around the World
LoRa uses licence-free bands, and they differ by region: 863 to 870 MHz in Europe, 902 to 928 MHz in the Americas and Australia, 865 to 867 MHz in India and 470 to 510 MHz in China. The T114 is sold in a high-band version for 868 and 915 MHz. Our model accepts any frequency in the SX1262's range, but two boards only talk when they use the same one, just like real radios.
The Bluetooth Service of the Base
The base offers one Bluetooth LE service with two characteristics. Last message holds the newest text from node 1, and Alert holds "SOS NODE 1" or "none". Both can be read and both notify, so the phone gets every change at once without asking again. The 2901 descriptors give each characteristic a readable name, which the phone shows instead of a long UUID. This is a good pattern for any gateway: the radio side collects data, and Bluetooth hands it to a phone nearby.
Drawing Text Without Flicker
The ST7789 keeps every pixel until it is drawn again, so the sketches never clear the whole screen. Text is printed with a background colour - setTextColor(ST77XX_WHITE, ST77XX_BLACK) - and each character covers its old one. A shorter message would leave the end of a longer one behind, so drawPacket() pads the line with spaces up to 12 characters. Text size 3 makes characters 18 x 24 pixels, so 12 of them fill most of the 240-pixel width.
Reading the Buttons
USER is a plain push button to ground with the input pull-up switched on, so it reads HIGH when free and LOW when pressed. readKey() acts only on a change that is at least 30 ms after the previous one; this ignores the contact bounce of a real switch, and one click gives exactly one SOS on node 1 or one clear on the base.
Why a Display on a Node?
A display lets a node be used on its own: a hiker can read messages without a phone, and a technician can check a sensor in the field. The T114's 1.14" screen draws only about 11 mA extra, and the sketch updates only the parts that change, which keeps both the power and the flicker down.
Meshtastic and MeshCore
The T114 is best known as a Meshtastic node: every node repeats the messages it hears, so a group of small boards forms a mesh that covers far more ground than one radio. Our demo is point-to-point - one node and one base - but the same radio calls are the foundation: a mesh adds packet IDs, hop counts and forwarding on top.
Battery and Solar
The real T114 charges a Li-Po from USB or a small solar panel and sleeps at about 11 microamps with the display and GPS off. A field node like ours would sleep between reports and wake on a timer or on the USER button - the LoRa radio itself only draws current while it sends or listens.
Try It Yourself
- Let the base answer every report with "ACK" and show a tick on node 1.
- Send the battery voltage with each report.
- Add a second sensor node "N2" and list both on the base.
- Raise the spreading factor to SF10 and watch the airtime grow.
Ideas to Extend the Messenger
- Add a GPS module and send the position with the SOS.
- Repeat the SOS every 30 s until the base acknowledges it.
- Let the phone write a message that the base sends to the node.
- Log every packet with its RSSI to see how the link changes.
Your Own Sketches
Write the sketch in the Arduino IDE with the board Heltec Mesh Node T114 (TEP Proteus), use Sketch > Export Compiled Binary and set the part's PROGRAM property to the .hex. Give each board in the design its own sketch.
Moving to a Real T114
- Install Heltec's nRF52 board package and select the Mesh Node T114.
- Keep the LoRa code:
Mcu.beginand theRadiocalls are Heltec's own API. - For the display, switch on its power and backlight first: pin 3 and pin 15 LOW on the real board.
- Use frequencies and power that are legal where you are - 868 MHz in Europe, 915 MHz in the Americas.
- Always connect the LoRa antenna before sending: transmitting without it can damage the radio.
The messages, the logic and the Bluetooth service stay the same; on the real board Heltec's core takes the place of ours.
Properties of the T114
| Property | What it does |
|---|---|
| PROGRAM | the sketch: a .hex from TEP Boards for Proteus (the Heltec T114 board) |
| MONITOR, BAUD, AUTOOPEN | the built-in serial monitor: on, its baud rate (115200), open at Run |
| LORADIST | the distance to the other LoRa boards: 10 m to 20 km (the demo: 2 km) |
Troubleshooting
- Nothing arrives: both boards need the same frequency, spreading factor, bandwidth and coding rate; call
Radio.Rx(0)again after every packet. - The display stays black: call
tft.init(135, 240);setRotation(1)draws upright. - The phone's list is empty: call
BLE.begin(), set a local name andBLE.advertise(); callBLE.poll()in the loop. - The LED does the opposite: the green LED lights when LOW.
- A number goes wrong above 32767: int is 16 bits in the simulation - use long.
Limitations of the Simulation
- LoRa is point-to-point between TEP LoRa boards; LoRaWAN, Meshtastic and FSK are not modelled.
- The RGB LEDs, the GPS port, the battery and solar sockets and the QSPI flash are not modelled; the backlight is always lit.
- Your sketch gets 8 KB of RAM in the simulation, and int is 16 bits there.
- Heltec is a name of Heltec Automation, nRF52840 of Nordic Semiconductor ASA, SX1262 and LoRa of Semtech and Arduino of Arduino; this library is not made or endorsed by them or by Labcenter.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped, about 26 s of simulation). Proteus 7 is not supported.
So, that was all about the Heltec T114 Library for Proteus. I hope it helps you try your LoRa and Bluetooth ideas in a simulation before the boards are on your desk. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!























Comments
0