Thanks for a quick reply MarkF.
As had trouble to make it to work with my assembly code, I have restarted to test with the simple code from "How to Mechatronis" from Mr. Dejan Nedelkovski's code to verify/understand the reason why.
Unfortunately it behaves the same way, only in direction from elder UNO to younger UNO as I have described in the previous post.
Here is the code ...
Note: Mr. Dejean Nedelkovski uses "Arduino Mega + nRF24L01" and "Arduino UNO/Nano + nRF24L01". I think the code is common in all platform.
Thank as lot.
Tony Truong
======
Transmitter Code
/*
* Arduino Wireless Communication Tutorial
* Example 1 - Transmitter Code
*
* by Dejan Nedelkovski,
www.HowToMechatronics.com*
* Library: TMRh20/RF24,
https://github.com/tmrh20/RF24/*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7,
; // CE, CSN
const byte address[6] = "00001";
void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}
=====
Receiver Code
/*
* Arduino Wireless Communication Tutorial
* Example 1 - Receiver Code
*
* by Dejan Nedelkovski,
www.HowToMechatronics.com*
* Library: TMRh20/RF24,
https://github.com/tmrh20/RF24/*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7,
; // CE, CSN
const byte address[6] = "00001";
void setup() {
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, address);
radio.setPALevel(RF24_PA_MIN);
radio.startListening();
}
void loop() {
if (radio.available()) {
char text[32] = "";
radio.read(&text, sizeof(text));
Serial.println(text);
}
}
Code language: Arduino (arduino)
=====