RadioLib & LowPowerLib & 328P not liking each other #732
Replies: 5 comments 5 replies
-
It's been quite some time since I last used LowPowerLib with RadioLib, so it is possible something is broken. We used this combination on FOSSASAT-1 without problems though. However, the fact that Serial output is also garbled seems to point to some issue outside of RadioLib - maybe try without RadioLib, just Serial print after waking up? |
Beta Was this translation helpful? Give feedback.
-
Hi Yes the code linked above was a couple of version ago. here is the latest attempt, I know Radio lib was not ment to stop the SPI comms, I was suggesting Radiolib stops lowpower lib from shutting down the SPI bus somehow. Ill try the SPI.end() and see if that makes a difference.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Mmm good point.
Thanx for testing this. I would expect the functions just to take longer at
slower clock rate but delays don't seem to have an effect.
I'm running the pro mini at 1.8V BOD and 1mhz becuase this is for energy
harvesting project so trying to reduce the runtime current. So I can test
to confirm with normal bootloader but that will really limit the effective
operating range of the storage element.
…On Tue, Apr 25, 2023, 1:46 p.m. Jan Gromeš ***@***.***> wrote:
This was kind of bugging me, so I just installed LowPowerLib, and in the
SX126x transmit example I put LowPower.powerDown(SLEEP_8S, ADC_OFF,
BOD_OFF); instead of the original delay(1000); - and everything seems to
be working, I see regular LoRa transmissions after 8 seconds. I didn't
measure the power draw, but the functionality seems to be correct.
Also - no delays needed to get Serial working. I'm using a plain Arduino
Uno, so maybe the bootloader makes a difference?
—
Reply to this email directly, view it on GitHub
<#732 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGVGC4S7ZSOGEHAYRJS3V63XDAEVXANCNFSM6AAAAAAXD25J64>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Iv been looking for advice over on Arduino forums and someone seems to have objection in leaving the SPI lines physicals connected while turning the radio power on and off. if they both run at the same voltage and both use the same ground for reference I don't see the issue electrically ? it just means the peripherals need to be setup every time you wake up.. Does the Radio Lib library allow for low power state commands to the Semtech chips |
Beta Was this translation helpful? Give feedback.
-
Hey All.
Wanted to see who could shed some wisdom here.
I have RadioLib working with Sx1262 and example code. Check
I have LowPowerLib working with Periodic wakeup and flashing LED afterwakeup. Check
Combine the two and its Silence in the night, The Serial printouts are garbage after wakeup and LED no longer flashes. for context Digital pin 5 is a load switch that turns the Radio power off after transmission and back on before next round. I suspect the issues is some systems that do not get turned back on after sleep period. but using the SPI_ON, UART0_ON commands seems to have no effect, Alos tried moving the initialization into the main loop to setup the system after sleep again but no action. So I wanted to see if anyone can spot anything obvious or recommend another lowpower Library I can use with RadioLIB
Beta Was this translation helpful? Give feedback.
All reactions