@mfalkvidd Thanks for the help, well, it looks like I have to use a repeater...
Anyways, if someone can come up with an explanation, please share!
Posts made by vobi
-
RE: NRF24 specific settings
-
RE: NRF24 specific settings
@gohan Thanks for the answer, but that was not the question.
BTW, already doing that, too. -
NRF24 specific settings
Hello Guys!
I still having issues with my nrf24 ranges...
Anyway, I have some specific questions:
How can I change CRC length (I guess default is 16, so maybe to 8?)
How can I change (limit) the maximum payload size? I dont use custom payloads, so setting it to max 7-8 should be good. (Or mys uses dynamic payloads?)
I hope this could give me better ranges (https://hallard.me/nrf24l01-real-life-range-test/).I have found all these settings in RF24.h but Im not that experienced programmer, to know how all these come together (I can use PA levels, and data rate, as there are examples for that).
What are these other features, how can (should I) I use/check/change them?#define RF24_LNA_HCURR (0) - (NON P model something?)
#define RF24_RF_DR_LOW (5)
#define RF24_RF_DR_HIGH (3) (is this default?)
#define RF24_RF_PWR_LOW (1)
#define RF24_RF_PWR_HIGH (2) (is this default?)Any other idea on the software side please?
(Already using 250k, PA MAX...)Thank You!
-
Breadboard PSU + Mega Serial GW + NRF24L01+PA+LNA?
Hello Guys!
I have been Googling for the last 2-3 hours, but didn't find a definitive answer, so I hope You guys can help me!
My nrf24+pa-lna module has arrived, and I plan to connect it to the gateway (so maybe I don't need a repeater node anymore).
Right now, on the GW I have the nrf24l01+, that is powered by the Mega.
The Mega is powered through usb from the Pi, that is the serial controller.
If I see correctly, the new, pa-lna module needs 150+mA, so it should not be powered from the 3v3 pin of the Mega.
But I have a "standard" YwRobot Breadboard PSU.So, the question is: Do I need to connect a GND on the Mega and a GND on the Breadboard PSU? As stated here:
http://blog.blackoise.de/2016/02/fixing-your-cheap-nrf24l01-palna-module/Do I need, or is it advised to power the Mega with the Vin pin, from the PSU? (USB must be attached too).
...or should I do it some other way I didn't think about?
It is strange that I was not able to find general useful information about how to use Breadboard PSU and Arduino (except nano) together.
Thanks for Your time!
-
RE: PIR example doesn`t wake Mega 2560?
According to Mr. Nick Gammon, thats not the case (or I`m missing something):
Running from a 9V battery through the "power in" plug, it draws about 50 mA.
Running on 5V through the +5V pin, it draws about 49 mA.
(Note: around 68 mA on a Mega 2560 board)
Now we'll try putting it to sleep:
Sketch B#include <avr/sleep.h> void setup () { set_sleep_mode (SLEEP_MODE_PWR_DOWN); sleep_enable(); sleep_cpu (); } // end of setup void loop () { }
Now the Uno draws 34.5 mA. A saving, but not a lot.
(Note: around 24 mA on a Mega 2560 board)
http://www.gammon.com.au/power -
RE: PIR example doesn`t wake Mega 2560?
I have tested it, the interrupt indeed works fine.
So yes, because there is no sleep, it cannot be interrupted.
I still don`t understand why it cannot sleep.
And IMHO the interrupt should break the not-so-sleep-but-wait cycle anyway.
What do You think? -
RE: PIR example doesn`t wake Mega 2560?
@scalz
Thanks, I will try it, and report back. -
RE: PIR example doesn`t wake Mega 2560?
Then what does it do when sleep is issued?
Because the defined sleep-time still has to pass...and it does "nothing" till that, and that something cannot be broken by interrupt?
What should be the good method to catch an interrupt, or a motion, without going thru the main loop crazy fast?
Why cant it sleep? -
RE: PIR example doesn`t wake Mega 2560?
So, I have tested the following:
Sketch on Mega 2560,
pin 3 with int1 - not working
pin 3 with int5 - not working
pin2, int0,4 - not working
pins 18-21, (digitalPinToInterrupt(DIGITAL_INPUT_SENSOR)) - not working
Sketch on UNO - works as it should!
So definitely something strange going on with 2560s interrupts.
Any advice? -
RE: PIR example doesn`t wake Mega 2560?
Thanks, I will test the sketch on UNO.
-
RE: PIR example doesn`t wake Mega 2560?
@mfalkvidd
I follow exactly the example, so D3.
But D2 also doesn't work. -
MyController on Raspberry Pi dies when serial gateway disconnects
Hi all,
Anyone who runs MyController on Raspberry Pi could please check if the Controller service dies when You phisically disconnects the Gateway USB cable? It looks like this happens in my case.
Any advice how can I overcome this? Maybe check every x minutes if Controller still alive?Thanks You!
-
PIR example doesn`t wake Mega 2560?
Hello all,
I just wired and tested the Motion Sensor example, (https://www.mysensors.org/build/motion),
but my Mega 2560 wont wake from sleep because of the interrupt when motion is detected.
It always finishes the sleeping. I serialprinted the sleeps output, it always states -2.
The motion sensor works, I can see that, when I shorten the sleep time (tested with 1 sec).
I also tested the output of the PIR, it generates more than 3.7 volts.
I`m using the latest library and IDE. I made my best to read all connected forum posts but didn't find a solution.
Anyone please can check it if it works for him?
Any help would be appreciated!
Thanks!