-
Notifications
You must be signed in to change notification settings - Fork 6
SleepMode Lora Current #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@kadirozdinc please post circuit diagram of you hardware. Without this it's not possible to pinpoint this. |
@kadirozdinc for debugging opmode of Hope RFM96 chip, add this build flag in platformio.ini: Then watch output on serial console. Look for LMIC opcode messages. Post result here to inspect. Did you ensure having proper settings in lmic_config.h for your chip? |
@kadirozdinc To inspect RFM95 chip mode when ESP32 goes to sleep, modify
Then watch output "chip opmode=" logs on serial console. It should be 0 (= RFM95 sleep mode) when ESP32 goes to sleep. If not, the chip is not set to sleep mode before ESP32 goes to sleep. This would cause unnecessary power consumption during ESP32 sleeps. |
I use esp32-c3-devkitC02 and HopeRF RFM96 Lora Radio module. Simply I connect SPI pins and other RST/NSS/DIO0/DIO1 pins on breadboard. I measure current going from 3V3 line to Vcc pin of Radio module. I had made I modify opMode function as you mention above and add My Repo : https://github.com/kadirozdinc/esp32-c3-lmic/tree/deepSleepMode Terminal outputs :
After waiting some more time, TX is complated, terminal is like :
Current consumption still about 300uA when sleeping |
The debug log shows, that Lora Chip is in sleep mode, before esp32 goes in sleep mode. That's how it should work. While in sleep mode the chip is still drawing current, please try to disable SPI interface by pulling some wires from breadboard. Then check if current persists. Start with pulling SS line. Then SCLK. Then MISO/MOSI. |
Are you sure that in your setup the current drawn by the Lora chip is measured, ONLY? I.e. not the current drawn by pullup/pulldown resistors on digital lines, etc.? Can you provide a circuit diagram of your setup? To make sure we have no false positive. |
I measure current from 3V3 to VCC pin of radio module. ESP32 module has pullup resistors on itself to be able to boot and work correctly. System is suplied by usb port of esp32dev module. ı made some minor changes in pin definition. Circuit Diagram is below : Did you measure current I mentioned in your own setup ? |
Uh oh!
There was an error while loading. Please reload this page.
Firstly I tried lmic-otaa example with my setup, LoRa radio module (HopeRF RFM96) consumes 7.6uA all the time after sending packets. When trying your deepSleep codes everything works perferct ESP32-C3 consumes 5.6 uA but LoRa radio starts to consume approx. 67uA after sending packets. I realized that until esp32 go to sleep Lora consumes 7.6uA , After sleeping, currents goes up to 67uA.
I probe NSS RST DIO0 DIO1 pins and compare these two sketch, there is no difference between them. I could not find the reason. Do you have any idea about it ?
The text was updated successfully, but these errors were encountered: