IR Remote Control Issues


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    Samsung uses 38kHz and sends a 32-bit code similar to the NEC protocol but with a shorter lead-in pulse and with the bits interpreted differently. Samsung uses a 4.5mS start pulse followed by a 4.5mS space.
    Sounds exactly like what i've observed. Do you know of a page on the net somewhere that has more detailed info on the protocol they used? I havn't been able to find any info on it.

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default What IR receiver did you use?

    When you PIC-scoped the remote what receiver did you use? What is the range and sensitivity using the standard tv remote control and this receiver?

    Then we can get an idea of the FQ used. If you have good distance with the remote then it must be your LED that has a major output power problem. It might be burnt due to over current along the evolution chain.

    Have you tried to move one thansistor to the base of the other, so you do all the mixing on the base.

    Maybe just loose both transistors and sink current with the PIC and make a software mixer by turning on and off HPWM (and connect the led there with a resistor)

    what partnumber is the led?
    what part number is the receiver you have used?

    /me
    Last edited by Jumper; - 27th August 2007 at 15:04.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    Sounds exactly like what i've observed. Do you know of a page on the net somewhere that has more detailed info on the protocol they used? I havn't been able to find any info on it.
    I don't recall seeing any detailed description. There is a simple description at http://www.techdesign.be/projects/011/011_waves.htm and there are CCF codes on RemoteCentral.com and at http://ir.premisesystems.com/. There are a few detailed descriptions of the NEC protocol. It was the first and was copied with minor changes by many others. Here's a datasheet for an early NEC encoder chip - http://davehouston.net/Nec6121.pdf

    EDIT: BTW, I find it easier to record the codes as .wav files using a soundcard. This way you can use a wave editor to view them. See http://davehouston.net/learn.htm

    OTOH, if you sample with a PIC using a phototransistor, you can get the carrier frequency and eliminate any guesswork.
    Last edited by dhouston; - 27th August 2007 at 15:48.

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,

    This technique should help you get a substantial improvement; instead of gating the LED using HPWM and a data pin, use the data pattern to control the HPWM pin itself (keep the HPWM running all the time, and just turn the HPWM pin to an input wherever you dont want a transmission); Darrel had suggested this during an earlier post pertaining to X10 transmission and it worked like a charm.

    If nothing else, it would at least eliminate the drop across one transistor, and you would save a pin as well. You would also find the waveform far more consistent with the original remote.

    Regards,

    Anand

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Ok, here's what i've done since the description in my original post:

    - Changed the LED's resistor to 10 ohm
    - Removed one transistor, turning on and off PWM to control the LED
    - Changed the frequency to 38kHz
    - Changed the duty cycle to 25%
    - Improved the timing using TMR0 for timing instead of PAUSEUS

    The end result is an improvement, but not spectacular. The range is improved, however I still need to point the LED pretty much directly at the TV for it to work - Whereas i can point my normal TV remote anywhere in the room and it will work (even pointing directly away from the TV).

    Perhaps I need some kind of diffusing material in front of the LED? I'm not sure what to use tho. Or maybe I need to get an LED with a better viweing angle, but i'm not sure that this is the case, unless my tv's remote has a 360 degree viewing angle - lol. I assume that my tvs remote is simply powerful enough to bounce off the walls and eventually find its way to the tv no matter what direction i point it.

  6. #6
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Looking at the schematic again, I dont think you are getting enough drive to the transistors.

    Either change the transistors to PNP types and invert your gating signal or put the transistors where the LED is and the LED where the transistors are so that the transistors are sinking current rather than sourcing it.

    You may also need to reduce the value of the base resistors to get more drive.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  7. #7
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post

    Perhaps I need some kind of diffusing material in front of the LED? I'm not sure what to use tho. Or maybe I need to get an LED with a better viweing angle, but i'm not sure that this is the case, unless my tv's remote has a 360 degree viewing angle - lol. I assume that my tvs remote is simply powerful enough to bounce off the walls and eventually find its way to the tv no matter what direction i point it.
    I dont think any external diffusing material would help. A lot of remotes have the LED body itself sticking out of the remote. You're right about the signal bouncing off objects; IR does tend to reflect well, although the signal strength must be dropping signaificantly after every refelction.

    I suspect now its just a matter of getting the frequency and/or duty cycle right. You could also try 2 LEDs in series, pointing in a slightly divergent manner to give you a wider coverage.

    Regards,

    Anand

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


    Did you find this post helpful? Yes | No

    Default

    Are you sending single or multiple copies of the IR? Most of the receivers need to see multiple copies to set their AGC and receive threshold so most protocols send more than a single copy.

  9. #9
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Excellent! Working perfectly now

    Switching the transistor and LED around so that the transistor is sinking current, and changing the bias resistor to 1k did the trick (Thanks keithdoxey and ardhuru)

    It now has pretty much the same range and capability as my regular TV remote.

    Thanks very much to all for your help.

    My next step is to get it working with my Receiver. Getting that working should be much smoother now tho. I can actually change the PWM frequency on the fly by writing to the appropriate registers, so even if my other equipment works on different frequencies it shouldn't be a problem.
    Last edited by Kamikaze47; - 28th August 2007 at 19:32.

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. Plz help in completing RC-5 IR remote lamp dimmer project
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd April 2008, 08:44
  3. No one-way approach to learning ir remote control frequencies
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd June 2007, 13:26
  4. IR Remote Control
    By mychangl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th March 2007, 07:01
  5. Digital Camera Controller
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th October 2005, 01:08

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