# Heltec lora node 151 STM32L151CCU6 SX127x LoRa chip - arduino/platformIO support -

**URL:** <https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949>\
**Category:** Hardware\
**Created:** [February 28, 2021, 8:17am UTC](https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949 "2021-02-28T08:17:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PietH](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/pieth/32/36818_2.png) [@PietH](https://www.thethingsnetwork.org/forum/u/PietH)\
**Post date:** [February 28, 2021, 8:17am UTC](https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949/1 "2021-02-28T08:17:12Z")

</div>

[first info in TTN forum](https://www.thethingsnetwork.org/forum/t/the-bargain-basement-part-5/21099/298)

I bought this device out of curiosity because I like the compact design. 😇

Now I realized that all examples based on STM32CubeIDE. I managed to get the example by heltec and upload with STMCubeProgrammer and ST-LINK V2.  
[heltec info](https://heltec-automation-docs.readthedocs.io/en/latest/stm32/lora_node_151/index.html)  
[lora node 151 → TTN](http://community.heltec.cn/t/how-to-use-lora-node-151-and-send-data-to-ttn-solved/124/8)

**PlatformIO and arduino Framework**  
I found info at [stm32duino support](https://github.com/fthiebolt/LoRa-boards-stm32duino).

**Question:**  
looking for any suggestions, examples or ideas how to use platformIO with this node.

---

<div class="post-metadata">

**Author:** ![leo\_korbee](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/leo_korbee/32/48564_2.png) [@leo\_korbee](https://www.thethingsnetwork.org/forum/u/leo_korbee)\
**Post date:** [February 28, 2021, 3:29pm UTC](https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949/2 "2021-02-28T15:29:27Z")

</div>

Hello @PietH,  
I have build my own LoRa Node with STM32L051 and use Arduino code and PlatformIO. Maybe you can use some examples and ideas on my blog pages. [MiniPill LoRa - STM32 Low Power Node | iot-lab.org](https://www.iot-lab.org/blog/370/) and [Programming STM32 | iot-lab.org](https://www.iot-lab.org/blog/355/)

You have to figure out the pin connections between the STM32L151 and SX1276 (RFM95W) on the Heltec node and change them in the example code accordingly.  
Regards, Leo.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [February 28, 2021, 3:39pm UTC](https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949/3 "2021-02-28T15:39:16Z")

</div>

> [@leo\_korbee](#):
>
> You have to figure out the pin connections between the STM32L151 and SX1276 (RFM95W) on the Heltec node

This will be documented in the original code base from the STM32 IDE, so should be _relatively_ seamless.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [February 28, 2021, 5:37pm UTC](https://www.thethingsnetwork.org/forum/t/heltec-lora-node-151-stm32l151ccu6-sx127x-lora-chip-arduino-platformio-support/44949/4 "2021-02-28T17:37:56Z")

</div>

> [@leo\_korbee](#):
>
> I have build my own LoRa Node with STM32L051 and use Arduino code and PlatformIO.

An L051 is quite different from an L151 where things like Arduino BSP’s are concerned.

There’s a certain irony here that the _weakness_ of much of the Heltec stuff is _only_ supporting Arduino and not more precise/traditional development methods, but the asker actually wants that, and seems to have the one board that doesn’t.
