Device Resets / erratic operation - 16F88


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Location
    Northport Alabama USA
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Few observations.

    Diode should go in parallel with your Relay coil (pin 86/85). Something like
    http://terpconnect.umd.edu/~toh/ElectroSim/Relay.GIF

    It's a good idea to keep the relay as far as possible of the PIC, and not a bad idea to place a 0.1uF + something like 22-47uF close to your relay +12V line. Some also place a small capacitor across the relay coil, and some suggest to install a capacitor across the relay contact (kinda snubber), worth a try.

    There's something funky on your design about NPN-PNP connection (at pin 10)

    How do you supply the Pos sensor? From your voltage regulator or from the 12V line?

    I would suggest you to tie all unused pin to gnd, and set them as input.

    Mode switch... i find the resistor setting a bit non standard.

    1000uF at the regulator output may screw up most 7805 regulator. You want to keep this value lower than this. Check the datasheet for the brand you're using. Usually 10 - 22uF tantalum + 0.1 uF ceramic do the trick.

    HTH
    Thanks for the help!!! The diode, I mis-drew in the picture I posted. The circuit was build on-the-fly, with only the basic IO drawn up before hand. I drew that in haste to post here and that is not correct. The diode is actually connected with banded end to B+, and other end to the coil neg terminal. Then I found out, there is a second diode built into the relay its self! The relay is at least 18" from the control module, in a socket that is part of the harness.

    The NPN - PNP connection allows the PIC to switch +12V on the high side, to keep the power to the circuit on, after the power path from ignition switched 12V throuth the indicator lamp is no longer available. I use the signal through the light bulb to tell it when the ignition is turned ON, as well as being able to ground the lightbulb and cause it to illuminate. It looks odd but it works, and was buildable with components I had here.

    The reason I have such large input capacitor (before regulator) is that the circuit needs to stay up during engine cranking (possible B+ pulling down to less than 6V during starter inrush). I learned that trick on my headlights controllers I built for my other 2 cars! The large cap on the 5V side is only because.... that is what I had on hand.

    The position sensor is a throttle position sensor from a Rochester MPFI throttle body. It is a potentiometer only and requires clean regulated 5V supply and "clean ground" to give any sort of accuracy.

    It has a 3 wire sheilded cable in the harness, with ground coming off the board near the CPU ground, and +5V coming off near the CPU's +5V pin. The sensor is actually very accurate and does not vary significantly when the car's voltage changes or the CPU actuates outputs. I'm actually really happy with that part of the system!

    The mode switch resistors are that way because - once again they are what I had on-hand. It's just a pull-up resistor and a resistor to help protect the CPU if somehow +12V gets on the switch circuit.

    I've not had any resets since the choke was put on the harness, but I really like your idea of the snubber cap on the relay. Motor is supposedly internally suppressed, but it couldn't hurt to add a freewheeling diode to the motor too. If there is any reason to go into the system again, that will get done!

    Thanks again,
    David

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by turbokinetic View Post
    The NPN - PNP connection allows the PIC to switch +12V on the high side, to keep the power to the circuit on, after the power path from ignition switched 12V throuth the indicator lamp is no longer available. I use the signal through the light bulb to tell it when the ignition is turned ON, as well as being able to ground the lightbulb and cause it to illuminate.
    I used a Bosch relay on a 71 chevy to power an HEI ignition and the relay would hold down to 3volts which was low enough to allow engine to run when switched off due to receiving power through the alternator light, had to kill engine in reverse gear, where the backup lights would load it enough to cutoff relay.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Apr 2009
    Location
    Northport Alabama USA
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    I used a Bosch relay on a 71 chevy to power an HEI ignition and the relay would hold down to 3volts which was low enough to allow engine to run when switched off due to receiving power through the alternator light, had to kill engine in reverse gear, where the backup lights would load it enough to cutoff relay.
    LOL! I had the exact same thing happen on my 72 Nova. When I converted it to EFI, the ECM, ignition, and everything else was powered by a relay that wouldn't drop out until the alternator was unplugged. Fixed that by installing a diode in the alternator warning lamp wire.

    It was kind of nerve-wracking because the engine was a newly rebuilt one I had put together, and wired everything up. The first time I turned the key, it started instantly, and the transmission started spewing oil profusely from a forgotten cooler line, and I couldn't shut it off!!!!

    David

  4. #4
    Join Date
    Apr 2009
    Location
    Northport Alabama USA
    Posts
    6


    Did you find this post helpful? Yes | No

    Default FOLLOW UP - the REST of the story!

    Well - after all the fuss and mess; the real cause was after all..... a bad resistor. I had intended to use 1K resistors for the the transistor bias resistors on the relay, valve, and lamp driver circuits. They did all come from the same package.

    The resistor for the relay driver was a 1R (1 ohm) resistor instead of 1K (1000 ohms) and was badly overloading the output on the PIC, causing it to malfunction. I finally determined there was a serious issue when I felt the PIC chip, and the 5V regulator both getting VERY WARM when the relay output was active.

    After changing the resistor, the circuit works fine, without any extra choke coils or capacitors, and nothing gets warm.

    The resistor was correctly marked as a 1R resistor (by color bands) but was in a package with 1K resistors so (like a dummy) I did not look closely at it before soldering it in.

    Live and learn. Thanks again for the ideas, I really appreciate it and am glad to have found a place to discuss these projects!

    Later,
    David

Similar Threads

  1. Watchdog Timers
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th August 2014, 18:03
  2. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 17:42
  3. Replies: 8
    Last Post: - 7th December 2006, 15:42
  4. 16F88 is not the dream device I thought it was.
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th October 2005, 21:19
  5. @ Device Parameters
    By Randy_Suwanee in forum General
    Replies: 2
    Last Post: - 11th August 2004, 14:40

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