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

    Quote Originally Posted by erice1984 View Post
    *sigh* That is irritating....

    Fixed T1 and T2
    Yet again, another change.... am I the only one this happens to?
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    erice1984, few comments on your last schematic.

    a) NPN transistors are wrongly used (emitter should be grounded).

    b) PNP should have a base pullup resistor (4,7K will work).

    c) Diode D2 should be placed across emitter and collector of T4 to be of any use.

    d) Connector SL1 has two wires missing, since you will need ground and Vdd


    Al.
    All progress began with an idea

  3. #3
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I was thinking of replacing T1 and T2 with Optocouplers.

  4. #4
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by erice1984 View Post
    I was thinking of replacing T1 and T2 with Optocouplers.
    How about cleaning the power supply? it can also bring in Nonsense. better use a choke of say 1mH and definitely have a 0.1 ML C capacitor across the Vdd and Vss pins and very close to the chip.
    Ensure that the device is not close to high current carrying wires, neither the wiring parallel to such wires. If needed use a screened cable
    Regards,
    Sarma

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

  6. #6
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

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

    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.

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