Remote Control receiver - input source switching


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2004
    Location
    Madrid-Spain
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cesarman
    I just finish my. using part of this proyect.

    h t t p : //www.web-ee.com/Schematics/VSwitch/vswitch.htm

    the only part i change was the software, i use some ir RC5 library from this book Experimenting with the PicBasic Pro compiler.


    h t t p : //developersbooks.com/ebooks/viewbook/38/17/1.html

    now im working to add some OSD.

    i hope this help.
    I am sorry to say that I do have this book, it was my first one about PicBasic Pro, and there are no RC5 routines in it. Unless there is a new edition and they have been included. Can you check that?

    I have been looking for an easy to use RC5 library and haven't found any.

    Thanks in advance
    Carpe Diem

  2. #2
    Join Date
    Jan 2006
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    mmm, sorry you rigth only for sony protocols. no RC5, well the only basic compiler is proton. Version 3.X, has RC5 fuction. Tested

    Example

    Device = 16F877
    RC5IN_PIN = PORTC.0 ' Choose the port and pin for the infrared sensor
    DIM RC5_WORD as WORD ' Create a WORD variable to receive the data
    DIM RC5_COMMAND as RC5_WORD.Lowbyte ' Alias the COMMAND byte to RC5_WORD low byte
    DIM RC5_SYSTEM as RC5_WORD.Highbyte ' Alias the COMMAND byte to RC5_WORD high byte

    ALL_DIGITAL = ON ' Make all pins digital mode
    Cls ' Clear the LCD
    While 1 = 1 ' Create an infinite loop
    Repeat
    RC5_WORD = RC5In ' Receive a signal from the infrared sensor
    Until RC5_COMMAND<> 255 ' Keep looking until a valid header found
    Print at 1,1,"SYSTEM ",Dec RC5_SYSTEM," " ' Display the SYSTEM value
    Print at 2,1,"COMMAND ",Dec RC5_COMMAND," " ' Display the COMMAND value
    Wend

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. DTMF and PIC for Remote Control
    By doggitz in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 30th March 2010, 11:42
  3. Newbie remote control question?
    By Clodoaldo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th July 2009, 17:20
  4. Please help ? RF Remote Source code
    By sorasit46 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 14:40
  5. Remote control
    By Radiance in forum General
    Replies: 2
    Last Post: - 6th August 2003, 15:13

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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