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.
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
Best VOC sensor for detecting a wide range of VOC's?
Hardware • 26 Oct 2023, 23:59 • NeverDie 18 Nov 2023, 01:41