PIC driven transistor - smoothed signal edge - why?


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default PIC driven transistor - smoothed signal edge - why?

    Hello,

    I'm driving a transitor with a PIC; it is meant to control an IR led for a remote with a 38kHz carrier freq.

    Depending on what PNP or NPN transistor I use, the final signal edge is smoothed (green arrow).

    Clearly, the signal is much better with a PNP transistor (BC307b graph).

    Since both transistor suppose to be "complementary" and have identical specs, I don't understand why the edge (BC237 graph) is smoothed that way while using a BC237 NPN transistor.

    Any clue? Is this due to the IR-Led's capacity?
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2672&stc=1&d=121353203 4">
    Attached Images Attached Images  
    Roger

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi, Flotul

    Never heard of transistor parasitic capacities ??? ...

    Search Keyword is " Totem pole " ...

    Also, try to use a // capacitor ( 1nF) on your 1K2 res ... or a BAT85 ( Schottky ) diode ... in the right way to "pull off" electrons from the trans. base !!!

    You might see a litte enhancement.

    so, might we say it is a " Flatul Hence " ??? ... LoL !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    I don't think the Voltage waveform at the collector matters, since the LED operates from Current.

    According to the datasheet, the LED has 25pf capacitance. So when you turn off the transistor, that voltage can only dissipate thru the relatively small leakage currents.

    To allow the LED to discharge faster ... Placing a resistor across the LED would probably improve your waveforms, but it won't change the function and will only consume more current.

    A better indication of the Drive Current would be to measure the voltage across the 33 ohm resistor. Which should be very "square".

    DT

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    What kind of o'scope is this?

    Sound card based?

    The second example show that OR your base resistor is a bit too low OR the source can't give enough current to your transistor base OR you o'scope can't draw the wave properly.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Perhaps a resistor between the base and the emitter (around 2.2K) might help the transistor snap faster.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    What kind of o'scope is this?
    It looks like a Protek 220 ISA bus scope card which has very high sampling rates. If I'm right, the scope is not a limiting factor.

    And 21 cycles at 38kHz is ~550uS which is a typical burst duration for several IR protocols.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi, Dave

    This scope ... has already shown its limits with Flotul :

    We were offered a wonderful sample of demodulated "HF" ( LoL ... better to say Mid Freq ) signal, some posts ago ...


    Now, this waveform is perfectly correct and true ... and shows bipolar switching limits with unipolar supplies ...

    I also have samples of that ( but taken on an ... analog scope !

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    My scope is a "cheap" HANTEK DSO-220 USB modell

    I couldn't try Alain's suggestions up to now; don't have any Schottky diodes neither 1nF capacitors... will be bought and tested by tomorrow evening.

    My initial question was more about to understand the difference between both transistors since nothing else changes in the circuit.

    Quote Originally Posted by Acetronics
    so, might we say it is a " Flatul Hence " ???
    I wish this was true: I would bother you All again with a methane powered PIC project
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    My scope is a "cheap" HANTEK DSO-220 USB modell
    Interesting. It looks like it was copied from the Protek 220 which was an ISA card DSO capable of 20 million samples per second. Of course, the sampling rate will be much slower using USB. The GUI is identical to Protek's with the exception of the colored knobs.

  10. #10
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by flotulopex View Post
    My scope is a "cheap" HANTEK DSO-220 USB modell
    Let's be honest ... and use the tools for what they are intended to do ...


    I couldn't try Alain's suggestions up to now; don't have any Schottky diodes neither 1nF capacitors... will be bought and tested by tomorrow evening.
    Amateur ...


    My initial question was more about to understand the difference between both transistors since nothing else changes in the circuit.
    This is exactly the same feature : junction capacities to discharge ... a strong cut off is obtained by polarizing the base to - 2 to 3 volts ...
    just look at old "logic" schemes !!!

    I wish this was true: I would bother you All again with a methane powered PIC project
    Ah, la vache !!! ...

    have a Good evening ...

    Regards

    Alain
    Last edited by Acetronics2; - 16th June 2008 at 19:44.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  11. #11
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    Amateur, amateur...

    In the early 1900's, the very best professionals & engineers built the Titanic
    Roger

Similar Threads

  1. PIC conducting signal current when off
    By Viberer in forum Off Topic
    Replies: 0
    Last Post: - 28th May 2009, 17:27
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  5. 8 port Signal Loss Detector, possible to use a pic?
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th March 2006, 15:59

Members who have read this thread : 1

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