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

    Interesting Idea, As far as high power wires, this Circuit will be located under the dash, slightly to the left of the steering wheel - about 4" from the fuse box

  2. #2
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    schematic .
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Why T4 is PNP, but T3 is NPN?

    Opto-Coupler will not work as-is. You should tie collector to VCC, emitter to your PIC I/O + Pull-down. Or variant of it, emitter to GND, collector to your I/O with a pull-up. Internal ones, if available on these pins, could work. Assuming the signal are 12V (or something over 5v), a simple current limiting resistor, or voltage divider could also work.
    Steve

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

  4. #4
    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  

  5. #5
    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.

  6. #6
    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  

  7. #7
    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.

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