ESP32 Problems


(Maedman) #41

Thank you for that hint, its looking very complicated tbh but I will try to implement it! If I have success I will let you know about the effects :slight_smile:


(Vtomanov) #43

you can also use the standard macros provided my the ESP32 core as I have done in another of my projects…


(Sshanks) #44

Tried it ( it is actualy the suggested lib here : (https://www.youtube.com/watch?v=-QIcUTBB7Ww)

but the lib is kind of a not ready… e.g. did not managed to install it and make it work wit latest ESP32 core…

an other alternative examples ?


(Maedman) #45

I am using the standard ESP32 lib with deepsleep and LoRa functions at the moment. I cant get the ULP lib working, but i will keep trying!


(Maedman) #46

I tried to print the millis and thats what its printing:

    Serial.println(millis());
        LoRa.begin(BAND, PABOOST);  // Sending via Lora start
        Serial.println(millis());
        LoRa.beginPacket();
        Serial.println(millis());
        LoRa.print(trans[1]);
        Serial.println(millis());
        LoRa.print(trans[2])
        Serial.println(millis());
        LoRa.endPacket();
       Serial.println(millis());

1215
1285
1285
1286
1286
1946

So I would say, that the LoRa.begin and LoRa.endPacket is the problem --> libary probelm
Am I right with this?

Best regards


(Vtomanov) #47

there is some examples for Arduinoo IDE here :


(Maedman) #48

I got the error, that the Wif LoRa 32 Board is not working with the NodeAPI IoT Lib when i try to compile it :frowning:


(Vtomanov) #49

Which board exactly you chose in Arduino IDE ?
Which example ?


(Sshanks) #50

hmmm I watched about this in “The guy with the swiss accent” video and give it a try and it worked for me - I’m using Heltec LoRa32 Arduino IDE 1.8.8


(Maedman) #51

WiFi LoRa 32 out of the Heltec ESP32 Arduino lib


(Vtomanov) #52

What is the error ?

Do you have the Radiohead lib installed : https://github.com/i4things/NodeAPI/blob/master/RadioHead.zip

I’ve just tried all ESP32 Heltec related exmaples :

  1. https://github.com/i4things/NodeAPI/tree/master/examples/ESP32/HELTEC/SendAndReceive/thing
  2. https://github.com/i4things/NodeAPI/tree/master/examples/ESP32/HELTEC/Simple/thing
  3. https://github.com/i4things/NodeAPI/tree/master/examples/ESP32/ULP/LoRA/thing
  4. https://github.com/i4things/NodeAPI/tree/master/examples/ESP32/ULP/WiFi/thing

and all builds OK : ( Can you PM me with the problem as no point hijacking the thread)

Using library RadioHead in folder: C:\Program Files (x86)\Arduino\libraries\RadioHead (legacy)
Using library SPI at version 1.0 in folder: C:\Users\admin\Documents\Arduino\hardware\espressif\esp32\libraries\SPI
“C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-size” -A “C:\Users\admin\AppData\Local\Temp\arduino_build_518801/thing.ino.elf”
Sketch uses 220544 bytes (6%) of program storage space. Maximum is 3407872 bytes.
Global variables use 14336 bytes (4%) of dynamic memory, leaving 313344 bytes for local variables. Maximum is 327680 bytes.


(tlu) #53

Have you tried any other SF values to see whether the duration increases even further?