38Khz IR carrier - best way to turn it on and off


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159


    Did you find this post helpful? Yes | No

    Default Re: 38Khz IR carrier - best way to turn it on and off - SOLVED

    Thanks Everyone!

    It worked!

    The answer was a pull down resistor. It got rid of that slope. I tried a few, and worked out that 4.7K was the highest value I could use. That gave me a final voltage about 4.2V which should be fine.

    Then I had to play with the frequency I specified to get exactly 38 pulses in 1mS. Even though the scope's measurement function still reports it as 38.46KHz - I told you it was a cheap scope!

    Here are two images of what I have now.

    Thanks again!

    Andy

    Attachment 8114

    Name:  IR5.JPG
Views: 977
Size:  78.3 KB
    Attached Images Attached Images  
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: 38Khz IR carrier - best way to turn it on and off

    - I told you it was a cheap scope!
    the scope is actually correct.

    38.462KHz is as close as you can get to 38KHz hpwm with a 4MHz osc

  3. #3
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159


    Did you find this post helpful? Yes | No

    Default Re: 38Khz IR carrier - best way to turn it on and off

    Quote Originally Posted by richard View Post
    the scope is actually correct.

    38.462KHz is as close as you can get to 38KHz hpwm with a 4MHz osc
    I'm using the 8Mhz internal oscillator. I'm curious how you figured that out though, could you educate me?

    What if I used a 10 or 16Mhz crystal? I have both on hand.
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: 38Khz IR carrier - best way to turn it on and off

    search the forum for PicMultiCalc by mistere

    @8m you can get 37.736 KHz , 38.462 KHz
    @16m 38.095 KHz , 38.462 KHz
    @10 37.879 KHz , 39.063 KHz

Similar Threads

  1. How to setup 38kHz PWM with PIC18F1330
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 7th March 2015, 12:35
  2. 38Khz Modulator
    By Gord11 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th September 2011, 08:14
  3. Turn me on
    By AvionicsMaster1 in forum General
    Replies: 8
    Last Post: - 16th November 2010, 14:04
  4. turn-off lcd and turn-on again
    By mehmetOzdemir in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2009, 12:57
  5. Generated square wave 19Khz and 38Khz
    By blinkstar88 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th August 2007, 16:40

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