about Arduino + NRF24L01 need help please.
-
Hi,
I am using Arduino + NRF24L01, got some questions:- how to set the nrf24l01 transmitter to send the same message a few times (say 5 times) and then stop (just do nothing)?
- how to get NRF24L01 two way works according to design planning, in my case, I like to get:
- nrf24l01 transmitter A send command and let nrf24l01 transmitter B turn on a LED for 1 second, and then send feedback to nrf24l01 transmitter A;
- nrf24l01 transmitter A send next command and let nrf24l01 transmitter B turn on a LED for 2 seconds, and then send feedback to nrf24l01 transmitter A;
- nrf24l01 transmitter A send next command and let nrf24l01 transmitter B turn on a LED for 3 seconds, and then send feedback to nrf24l01 transmitter A;
untill 5 seconds.
are there any example or sketch clue please.
Thanks
Adam
-
Welcome to the MySensors forum @llasking
If what you are describing is all you need, you might be better off using plain nrf24 communication instead of MySensors.
But if you decide to use MySensors, these sketches should be useful:
- https://www.mysensors.org/build/relay - replace the relay with a led and you've got "transmitter B".
- https://www.mysensors.org/build/binary - if you want transmitter A to send when a button is pressed.
https://www.mysensors.org/download/sensor_api_20#sending-data describes how to send and receive MySensors data.
Info on what MySensors is designed for: https://www.mysensors.org/about/iot
-
@mfalkvidd said in about Arduino + NRF24L01 need help please.:
If what you are describing is all you need,
Thank you mfalkvidd.
I picked mysensors cause of I used quite few of different sensors in my projects. the NRF is just for controlling need be solved firstly.
BTW, are there any NRF24L01 specialized forum please?
Best
-
I'm not aware of any specific forums, but https://github.com/maniacbug/RF24 and https://github.com/nRF24/RF24 might be useful.
-
@llasking Have a look on the arduino forum or github - I still use the older tmrh library for point-to-point on things made before I changed over to mysensors. There is also a nrf24-lite library as well, but I have never used it.