I'm a little confused. I thought you first said that you gave up on the
Nano Every board because the nRF24 was just too unstable?
Or are you saying that it was ONLY unstable when you applied 9V to it? Also, did you apply 9V DIRECTLY to the nRF24 or do you mean through the little adapter that regulates input voltage to the 3.3 that it actually requires?
The nRF24 boards don't like high voltage (over 3.3) and can actually burn out the chips.
?????
As an Electronics designer, for testing, I use a dual, programmable Lab power supply.
With this, I can set the max voltage as well as the max current allowed. As things work, it will display what actual current is being used.
For the nRF24, I do use the little adapter, where I can connect 5V to the adapter and it has a 3.3V regulator that the nRF24 requires.
I believe too that not all nRF24 boards are made the same.
The ones I bought claim that while they are 3.3V, that they "tolerate' 5V, so I tested 2 of them, Rx and Tx on 5V and they both failed after a while.
That's why I bought some new ones.
When my projects are completed, I run them all on power supplies that I build. There is zero ripple and they are 5.2V at 1amp, which is more than enough.
The ONLY problem, right now, seems to be the Nano EVERY boards.
When my other projects, using the nRF24s on normal Nano boards, there was no problem at all.
I had an Rx/Tx running solidly for over 2 years.
So yesterday, the current test, using 2 EVERY boars (Rx/Tx) all was working perfectly as I just let them run, having the Tx sending every 1 second for the test, sending out a random number plus actual Temperature and Humidity.
But after about 7 hours or so, the communications broke, with no error messages at all!
It did do that near the beginning of the day, on the Rx module.
A simple power cycle of the nRF24 and reset the Nano EVERY worked.
But after the 7 hours, it was the Tx that stopped transmitting!
Again, a simple power cycle of the nRF24 and reset of the Nano Every got it working again.
It's now been working fine again for about 10 hours.
So today, I'm going to try an experiment. Since power cycling it seems to work, IF the problem is the nRF24 module itself, then I'm going to connect it to the 5V rail, but through a transistor so that I can use a digital pin on the Nano EVERY to power cycle the nRf24.
I'll first have this test triggered by touching a button on the Nextion display.
What I hope will work, is on touch, first the nRF24 will power down.
Then, I'll re-run the code to initialize it and see if this is enough to get the nRF24 working again.
But I do have my doubts. I highly suspect that the problem is with the libraries. I suspect that there is a possible stack overflow happening and/or perhaps something building up in memory after hours.
I'm also going to add the code that displays active memory available on the Nano EVERY board. This way, I can see if memory is being chewed up.
I don't write libraries, but I wish that someone would write a GOOD LIBRARY that will work perfectly on the EVERY board and without having to use the emulator option.
Oh well. Fun times. LOL 