This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF8001 + PIC

Hello every boby,

I'm a newbie in PIC programming and I hope something could help me to start interfacing the nRF8001 with a PIC. My schematic is already done but I don't know how to begin the code. Are there some code examples that I could use ?

Thank you

  • Maybe you should look into the nRF51822 instead? Then you would not need to interface two chips.

  • Unfortunately none of the PIC examples that I have seen are open source. However it is fairly easy to port the nRF8001 library to the PIC24 or the PIC18. I have been considering the Pinguino PIC18 platform as a easy way to port the Arduino SDK of the nRF8001 to the PIC.

    Use the porting guide in the nRF8001 SDK in Github.

    Steps to do the porting:

    1. Take care of the datatypes Typedefs for uint8_t , uint16_t, int8_t and int16_t etc. for the PIC
    2. Port/Re-implement the SPI driver.
      • Key points: nRF8001 is LSBit first and MODE0 SPI
    3. Port the ACI library of the nRF8001
      • The library is portable C code so it should port directly to the pinguino

    I think this is easiest to do on the Pinguino, the Pinguino is a little different from the Arduino as it only supports C but that should make it easier.

    Let me know if you need more help on your Pinguino + nRF8001 project.

Related