View previous topic :: View next topic |
Author |
Message |
deda34
Joined: 08 Mar 2013 Posts: 10
|
I need help for nRF24L01 code library |
Posted: Tue Apr 02, 2013 8:37 am |
|
|
Hi all!
I'm writing to ask you some questions about the nRF24L01 code.
I need a simple library to use this module; I tried to use this:
https://www.ccsinfo.com/forum/viewtopic.php?t=47351&highlight=nrf24l01
But it's too long and difficult for me.. So I found this:
http://www.ccsinfo.com/forum/viewtopic.php?t=36270
But I don't now if this library works well. So I ask you a simple code to use this module, or an example code to implement the first code in the main program (I need to send an 8 bit number).
Thank you very much for reply!!!
David ![Smile](images/smiles/icon_smile.gif) |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9170 Location: Greensville,Ontario
|
|
Posted: Tue Apr 02, 2013 9:35 am |
|
|
First, you must tell us what PIC and other hardware you have. Most 'peripheral devices' these days are 3 volt, and regular PICs are 5 volt, so you can't simply connect them up. You have to read the datasheets otherwise you can easily blowup the chips!!
Having scanned those posts, I can't say that the code (any of it) truly works and without the devices, can't test the drivers.
Get 'Googling' to find more information.Using the proper 'keywords' should allow you to find what you need.
hth
jay |
|
![](templates/subSilver/images/spacer.gif) |
deda34
Joined: 08 Mar 2013 Posts: 10
|
|
Posted: Tue Apr 02, 2013 1:46 pm |
|
|
Hi temtronic!
I use 2 board with PIC18F4550 mounted on. I haven't got any hardware issues, I now that the module needs a power supply of 3.3 volt... My problem is the driver code...
So I need or an example code for the driver on the first link, or a simpler code.
Thank you very much for rapidly reply!!
D. |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9170 Location: Greensville,Ontario
|
|
Posted: Tue Apr 02, 2013 5:33 pm |
|
|
Are you powering the 4550 with 5v or 3 v?
If 5v then you have hardware issues...aka magic smoke |
|
![](templates/subSilver/images/spacer.gif) |
deda34
Joined: 08 Mar 2013 Posts: 10
|
|
Posted: Wed Apr 03, 2013 10:52 am |
|
|
No, I'm powering the 4550 with 5v becouse it's the only way to power it!! (see datasheet) .Signals from PIC are modulate by a voltage divider that provide to convert 5v signals in 3,3 v signals, and then the nRF24L01 recive this signals. But it is NOT necessary (see the nRF24L01's datasheet)!
I repeat: I haven't got any hardware issues, i need just an example code for the code on the first link.
Thanks
D. |
|
![](templates/subSilver/images/spacer.gif) |
amjad_alahdal
Joined: 19 Feb 2013 Posts: 50
|
|
Posted: Wed Apr 03, 2013 11:26 am |
|
|
if you are using something like this.
https://www.sparkfun.com/products/691
I have tried Eduardo library. I worked so fine. try Eduardo library as .h file.
and then, go to the last posting and check out the last two programs about the sender and the receiver.
Thank you |
|
![](templates/subSilver/images/spacer.gif) |
deda34
Joined: 08 Mar 2013 Posts: 10
|
|
![](templates/subSilver/images/spacer.gif) |
amjad_alahdal
Joined: 19 Feb 2013 Posts: 50
|
|
Posted: Wed Apr 03, 2013 12:13 pm |
|
|
Ok,
here is what you should do.
go to
http://www.ccsinfo.com/forum/viewtopic.php?t=47351&highlight=nrf24l01
the library of the device is already there.
and then go to the last post.
I'm using PIC 18F2455
dezso
wrote down two examples about how to write 1 , 2 , 3 , 4
and receive it
I have modified the programs to send ACK and other things.
Break a leg ![Very Happy](images/smiles/icon_biggrin.gif) |
|
![](templates/subSilver/images/spacer.gif) |
deda34
Joined: 08 Mar 2013 Posts: 10
|
|
Posted: Wed Apr 03, 2013 12:33 pm |
|
|
Ok amjad_alahdal!
Thank you very much!
Tomorrow I'll try it and then I'll let you know if it worked.
Thank you again!!
D. |
|
![](templates/subSilver/images/spacer.gif) |
|