How to read IRDA data from cell phones ?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Actually sounds like a good project to me Roger. Let us know how you get on. How do you propose to write the data to the PIC once the IR data has been received?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gringobomba14 View Post
    Actually sounds like a good project to me Roger. Let us know how you get on. How do you propose to write the data to the PIC once the IR data has been received?
    I tried to do a thing awhile back where I saved the data to an eeprom first, then re-wrote over myself while I was running, take extra special care to keep the region where my 'overwriting' code was located exactly the same between the old and new version of the firmware....but not over an IR link...
    Never did get it to work right...

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    I've taken it the simple way.

    According to the PIC's array capacity, I can store 2 arrays of 40 bits information coming from a teaching remote. Every incomming signal is then measured on a timed base and corresponds to a bit. The 40 bits limits is because I never saw an ir pattern sending more than 40 bits of information.

    Fourty "HVar(n)" variables get the logic 1 signal and store for how long it stayed like this; then comes the next logic 0 signal ans there again, I measure the time it stays low and stores its result in fourty "LVar(n)". And so on for 39 (n) more variables.

    The result is store in the program memory (its access is much faster than a data-eeprom one) with regard to the actual program space (avoid any conflict). I tried to do the same with a data-eeprom but the timing was far too slow.

    To send the ir signal, I use a loop calling every eeprom position one-by-one back and pause (wich means the ir led is emitting) as long as needed and go to next bit and do the same.

    The rest is just finalizing the ergonomy of the gadget which I'm working on currently.

    My prototype works splendid. I could even make usage of it's internal 8MHz clock source and have still a good incoming signal sampling rate.

    I schould get some PCB from a manufacturer next week so I'll have a good idea how this remote will work in hands of friends and colleagues.

    Today, the remote looks like this:
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2789&stc=1&d=121727970 3">
    Attached Images Attached Images  
    Roger

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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