0

nrf905\ nRF905-All-In-One-Shield\ RadioHead-master\ RadioHead\

None any of them are compiled with their examples without getting errors.

Error message:

nRF905_RX.ino:4:20: fatal error: NRF905.h: No such file or directory
compilation terminated.
Error compiling.

Libraries used:

Elechouse RadioHead Github RadioHead Doxygen zkemble/nRF905

1

The errors you were getting when you compiled was because if the libraries were extracted straight to the Arduino library folder from the .zip, the file path becomes too long for the compiler to find it.

So what you need to do is to create a new folder in the libraries folder for each library.

Note: you cannot do the standard libraryName\src\foo.cpp as this seems to give errors for these libraries (in that it does not find them).

What you need to do is to make a file in the libraries directory; for the zkemble one you can create a main folder called nRF905, then take the files under nRF905/arduino/nRF905 from github and place them in the folder created earlier. It should look like this: enter image description here

You should repeat this for the Elechouse one as well as it solved the problem too. i.e.

  • C:\\...\libraries\NRF\examples\
  • C:\\...\libraries\NRF\NRF905.cpp
  • C:\\...\libraries\NRF\NRF905.h
  • C:\\...\libraries\NRF\keywords.txt

Also of importance is that once you have the library from Elechouse compiling you need to open up the .cpp file and go to line 16, where there is

PROGMEM unsigned int freq_tab[10] = {

and to this add const, like so:

PROGMEM const unsigned int freq_tab[10] = {
  • thanks alot I did what you said ,actually most of the examples give no errors , but there are others give anyway I am now satisfy with this and I tried with a couple of a code (transmitte and recieve ) no errers was in transmite one and the serial monitor showed the right things but the problem was in the recieving side , the Rx led didnt lighting on ’ and not any data in the serial monitor. these are the codes ( transmitte , recieve): – Salam Jul 9 '15 at 9:49
  • sorry , it cant be sending , but they are the examples from "RadioHead" library ,, nrf905_client ,,, nrf905_server ... – Salam Jul 9 '15 at 9:53
  • @Salam - first off, glad it worked. I would recommend posting a new question here. And then I would recommend you open an issue on the RadioHead github page so you can bring it to the attention of the libraries author, he might also be able to give you a accurate answer. I am also on a phone at the moment so can't do much. – RSM Jul 9 '15 at 10:29
  • I will do that in sha`a Allah .. thanks again ^^ – Salam Jul 9 '15 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.