# TTGO T-Beam topic

**URL:** <https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297>\
**Category:** End Devices (Nodes)\
**Created:** [June 25, 2018, 2:58pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297 "2018-06-25T14:58:18Z")\
**Posts on this page:** 20\
**Page:** 13

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [January 26, 2020, 12:54pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/258 "2020-01-26T12:54:03Z")

</div>

> [@ncruz](#):
>
> [https://github.com/nunomcruz/pycom-micropython-sigfox/tree/tbeamv1-support](https://github.com/nunomcruz/pycom-micropython-sigfox/tree/tbeamv1-support)

Given the “sigfox” in that URL: does this support LoRaWAN?

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [January 26, 2020, 3:45pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/259 "2020-01-26T15:45:04Z")

</div>

> [@arjanvanb](#):
>
> does this support LoRaWAN

Yes, that is just the name Pycomm uses for their repository (which cloned repositories inherit). Confusing…

---

<div class="post-metadata">

**Author:** ![saadmirza962](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/saadmirza962/32/25844_2.png) [@saadmirza962](https://www.thethingsnetwork.org/forum/u/saadmirza962)\
**Post date:** [February 7, 2020, 5:40pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/260 "2020-02-07T17:40:04Z")

</div>

HELLO EVERYONE, I M USING TTGO T BEAM LORAWAN FOR MY FYP PROJECT I.E TRAIN TRACKING AND MONITORING SYSTEM, I am trying for designing collision avoidance system, how two modules start sharing data if minimum distance between them is about 5kms, kindly help out me, plz send me demo code of it, if any one have???  
i will be very thankfull to him/her.

---

<div class="post-metadata">

**Author:** ![monster695](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/monster695/32/25844_2.png) [@monster695](https://www.thethingsnetwork.org/forum/u/monster695)\
**Post date:** [February 24, 2020, 10:55am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/261 "2020-02-24T10:55:45Z")

</div>

Hi

Does anyone have a example sketch to read GPS coordinates using TTGO T-Beam v1.0 ESP32 with GPS NEO-6M?

thank you

---

<div class="post-metadata">

**Author:** ![Tech\_Tinker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tech_tinker/32/31726_2.png) [@Tech\_Tinker](https://www.thethingsnetwork.org/forum/u/Tech_Tinker)\
**Post date:** [February 27, 2020, 10:42am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/262 "2020-02-27T10:42:37Z")

</div>

Hi there, I’ve been trying to get my ttgo t-beam v0.7 node working (two button model) but after several attempts and sketches the TTN console still shows as ‘unseen’.

I have starting with the ttn-abp.ino sketch from the arduino-lmic example to get a “Hello World” message

- Added my NWKSKEY, APPSKEY and DEVADDR from the TTN Console

- Updated the Pin Mapping in the sketch which I believe corresponds to the T-BEAM v0.7

> ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/d/2dc5b15c647ed3751fde3d5a856e66a67a08bf5c.png)

- Changed the IBM\_LMIC\_framework\src\lmic\Config.h - uncommented us915 1 (I’m in Australia)

> //#define CFG\_eu868 1  
> #define CFG\_us915 1

- Completed the steps posted by Zodiac here

> [@Create a mapping node with t-beam step by step](https://www.thethingsnetwork.org/forum/t/create-a-mapping-node-with-t-beam-step-by-step/30453/):
>
> Hi there, is there someone who could give me a step by step guideline how to create and setup a t-beam as simple as this manual?[https://github.com/lyusupov/SoftRF/blob/master/software/firmware/binaries/README.md](https://github.com/lyusupov/SoftRF/blob/master/software/firmware/binaries/README.md) I have 3 t-beams, two with the newest Version 20190612 (I use it for flarm) and the earlier one and I like to use one as a mapping node but I could not find a simple instruction or video how to do from start to end. Thanks in advance for helping.

- For the Physical setup on the TTGO, I have cable connecting LORA1 to Pin33.

The sketch compiles, and boot and after a while the GPS lit is blinking (GPS lock) and the Blue led is solid-on. Serial monitor when connected shows messages are sent.

There is no gateways near me, so I wardrive through an area that has a lot TTN gateways according to the TTN Map, with the hope of my message going out.

Any suggestions on what I’m missing?

Should there be a payload I need to enter in the console for the "hello world’ message?

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [February 28, 2020, 9:41am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/263 "2020-02-28T09:41:26Z")

</div>

First if you have a v0.7 you don’t need to add a wire to connect lora1 to pin33 - it is only needed on the very first version of the T-Beam which didn’t have a version number printed on the PCB, see my pictures in [TTGO T-Beam](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam/15297/213)

I don’t think it will be a problem, just not needed.

Can you have a look at the debug output of the T-Beam on the serial port ? You can use the arduino IDE “serial monitor” for that.

---

<div class="post-metadata">

**Author:** ![Tech\_Tinker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tech_tinker/32/31726_2.png) [@Tech\_Tinker](https://www.thethingsnetwork.org/forum/u/Tech_Tinker)\
**Post date:** [February 29, 2020, 5:36am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/264 "2020-02-29T05:36:17Z")

</div>

Here is the output from the Serial Monitor once the sketch is uploaded

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/9/f9a70c3a869b2bf28ce1c477c00c889b255da0d1.png)

My T-Beam is this one  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/b/8b5b1786b9aab318f97e5db3a78924be34b528bd.jpeg)

Considering there was no change i’ve switched over to the **MCCI\_LoRaWAN\_LMIC\_library** library and remove the IBM LMIC one to avoid conflicts. this library has a specific lorabase\_au915.h file. So i’ve updated lmic\_project\_config.h as per the below.

```
// Make sure only one of the following is defined (CFG_us915 or CFG_eu868)
#define CFG_au915 1
//#define CFG_eu868 1
//#define CFG_us915 1
```

---

<div class="post-metadata">

**Author:** ![bwooce](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bwooce/32/41729_2.png) [@bwooce](https://www.thethingsnetwork.org/forum/u/bwooce)\
**Post date:** [March 2, 2020, 2:23am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/265 "2020-03-02T02:23:33Z")

</div>

Did you also check that the code does a `LMIC_selectSubBand(1);` ? There have also been [reports of some of the LMIC variants not respecting this](https://www.thethingsnetwork.org/forum/t/lmic-node-dropped-packets/4400/12) but last time I used it I think it was fine… YMMV.

---

<div class="post-metadata">

**Author:** ![Tech\_Tinker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tech_tinker/32/31726_2.png) [@Tech\_Tinker](https://www.thethingsnetwork.org/forum/u/Tech_Tinker)\
**Post date:** [March 3, 2020, 11:16am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/266 "2020-03-03T11:16:06Z")

</div>

I’ve changed the LMIC libiary to use v3.1.0 of [GitHub - mcci-catena/arduino-lmic: LoraWAN-MAC-in-C library, adapted to run under the Arduino environment](https://github.com/mcci-catena/arduino-lmic) as it has mentioned explicit support for au915, so my lmic\_project\_config.h now looks like this

> // project-specific definitions  
> //#define CFG\_eu868 1  
> //#define CFG\_us915 1  
> #define CFG\_au915 1  
> //#define CFG\_as923 1  
> // #define LMIC\_COUNTRY\_CODE LMIC\_COUNTRY\_CODE\_JP /\* for as923-JP \*/  
> //#define CFG\_kr920 1  
> //#define CFG\_in866 1  
> #define CFG\_sx1276\_radio 1  
> //#define LMIC\_USE\_INTERRUPTS

The ttn-abp.ino example has been updated so, I started with a new example file and added my NWKSKEY, APPSKEY and DEVADDR and change the pin mapping as per the above. Compiles OK, and serial monitor shows the below EV-TXSTART and packet queued. (note: I’m not in range of a gateway). The message only appeared once.  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/3/a3cb6c6e8d60b5f27d3275f23d72b6eb397bbe6a.png)

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [March 3, 2020, 1:00pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/267 "2020-03-03T13:00:13Z")

</div>

> [@Tech\_Tinker](#):
>
> My T-Beam is this one  
> ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/b/8b5b1786b9aab318f97e5db3a78924be34b528bd.jpeg)

That picture does not identify the version of your board.  
It could be V0.5, V0.6, V0.7 or even another 0.x version.

There should be a version number with date somewhere on the PCB similar to:

```
T22_V05
20180608

```

The T22 indicates T-Beam, the V05 indicates version 0.5.

---

<div class="post-metadata">

**Author:** ![Tech\_Tinker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tech_tinker/32/31726_2.png) [@Tech\_Tinker](https://www.thethingsnetwork.org/forum/u/Tech_Tinker)\
**Post date:** [March 4, 2020, 10:17am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/268 "2020-03-04T10:17:15Z")

</div>

Thanks. Yes I found its a

> T22\_V07  
> 20180711

Based on the above, are my pin mappings correct?

> ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/d/2dc5b15c647ed3751fde3d5a856e66a67a08bf5c.png)

Another unsuccessful wardrive today, TTN console still shows ‘unseen’

---

<div class="post-metadata">

**Author:** ![geertgen](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/geertgen/32/28558_2.png) [@geertgen](https://www.thethingsnetwork.org/forum/u/geertgen)\
**Post date:** [March 8, 2020, 6:03pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/269 "2020-03-08T18:03:07Z")

</div>

Continuing the discussion from [TTGO T-Beam](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam/15297):

Hi,

I got my TTGO beam TTN tracker working - kind of. On a bright day it gets a GPS fix for a few hours and dies afterwards. On a rainy day, no way.

DeuxVis suggested replacing the GPS antenna. Anyone experience with this issue? What antenna should I try?

Geert

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [March 9, 2020, 9:24am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/270 "2020-03-09T09:24:11Z")

</div>

I have had a really huge improvement with those compared to the T-Beam original :

> **[28db High Gain Ceramic GPS Navigation Antenna Built-in Active Antenna SS...](https://www.ebay.com/itm/28db-High-Gain-Ceramic-GPS-Navigation-Antenna-Built-in-Active-Antenna-SS/253564939185)**
>
> Find many great new & used options and get the best deals for 28db High Gain Ceramic GPS Navigation Antenna Built-in Active Antenna SS at the best online prices at eBay! Free shipping for many products!

> **[32db High Gain CIROCOMM GPS Active 5cm Length Built-in Ceramic Antenna...](https://www.ebay.com/itm/32db-High-Gain-CIROCOMM-GPS-Active-5cm-Length-Built-in-Ceramic-Antenna-25-25-2mm/142332904243)**
>
> Find many great new & used options and get the best deals for 32db High Gain CIROCOMM GPS Active 5cm Length Built-in Ceramic Antenna 25\*25\*2mm at the best online prices at eBay! Free shipping for many products!

I’m linking for the models, I’m not endorsing those particular sellers you might find better deals at others.

---

<div class="post-metadata">

**Author:** ![oberour](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/oberour/32/35697_2.png) [@oberour](https://www.thethingsnetwork.org/forum/u/oberour)\
**Post date:** [May 14, 2020, 8:57am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/271 "2020-05-14T08:57:12Z")

</div>

Hello  
From Lilygo shop on ali, I see there are boards in version V1.0 and V1.1, both with AXP192.  
Do you now the differences between those?  
Did you test deep-sleep on V1.1 and get good results?  
Thanks

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 14, 2020, 11:22am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/272 "2020-05-14T11:22:28Z")

</div>

Hi,  
So, LilyGO have a new T-Beam version 1.1, but detailed information appears lacking (again).

My experience with LilyGO is that they are very poor at providing and updating documentation. I also can’t remember having ever seen documentation that describes what’s new and other changes for new releases of their products. So we probably will have to rely on experiences from users of this board for more information.

LilyGO shows below pinout of the T-Beam v1.1 on the product page on their AliExpress shop but information about v1.1 (and even older versions) is not available on their [T-Beam GitHub repository](https://github.com/LilyGO/TTGO-T-Beam) (yet).

T-Beam v1.1 pinout diagram:

![TTGO T-Beam v1.1 Pinout Diagram](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/9/d9fd9af454b2efdad17b37abe6990903dddaf0ef.jpeg)

_To see full image size: Right-click image and select ‘open image in new tab’._

```auto

```

* * *

If someone has more information about the new T-Beam v1.1 then please share in this topic.

---

<div class="post-metadata">

**Author:** ![marcel151](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/marcel151/32/25844_2.png) [@marcel151](https://www.thethingsnetwork.org/forum/u/marcel151)\
**Post date:** [May 21, 2020, 5:40pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/273 "2020-05-21T17:40:34Z")

</div>

I compared the descriptions of v1.0 and v1.1. What I found in the v1.1 description which is not in the v1.0 one is the following:  
There are 4 LEDs show the battery status in real time  
Add reverse battery protection module

As I don’t have my T-Beam yet, does the v1.0 have 4 LEDs for battery indication and a battery protection module?

I ordered a v1.0 a few days ago, I thought that this is the newest version. Nevertheless, I hope that the differences are not that big. But at the moment, the v1.1 cost a little bit more than the v1.0. I ordered my v1.0 with an OLED screen for around 23$ (with shipping). I find the v1.1 one without an OLED screen for around 27$ (with shipping).

---

<div class="post-metadata">

**Author:** ![Linar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/linar/32/35697_2.png) [@Linar](https://www.thethingsnetwork.org/forum/u/Linar)\
**Post date:** [May 23, 2020, 5:27pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/274 "2020-05-23T17:27:33Z")

</div>

[Lewis He](https://github.com/lewisxhe) from [LilyGO company](http://www.lilygo.cn/) has recently published TTGO **T-Beam** dev. board schematic files for:

1. [V0.7](https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam/blob/master/schematic/LilyGo_TBeam_V0.7.pdf) - 2018 model
2. [V1.0](https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam/blob/master/schematic/LilyGo_TBeam_V1.0.pdf) - 2019 model
3. [V1.1](https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam/blob/master/schematic/LilyGo_TBeam_V1.1.pdf) - most recent for now

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [May 24, 2020, 5:05pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/275 "2020-05-24T17:05:09Z")

</div>

So LilyGO have a new GitHub account.

New: [LILYGO team · GitHub](https://github.com/Xinyuan-LilyGO)  
Old: [LilyGO (LILYGO) · GitHub](https://github.com/LilyGO)

Hopefully they will come with written documentation that also describes what’s new and differences with different/previous versions of same products.  
_(Until recently it was mostly ‘search the differences’ left up to the customer.)_

> [@marcel151](#):
>
> As I don’t have my T-Beam yet, does the v1.0 have 4 LEDs for battery indication and a battery protection module?

v1.0 (luckily) does not have a 4-LED battery level indicator.

---

<div class="post-metadata">

**Author:** ![ikn0w](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ikn0w/32/33074_2.png) [@ikn0w](https://www.thethingsnetwork.org/forum/u/ikn0w)\
**Post date:** [June 7, 2020, 1:39pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/276 "2020-06-07T13:39:28Z")

</div>

[kizniche / ttgo-tbeam-ttn-tracker](https://github.com/kizniche/ttgo-tbeam-ttn-tracker)

Hey guys. I’m a little late to the party but im having some issues with kizniche’s tracker sketch. I’ve been reading the issue requests on his Github and none of them are really helping me.  
The problem I’m having is that I only get the activation message in TTN Console → data, so im wondering what’s faulty about my setup.  
I’ve used the right credentials for OTAA, set up my band in mcci project config and everything else thats provided in his readme.  
Also, my end node is trying to activate itself **over and over** again with no uplink coming through.  
This is the output from my activation tab:

> {  
> “time”: “2020-06-07T13:35:55.731483096Z”,  
> “frequency”: 868.5,  
> “modulation”: “LORA”,  
> “data\_rate”: “SF8BW125”,  
> “coding\_rate”: “4/5”,  
> “gateways”: [  
> {  
> “gtw\_id”: “eui-b827ebfffe34bb20”,  
> “timestamp”: 3666486788,  
> “time”: “2020-06-07T13:35:55.711068Z”,  
> “channel”: 2,  
> “rssi”: -118,  
> “snr”: -3.5  
> },  
> {  
> “gtw\_id”: “eui-b827ebfffe6b4594”,  
> “timestamp”: 787828300,  
> “time”: “2020-06-07T13:35:55.717715Z”,  
> “channel”: 2,  
> “rssi”: -114,  
> “snr”: 0.8  
> }  
> ]  
> }

Anyone over here able to identify my problem?  
I’m using the T22\_v1.0 revision of the board.

---

<div class="post-metadata">

**Author:** ![xefiji](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/xefiji/32/33086_2.png) [@xefiji](https://www.thethingsnetwork.org/forum/u/xefiji)\
**Post date:** [June 8, 2020, 7:37am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/277 "2020-06-08T07:37:04Z")

</div>

Hi folks,

is there any other place to post an issue regarding a specific use case with Tbeam ?  
This is a beginner question 🙂

is it possible to send a lora payload from a T-Beam and receive it from a LoRa32 SX1276 OLED (v2) ? I if follow those two tutorials:  
[https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/](https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/) or [https://randomnerdtutorials.com/esp32-lora-rfm95-transceiver-arduino-ide/](https://randomnerdtutorials.com/esp32-lora-rfm95-transceiver-arduino-ide/), i can send and receive without problem from two LoRa32 devices.

But if i let the LoRa32 receiver ON and tries to send from a T-Beam T22V1.0, nothing seems to happen.

T-beam code: (some gps related vars are set but i removed gps code for clarity. GPS does work fine.)

What am i doing wrong ?

(if i am not in the good place for that kind of beginner issue, please tell me and i’ll try to find a more suitable place for this…)

```auto
#include <TinyGPS++.h>
#include <axp20x.h>
#include <SPI.h>
#include <LoRa.h>

#define SCK 5 // GPIO5 -- SX1278's SCK
#define MISO 19 // GPIO19 -- SX1278's MISnO
#define MOSI 27 // GPIO27 -- SX1278's MOSI
#define SS 18 // GPIO18 -- SX1278's CS
#define RST 23 // GPIO14 -- SX1278's RESET
#define DI0 26 // GPIO26 -- SX1278's IRQ(Interrupt Request)
#define BAND 868E6

TinyGPSPlus gps;
HardwareSerial GPS(1);
AXP20X_Class axp;

void setup()
{
  Serial.begin(115200);
  Wire.begin(21, 22);
  if (!axp.begin(Wire, AXP192_SLAVE_ADDRESS)) {
    Serial.println("AXP192 Begin PASS");
  } else {
    Serial.println("AXP192 Begin FAIL");
  }
  axp.setPowerOutPut(AXP192_LDO2, AXP202_ON); //lora
  axp.setPowerOutPut(AXP192_LDO3, AXP202_ON); //gps
  axp.setPowerOutPut(AXP192_DCDC2, AXP202_ON); 
  axp.setPowerOutPut(AXP192_EXTEN, AXP202_ON);
  axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON); //oled
  GPS.begin(9600, SERIAL_8N1, 34, 12); //17-TX 18-RX

  SPI.begin(SCK,MISO,MOSI,SS);
  LoRa.setPins(SS,RST,DI0);
  if (!LoRa.begin(BAND)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }else{
    Serial.println("Starting LoRa succeed!");
  }
  
  axp.setChgLEDMode(AXP20X_LED_BLINK_1HZ);

}

void loop()
{
  LoRa.beginPacket();
  LoRa.print("Hello");  
  LoRa.endPacket();
  Serial.println("sent..");

  delay(1000);
}

```

Thanks 🙂

[Previous page](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297.md?page=12)

[Next page](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297.md?page=14)
