things4u / ESP-1ch-Gateway-v5.0--OLD

Version 5 of Single Channel LoRa Gateway
MIT License
312 stars 162 forks source link

Not working with Nodemcu Lolin v3 #50

Closed oblansundar closed 6 years ago

oblansundar commented 6 years ago

Hi,

I have ESP32-Nodemcu Lolin v3 board and RFM95 module. I chose the _PIN_OUT==3 connected the same pins for Wemos here in nodemcu, but it does not work.

I get this error:

Unknown transceiver=0, pins.rst =14, pins.ss =18, pins.dio0 =26, pins.dio1 =26, pins.dio2 =26

and then aborted.

Is D1,D2... in Wemos not same as D1,D2... in nodemcu lolinv3? I am confused about that.

Should i use a different module? like - https://www.amazon.de/AZDelivery-Adapterplatte-Arduino-Raspberry-Mikrocontroller/dp/B0725YFLTB/ref=sr_1_1_sspa?s=computers&ie=UTF8&qid=1539354666&sr=1-1-spons&keywords=esp32&psc=1 or D1 mini?

oblansundar commented 6 years ago

I changed the pin structure and then it helped a little:

struct pins { uint8_t dio0=5; // GPIO26 / Dio0 used for one frequency and one SF uint8_t dio1=4; // GPIO26 / Used for CAD, may or not be shared with DIO0 uint8_t dio2=0; // GPI2O6 / Used for frequency hopping, don't care uint8_t ss=15; // GPIO18 / Dx. Select pin connected to GPIO18 uint8_t rst=0; // GPIO0 / D3. Reset pin not used
} pins;