RC India

General Topics => Beginners Zone => Topic started by: RAHUL QUADY on September 20, 2017, 12:18:14 PM



Title: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 12:18:14 PM
Hey guys I am working with a new arduino wireless project,which uses nrf24l0 modules,for communication.The thing is I need to download a special r24 library from net,an I did.When ever I compile my code,I get an error.I even tried to extract files from the zip file,to the library folder.But still I am getting the same error.Just tell me how should I need to include the library into my code.


Title: Re: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 12:28:05 PM
here are few screenshots


Title: Re: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 12:30:01 PM
this is my code


Title: Re: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 12:31:41 PM
this is my code(not mine exactly,it's a reference from youtube)


Title: Re: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 12:32:39 PM
compilation error


Title: Re: Arduino libraries
Post by: saikat on September 20, 2017, 09:07:40 PM
your library folder should be named exactly as the
name in the #include statement(without the .h) you have named it something else

by the way your code shows to include two library - are you sure
you want that

i am not an expert but try and see...


Title: Re: Arduino libraries
Post by: RAHUL QUADY on September 20, 2017, 11:36:00 PM
I've corrected the  mistakes,Iam still not getting anything. :help:


Title: Re: Arduino libraries
Post by: prasad.chodankar on September 22, 2017, 01:35:31 AM
I guess the project that you are writing about is the one shown by Dejan Nedelkovski, in his NRF24L01 Tutorial on YouTube. (i can see the same code, but with comments removed). The code seems to be fine... The problem is with the name of the library file that you have added. You need to remove the "-" that is there in the name and then add the Library in Arduino.


Title: Re: Arduino libraries
Post by: rastsaurabh on September 23, 2017, 10:51:56 AM
there is no easy way.....
1. first please read on how to include library ( google it)
2. location and naming are of importance
3. it MAY also happen that you will keep getting errors unless you remove and include it again
read and try .... read and try