Combining nRF24L01+ with USB - A Remote Control Application


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,373
    Thumbs Up
    Received: 87
    Given: 183
    Total Downloaded
    5.30 GB

    1 Not allowed!

    Default Combining nRF24L01+ with USB - A Remote Control Application

    Let me say up front that all that follows is built on Barak Dar's excellent work. None of the following would have been possible without the code for nRF24L01+ that he has shared.

    This project is a remote control for an PC media player app, Foobar2000. A 18F2550 or 18F14K50 is configured as a USB keyboard. In response to button press data from the remote, scan code sequences are presented to the PC to invoke and control the app. Foobar2000 hot key programming is shown in the attached jpg. Power is provided by the USB port.

    The remote device is a 16F690, with 4 buttons, STOP, NEXT, Vol UP and Vol DOWN. This could be expanded to 8 or 9 with an external pullup on one of the buttons. Internal weak pullups are used by buttons. Power is provided by 2 x AAA cells.

    In this case the remote is configured as transmitter and the local (PC side) as a reciever. This configuration allows the remote to sleep except when woken by one of it IOC lines. In this mode data is unidirectional.


    I used the new stack because it's all-round better.

    pro's

    Microchip bug fixes last Proton version
    Descriptor format - similarity to MicroChip and many other PIC compilers
    interrupt driven USB "stay alive"


    Cons

    Descriptor format - conversion - it is not a trivial task to convert from old to new
    No CDC support
    Timer 1 used for "stay alive" - as this can be turned off, it realy isn't a con.


    NRF_RX_14K50_USB_FOB.zip
    NRF_RX_2550_USB_FOB.zip
    NRF_TX_690_USB_FOB_ORG.zip

    For the future I'd like to do wireless RS232 to an USB emulated COM port and wireless RS232 to RS232.

    George
    George.

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,136
    Thumbs Up
    Received: 66
    Given: 26
    Total Downloaded
    3.61 GB

    0 Not allowed!

    Default Re: Combining nRF24L01+ with USB - A Remote Control Application

    Hi George,

    this looks very nice indeed and very well documented too!
    one question regarding the USB devices: I don't see oscillators in the circuits

    regards
    Harm

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,373
    Thumbs Up
    Received: 87
    Given: 183
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: Combining nRF24L01+ with USB - A Remote Control Application

    Hi hadv215,

    Thanks. Sorry, force of habit from using Proteus (it doesn't simulate crystals). Internal 8Mhz on 690, 12Mhz crystal on 14K50 and 20 Mhz crystal on 2550.

    Maybe the documentation was a little ott but in the case of POC there are 3 pieces of software and 2 pieces of hardware and nothing discernible happens until they all work. I liked the pinout (stole it from a Mikro project). I'll use it all future projects.

    BTW How did you end up with the odd handle?

    George
    George.

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,136
    Thumbs Up
    Received: 66
    Given: 26
    Total Downloaded
    3.61 GB

    0 Not allowed!

    Default Re: Combining nRF24L01+ with USB - A Remote Control Application

    Quote Originally Posted by towlerg View Post
    BTW How did you end up with the odd handle?
    George
    Please refresh my mind, I can't recall the subject ;-)
    Regards
    Harm

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Combining nRF24L01+ with USB - Proof of Concept
    By towlerg in forum Projects discussion
    Replies: 1
    Last Post: 26th April 2015, 08:47
  2. IR Remote Control
    By teo in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 10th May 2014, 21:04
  3. [SOLVED !] Remote Control Mute
    By mikedownunder in forum Proton Plus Compiler v3
    Replies: 12
    Last Post: 20th March 2012, 14:58
  4. Creative IR Remote Control
    By babu biri in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 28th February 2009, 06:07
  5. I.R. Remote control Receiver
    By stefano in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 5th December 2008, 08:34

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts