# Node with ESP8266 and RFM95W

**URL:** <https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002>\
**Category:** Hardware\
**Created:** [January 9, 2016, 10:40pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002 "2016-01-09T22:40:06Z")\
**Posts on this page:** 10\
**Page:** 6

<div class="post-metadata">

**Author:** ![Quentin\_PLACE](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/q/ecb155/32.png) [@Quentin\_PLACE](https://www.thethingsnetwork.org/forum/u/Quentin_PLACE)\
**Post date:** [December 20, 2018, 3:03pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/106 "2018-12-20T15:03:34Z")

</div>

hi ,

we try to use a RFM9x LORA radio with an ESP D1 mini .we have big problem with wiring the module . in the monitor we see that messages are normally send . but we don t have anything in the data console of ttn .  
as you can see we have this in the monitor : ![lorawan](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/7/d/7db6f82d556962c5b2e9fdd917311e04bfd0096d.png)

i think the problem is the " unknown event" that happened at each time .

for our pin mapping we do this ;  
// Pin mapping  
const lmic\_pinmap lmic\_pins = {  
.nss = 15,  
.rxtx = LMIC\_UNUSED\_PIN,  
.rst = LMIC\_UNUSED\_PIN,  
.dio = {4, 5, LMIC\_UNUSED\_PIN},  
};

we don’t know if it’s correct or not .

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [December 20, 2018, 3:17pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/107 "2018-12-20T15:17:56Z")

</div>

see [How should I wire an RFM95 to an ESP8266/WeMos D1 mini?](https://www.thethingsnetwork.org/forum/t/how-should-i-wire-an-rfm95-to-an-esp8266-wemos-d1-mini/3869/4)

D8 (GPIO15) -\> NSS  
D5 (GPIO4)-\>SCK  
D7 (GPIO13)-\>MOSI  
D6 (GPIO12)-\>MISO  
D1(GPIO5)-\>DIO 0  
D2(GPIO4)-\>DIO 1

const lmic\_pinmap lmic\_pins = {  
.nss = 15,  
.rxtx = LMIC\_UNUSED\_PIN,  
.rst = LMIC\_UNUSED\_PIN,  
.dio = {4, 5, LMIC\_UNUSED\_PIN},  
};

seems ok … check again 😉

---

<div class="post-metadata">

**Author:** ![Quentin\_PLACE](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/q/ecb155/32.png) [@Quentin\_PLACE](https://www.thethingsnetwork.org/forum/u/Quentin_PLACE)\
**Post date:** [December 20, 2018, 4:03pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/108 "2018-12-20T16:03:35Z")

</div>

we do , but no sucess .  
i think the wiring is different for our module because we don’t have just lora module but wa have something like this ;  
 ![lora](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/b/dbdefa75a3729125370d37f95153a42da0730de5.jpeg)  
do you tkink this type of module work same as the green card ?  
what can be the unknown event ?

---

<div class="post-metadata">

**Author:** ![IOT-jenny](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/iot-jenny/32/25844_2.png) [@IOT-jenny](https://www.thethingsnetwork.org/forum/u/IOT-jenny)\
**Post date:** [October 23, 2019, 4:23pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/109 "2019-10-23T16:23:01Z")

</div>

> [@BoRRoZ](#):
>
> D8 (GPIO15) → NSS  
> D5 (GPIO4)-\>SCK  
> D7 (GPIO13)-\>MOSI  
> D6 (GPIO12)-\>MISO  
> D1(GPIO5)-\>DIO 0  
> D2(GPIO4)-\>DIO 1
> 
> const lmic\_pinmap lmic\_pins = {  
> .nss = 15,  
> .rxtx = LMIC\_UNUSED\_PIN,  
> .rst = LMIC\_UNUSED\_PIN,  
> .dio = {4, 5, LMIC\_UNUSED\_PIN},  
> };

I do like you post because you are clearly talk about the PinMapping… which is a bit a confusing topic (GPIO X vs DIO Y vs MISO) an so on…

But I guess you did like to write D5 (GPIO14)-\>SCK \>\> GPIO14 right?

Thanks Marcel

---

<div class="post-metadata">

**Author:** ![Dr\_Honeydew](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/dr_honeydew/32/25844_2.png) [@Dr\_Honeydew](https://www.thethingsnetwork.org/forum/u/Dr_Honeydew)\
**Post date:** [December 18, 2019, 8:56pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/111 "2019-12-18T20:56:40Z")

</div>

It is possble to connet mutiple devices to I2C. Just connect datapins to the CS line of the sensors and RFM. Trip that datapin when trying to read or write to that device.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [December 19, 2019, 1:56pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/112 "2019-12-19T13:56:02Z")

</div>

> [@Dr\_Honeydew](#):
>
> It is possble to connet mutiple devices to I2C. Just connect datapins to the CS line of the sensors and RFM. Trip that datapin when trying to read or write to that device.

Not sure what you are trying to say here but

> [@](#):
>
> connect datapins to the CS line of the sensors

Is just plain nonsense because I2C sensors do not have a chip select (CS) pin.

**Stop responding to OLD posts/threads if you have nothing useful to add!**

---

<div class="post-metadata">

**Author:** ![Wijnand](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wijnand/32/39170_2.png) [@Wijnand](https://www.thethingsnetwork.org/forum/u/Wijnand)\
**Post date:** [January 31, 2020, 3:24pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/113 "2020-01-31T15:24:15Z")

</div>

@Charles

> [@Charles](#):
>
> especially DIO pins pulled together with OR diode to GPIO15 not another one, this one has pull down resistor what we need (or leave them unconnected and use LMIC no DIO pin [Pull Request](https://github.com/matthijskooijman/arduino-lmic/pull/34)

I have 3 diodes from the 3 DIO-pins and a pull down to GPIO15 of the ESP12. Same pin-mapping as in:

> [@Charles](#):
>
> This WeMos D1 [shield](https://github.com/hallard/WeMos-Lora) works fine with RFM95 + I2C, WS2812 Led and PushPutton (Radio Reset is not connected) checkout schematics

May I use the next option in the Pin mapping to make it universal for LoRaWAN and FSK?  
.dio = {15, 15, 15},  
or  
.dio = { 15, LMIC\_UNUSED\_PIN, LMIC\_UNUSED\_PIN},

There was a topic of it, but I could’n find it.

Thanks and regards…

---

<div class="post-metadata">

**Author:** ![DoubleDutch](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/doubledutch/32/35697_2.png) [@DoubleDutch](https://www.thethingsnetwork.org/forum/u/DoubleDutch)\
**Post date:** [August 31, 2021, 8:41pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/114 "2021-08-31T20:41:57Z")

</div>

I appreciate this is an old post… I’m trying to get this to work using software/documentation [provided by Maarten Westenberg](([GitHub - things4u/ESP-1ch-Gateway: Version 6 of the single channel gateway](https://github.com/things4u/ESP-1ch-Gateway))

The code compiles and and when I upload it to a Wemos D1 Pro, I get debug information in my Arduino IDE. When I connect the RFM95W I get nothing in my debug window. My questions:

1. I’m powering the unit from the USB port on my laptop. Will that work or does it require too much current?
2. I see various mentions of diodes, pull up resistors etc but I don’t use any and instead just use the wiring described on [this page](http://things4u.github.io/Projects/SingleChannelGateway/UserGuide/2_Installation.html).

---

<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:** [August 31, 2021, 9:17pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/115 "2021-08-31T21:17:35Z")

</div>

TTN is no longer able to support Single Channel Packet Forwarders - they are very non-compliant, devices expect to transmit on any one of 8 channels, they cause disruption to the network & other users and the owner. Please search the forum for more information.

The TTIG is a good low cost compliant gateway.

---

<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:** [August 31, 2021, 9:17pm UTC](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002/116 "2021-08-31T21:17:44Z")

</div>



[Previous page](https://www.thethingsnetwork.org/forum/t/node-with-esp8266-and-rfm95w/1002.md?page=5)
