Sign up ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

I am trying to connect an nrf24L01 module to the arduino yun and it prints are gibberish.

this is my code:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 3); // RX, TX
void setup() 
{ 
Serial.begin(9600); 
while (!Serial) { 
;// wait for serial port to connect. Needed for Leonardo only 
}

Serial.println("Goodnight moon!");
mySerial.begin(115200); 
mySerial.println("Hello, world?");}
void loop() { 
if (mySerial.available()) 
    Serial.write(mySerial.read()); 
if (Serial.available()) 
    mySerial.write(Serial.read());
}


This is the output:

Goodnight moon!0'ÚšÚ‚ÚŠ¢Ú:…ѕ݅å�šÑ…ÉÐÕp complete.

It should be:

0;0;3;9;0 Gateway startup complete.

Not sure about the numbers but I'm sure about the text

share|improve this question
    
Quick question: do you have a link to the nrf24L01 you have - or at least a model number or something? –  Mlagma Jun 1 at 19:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.