PICs and harsh environments


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Okay, made sense about the Transistors. I changed the NPN to PNP because they were seemed better for the job.

    I also added 10k pull-down resistors to the emitter-PIC I/O wire.

    Thanks for input
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Seems you have something workable now

    You can safely remove R1.
    Steve

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

  3. #3
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    okay, I figured why am I using 2 more resistors than I need to. I took your advice changed programming a little and used the internal pullups, check it out.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default T3 - t4

    I don't think those tr's will work like that, you need 12v on base to turn off and PIC pins only go to 5v. Need to have PIC drive PNP to drive base of NPN or make tr low side switches of PNP.
    don
    amgen

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


    Did you find this post helpful? Yes | No

    Default

    true...
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    I never did it, but I think It could work. Use a pull up between tr base and 12V, then a resistor in serie with the PIC. In your software, you set GPIO to 0, and later you play with TRIS to toggle your pin. Set to input, the tr should be off, Set to Output, tr should be almost ON. I would bet something like 10K pull-up, and something like 100-1K match could do.
    Steve

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

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