Hi, I have a xiao esp32 connected with a lora module (sx1278) and a gps module (L80), but I have a power problem. When I power the esp32 this one doesn't run the code if the sx1278 is powered by the 3.3v pin. But if connect the module with a different power supply, the code runs without problems.
I think the problem is when the sx1278 starts to consume so much power and the esp32 crash, I'm not sure, but It's what I think. The idea is use the power supply of the esp32 so idk if I need to add something, or what is causing the problem, any help is appreciated.
I'm testing with the basic lora example, powering with the xiao sometimes work but the 90% of the time will not work, but if I power the module with a different supply it works without problem.
This is the only information that I found, I'm not sure if lora consume more power on start, or just the board can't power it.
If I do that it works, but the idea is to use the esp32 module because it has a battery charger chip, but if I can't get it to work I would be using an external power supply
It's an esp32-c3 I'm not sure if it's the charge chip, but adding a battery to the xiao esp32 connection it solves the problem. I think this is because when it's connected to the usb is in charge mode and doesn't give the max power in the pins, but using a battery now output more power.
Thanks for all the helps, I really appreciate it.
Edit: The problem is solved, but when you are charging the battery the problem returns, and you have to manually restart the esp32, so I'm probably going to add a charging module and leave it as a power supply.
Hi @doster100
I believe this is not a power supply issue but an issue with connecting ESP32-C3 with SX1278.
It seems that SX1278 pulls down the MISO pin on startup. The MISO / D9 pin is used to put the ESP32C3 into BOOT mode, which is why the ESP32C3 gets stuck!
I solved this issue by adding a pullup resistor on NSS (NSS = high deactivates the SX1278 module).
Hi @vchahun, I am not sure if it is a power supply problem or if it is the pin but I think it is not the MISO pin because when I added the battery to the esp32 the problem was solved, I have also tried the same configuration with an RFM95W which has the same connection pins as the sx1278 and no problems. Another thing I did was to add a delay to the configuration to wait for the lora module to start.
The microcontroller has no effect on the 'range' you get from LoRa.
LoRa has a range of settings, and distance wise if you change the configurations from the defaults, that most people use, the range\distance increases by about a factor of 10.
If LoRa does not go far enough for you, there is nothing out there, thats legal, that gets anywhere close to the range the LoRa provides.