CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

I need help for nRF24L01 code library

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
deda34



Joined: 08 Mar 2013
Posts: 10

View user's profile Send private message

I need help for nRF24L01 code library
PostPosted: Tue Apr 02, 2013 8:37 am     Reply with quote

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
temtronic



Joined: 01 Jul 2010
Posts: 9161
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Apr 02, 2013 9:35 am     Reply with quote

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
deda34



Joined: 08 Mar 2013
Posts: 10

View user's profile Send private message

PostPosted: Tue Apr 02, 2013 1:46 pm     Reply with quote

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.
temtronic



Joined: 01 Jul 2010
Posts: 9161
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Apr 02, 2013 5:33 pm     Reply with quote

Are you powering the 4550 with 5v or 3 v?
If 5v then you have hardware issues...aka magic smoke
deda34



Joined: 08 Mar 2013
Posts: 10

View user's profile Send private message

PostPosted: Wed Apr 03, 2013 10:52 am     Reply with quote

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.
amjad_alahdal



Joined: 19 Feb 2013
Posts: 50

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Wed Apr 03, 2013 11:26 am     Reply with quote

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
deda34



Joined: 08 Mar 2013
Posts: 10

View user's profile Send private message

PostPosted: Wed Apr 03, 2013 12:03 pm     Reply with quote

Hi!
My modules are like this:
http://www.ebay.it/itm/NRF24L01-Wireless-Transceiver-Module-2-4GHz-Arduino-x1-/320771905186?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item4aaf7ed6a2&_uhb=1

My main problem is that in the routine the compiler report nine errors, these are:

Attempt to create a pointer to a constant

What could be the cause?
Thank you very much for help!!!!!!!
D.
amjad_alahdal



Joined: 19 Feb 2013
Posts: 50

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Wed Apr 03, 2013 12:13 pm     Reply with quote

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
deda34



Joined: 08 Mar 2013
Posts: 10

View user's profile Send private message

PostPosted: Wed Apr 03, 2013 12:33 pm     Reply with quote

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!! Very Happy
D.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group