- Version: LILYGO® TTGO T-Beam V1.1
- LoRa: Semtech SX1276
- VCP Driver: CP2102
- Board name in Arduino IDE: T-beam
- Official GitHub: https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series
- Install libraries: Move all sub-folders in LilyGo-LoRa-Series/libdeps to ~/Arduino/libraries
LoRa_MISO_Pin = 19
LoRa_MOSI_Pin = 27
LoRa_SCK_Pin = 5
LoRa_CS_Pin = 18
LoRa_RST_Pin = 23
LoRa_G0_Pin = 26
SPI_CH = 1
- LoRa is the Physical Layer protocol that supports Network Layer protocol LoRaWAN.
- LoRa is about RF signal and LoRaWAN addresses MAC/Encryption.
- Arduino LoRa is the library for LoRa operations.
- RadioLib supports LoRa operations but intends to include LoRaWAN functions.
- Must uncomment board version and change LoRa_frequency in utilities.h
#define LILYGO_TBeam_V1_1
#define LoRa_frequency 915.0
- GPS / OLED / SX1276_Tx are three minimalistic examples that demonstrate how to use different component on T-Beam board.
- Tracker is the final project that report GPS info via LoRa protocol while display some info on screen.
- Use LilyGo-LoRa-Series-master/examples/RadioLibExamples/SX1276/SX1276_Receive_Interrupt to program the receiver.
$ pip install pyserial
import serial, datetime
with serial.Serial(port='/dev/ttyUSB0',baudrate=115200) as s, open('tracker.log','w') as fw:
while 1:
print(datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%SZ"),' | ',s.readline().decode(), file=fw)
fw.flush()
arduino-cli compile --fqbn esp32:esp32:t-beam $HOME/IoT-master/Espressif/ESP32/T-Beam/SX1276_Receive && arduino-cli upload --fqbn esp32:esp32:t-beam -p /dev/ttyUSB2 $HOME/IoT-master/Espressif/ESP32/T-Beam/SX1276_Receive
arduino-cli compile --fqbn esp32:esp32:t-beam $HOME/IoT-master/Espressif/ESP32/T-Beam/SX1276_Transmit && arduino-cli upload --fqbn esp32:esp32:t-beam -p /dev/ttyUSB1 $HOME/IoT-master/Espressif/ESP32/T-Beam/SX1276_Transmit