Getting Started With the Elecrow LR1262 Node Board (RP2040 + TFT Display + LoRa)
by Electronic CNC Lab in Circuits > Microcontrollers
9 Views, 0 Favorites, 0 Comments
Getting Started With the Elecrow LR1262 Node Board (RP2040 + TFT Display + LoRa)
The Elecrow LR1262 Node Board is a compact and complete development board that integrates the RP2040 microcontroller, a LoRa RA-08H module based on the SX1262 chip, and a 1.8” color TFT display.
In this project, I’ll guide you step by step through installing and configuring the board in Arduino IDE, showing you how to display your first “Hello World” message and finally how to read environmental data from a BME280 sensor.
It’s the perfect starting point for anyone who wants to explore the world of IoT, LoRa, and embedded displays, using a powerful and versatile board.
Link: https://www.elecrow.com/wiki/LoRaWAN_LR1262_Development_Board_Integrated_RP2040_with_1.8LCD_for_Long_Range_Communication.html
Supplies
Elecrow LR1262 Node Board (RP2040 + LoRa + 1.8” LCD)
-USB–Micro USB cable (For power and data connection)
-BME280 Sensor (I²C) (Measures temperature, humidity, and pressure)
-Dupont male–female jumper wires 4
-I²C connections
Connect the Board to Arduino IDE
To get started, you need to configure Arduino IDE to recognize the Elecrow LR1262 Node Board, which is based on the Raspberry Pi RP2040.
1️⃣ Install RP2040 Board Support
- Open Arduino IDE → File → Preferences.
- In the “Additional Boards Manager URLs” field, paste the following link:
- https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
- Go to Tools → Board → Boards Manager and search for “Raspberry Pi RP2040”.
- Install the package Raspberry Pi Pico/RP2040 by Earle Philhower.
2️⃣ Select the Correct Board
- Go to Tools → Board → Raspberry Pi RP2040 Boards.
- Select Raspberry Pi Pico (the Elecrow LR1262 is compatible).
3️⃣ Connect the Board to the PC
- Use a USB–Micro USB cable.
- If the board is not detected, press and hold the BOOTSEL button, connect the cable, then release the button.
- A new drive called RPI-RP2 will appear on your computer.
4️⃣ Upload a Test Sketch
- Open Arduino IDE.
- Select the correct COM port from Tools → Port.
- Upload a simple sketch, such as Blink, to verify that communication is working.
Upload a Test Sketch
Standard Board Configuration
When the Elecrow LR1262 Node Board is connected via USB and properly recognized, you can upload sketches directly from Arduino IDE without entering BOOTSEL mode.
This happens because the board already includes the RP2040 bootloader configured for standard operation. In this mode:
- You don’t need to hold the BOOTSEL button every time you upload.
- The COM port remains active as long as the board is powered through USB.
- The upload process uses the “Default (UF2)” method from Earle Philhower’s RP2040 core.
🔧 Typical Arduino IDE settings
- Board: Raspberry Pi Pico
- Upload Method: Default (UF2)
- Port: COMx (where x is the system-assigned port number)
- Baud Rate: 115200 baud (for Serial Monitor)
During upload, Arduino IDE automatically detects the board and transfers the .uf2 file to the microcontroller’s virtual drive. After a few seconds, the board automatically resets and starts running the new sketch.
Test LED Blink
Before moving on to the display or sensors, it’s recommended to run a simple test to verify that the board is properly recognized and programmable.
This is the classic Blink sketch, adapted for the Elecrow LR1262 Node Board, which uses the onboard LED connected to GPIO 25.
💡 Expected Result:
The onboard LED starts blinking every second (1s ON / 1s OFF).
If the LED blinks, it confirms that:
- the board is properly recognized by Arduino IDE;
- the USB connection is functional;
- the bootloader and memory are working as expected.
Hello World With Adafruit Libraries
This sketch uses the Adafruit_ST7735 and Adafruit_GFX libraries — one of the most reliable ways to drive SPI TFT displays such as the one integrated into the Elecrow LR1262 Node Board.
The code initializes the 1.8” display (ST7735S, 128×160), sets the background color, and displays “Hello World!” in green text on a black background.
The backlight is automatically activated via GPIO 23.
💡 Expected Result:
The display shows two green lines:
on a black background, perfectly readable and stable — confirming that SPI communication and the display initialization are working as intended.
Temperature, Humidity & Pressure on RP2040
In this project, we build a compact environmental monitoring station using the Elecrow RP2040 board with LR1262 LoRa module. A BME280 sensor is used to measure temperature, humidity, and pressure, and the results are displayed in real time on a 1.8" ST7735S TFT screen.
The sketch automatically checks both I2C addresses (0x76 and 0x77) for the BME280. If not found, it tries a BMP280 instead (no humidity data).
The I2C pins are fixed on GP20 (SDA) and GP21 (SCL), as required by the Elecrow board layout.
This is a great base for expanding toward LoRa data transmission or just keeping a visual log of environmental conditions locally.
✅ Easy to build
✅ Arduino IDE compatible
✅ Ideal for labs, greenhouses, or IoT prototypes
Author: Giuseppe Romano – Electronic & CNC Lab
WORK IN PROGRESS
🔧 Note: This project is a work in progress.
It will be updated and enriched with new insights, improvements, and additional features over the coming days/weeks.
Stay tuned!