FREQOUT - PWM question


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Etcho View Post
    Thanks for all the help - I will look into doing it with PWM - The crystal I plan on using is 20MHZ (just to make sure - the crystals decoupling? caps should be around 22pf right?)

    One other thing which may be a tad off topic -

    I know I should go off the data sheet of the IR LEDs but I was wondering if either of you knew if the PIC would be strong enough to drive two IR LEDs in series or if they should be driven separately - one on each PWM pin or if I would need to use a transistor to drive them. The maximum current the PIC is supposed to source/sink per pin is 25mA but I was curious as to if it would be enough.

    I am not looking to have it pick up obstacles at a real long range maybe 3 - 6 inches tops.

    Thanks again for the help

    edit: thanks for the links mister e
    What's the forward voltage drop of the IR LEDs? If it's less than 2.5v each, yes, you can drive 2 in series. If it's less than 1.6v, you can drive 3 in series. However, total output will probably drop a bit. You might want to drive the gate of a MOSFET which in turn will drive the IR LEDs.

  2. #2
    Join Date
    Feb 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    What's the forward voltage drop of the IR LEDs? If it's less than 2.5v each, yes, you can drive 2 in series. If it's less than 1.6v, you can drive 3 in series. However, total output will probably drop a bit. You might want to drive the gate of a MOSFET which in turn will drive the IR LEDs.
    Well here is the data sheet to the LEDs-

    http://www.jameco.com/Jameco/Products/ProdDS/106526.pdf

    It says the forward voltage drop is usually 1.2V so I should be able to drive two in series along with a 150 or 200 Ohm resistor right?

    I just may not get a real far detection range.

    Thanks again for the help

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Etcho View Post
    Well here is the data sheet to the LEDs-

    http://www.jameco.com/Jameco/Products/ProdDS/106526.pdf

    It says the forward voltage drop is usually 1.2V so I should be able to drive two in series along with a 150 or 200 Ohm resistor right?

    I just may not get a real far detection range.

    Thanks again for the help
    Sounds like it's easily done, should be able to drive 3 or 4 in series without a problem. I think you're main problem will be ambient light and how to filter that out without killing your detection light.

  4. #4
    Join Date
    Feb 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Thanks again for all the help, the parts will get to my house next week - I will let you know how it goes.

Similar Threads

  1. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  2. Pull Up enabled and PWM question
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th September 2009, 08:21
  3. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  4. Hardware PWM Question?
    By jhorsburgh in forum General
    Replies: 1
    Last Post: - 18th August 2008, 03:07
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26

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