Interrupt on change for IR input - is it a good way to go


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Interrupt on change for IR input - is it a good way to go

    The IR sig is " clean " for the most part , the random signal it seems to pickup are mainly from lights around ,

    i have not done that much with interrupts say more than just check a timer has expired flag , i am also short of program space , but ill have to work around that issue . will remove other code routines to see if the COI detected ok

    The get IR routine has pulsin_max set to the max time of valid pulse length before timing out, which helps but you still need to go call the routine very regular , and thats killing me

    I do have 2 other items on a makeshift SPI bus that will eventually i like to use a pin for interrupts , instead of polling a register flag , but will have to wait till i have a bigger pic chip to arrive( 16F1825) , with the new programmer

    i am assuming that i can services other interrupt routines in the same way as what i am looking at with the IR routine on IOC ?

    managing multi interupts from 2 or more pins would be something new also to me for pics , so code ref examples on the best way to do this would be Very helpful.

    Il go get DT_int14 routines and study them a bit more today

    The learn curve continues


    Cheers

    sheldon

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: Interrupt on change for IR input - is it a good way to go

    IR tends to be very clean, especially so if you use a resistor/cap as Anand suggested.

    It's been several years since I did a lot of hands on testing but sunlight and some old-line fluorescent tubes created problems. I've never tested with CFLs but suspect they could cause a lot of problems if their switching power supply uses a frequency that's a near multiple of the IR carrier frequency.

  3. #3
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default Re: Interrupt on change for IR input - is it a good way to go

    In my experience the shielded ones (some sort of aluminum shield with a small window) are much less noisy
    The ones I use mostly come from old VHS decks or TV's

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