 |
|
  |
 |
11-22-2007, 11:06 AM
|
#167
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Oct 2007
Location: southwest pa
My Ride: 1986 conquest turbo2
Engine: 2.6g54b
Induct: Turbo
1/4: 0.000
|
that is ok my conquest runs fine and i jest found an MSD6AL that will give me all the spark i need
|
|
|
|
 |
  |
  |
 |
11-22-2007, 07:40 PM
|
#168
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
^
| ...?
I've narrowed the problem down to the crank trigger timing/synch area, stipped all the code except that out and I still get lost synch. I think I might write it in C and see if that makes a difference...
|
|
|
|
 |
  |
  |
 |
11-22-2007, 11:01 PM
|
#171
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
Stripping out code lets me find out exactly where the problem is. I've verified operation of all the bits of code, several times. It works when I connect it to either the microcontroller that I programmed to output cam/crank signals, or when I use the MCU simulator in the development environment that I'm using. Once I connect it to a car, however, it seemingly randomly loses synch. It works when it's synched, but it'll just lose it. I have it programmed now to turn an LED on when it detects the long "key" tooth on the crank, works fine on the bench but doesn't on the car. It really isn't that complex of a program, but I can't find what's wrong with it. I use the exact same method that MegaSquirt does for detecting the "key" teeth, and it doesn't work. Moving to C would get rid of any math implementation errors as well as take care of variable initialization, but leads to slower/bigger code, and speed is critical for this type of application.
I don't think that it's a noise problem, because I don't see anything on the scope, and its the same inputs that I'm using for the hybrid adapter which I know works and have driven a car that it was running.
Also, this is nothing like a computer program. Filenames don't matter because you're compiling like 1k of code and it doesn't link to anything outside of that 1k. I don't know if you've done anything in assembly/with microcontrollers, but there is no method of debugging with test statements or other outputs. The only thing you can do is put something out on LED's.
Its just really frustrating to see it work on the bench with the exact output that you get from cam/crank sensors and then it doesn't work on a car.
Off to find a C compiler for PIC's...
|
|
|
|
 |
  |
  |
 |
11-23-2007, 06:09 PM
|
#173
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
It amazing how much easier it is to work with C. Then you look at how it compiles to assembly and see why it isn't good for small devices like this. I implemented a synch to #1 flashing LED, and it works fine. No lost synch that I can see on the LED or scope. I'm pretty sure the problem was in the math routines I had written; not handling >8 bit operations properly would cause that kind of a problem. Working on adding in the rest of it to test out and then migrating back to assembly...
|
|
|
|
 |
  |
  |
 |
11-24-2007, 03:59 AM
|
#176
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
It times the time of a high or low pulse on the crank sensor (used to detect the long "key" tooth, as well as the time between successive high->low transistions (equal to 20 crank degrees as long as its the second tooth in a series). Since those are measured in time units of 1/2000000 seconds, I need 24 bits to time the high and low pulsewidths at 300 rpm, everything else is 16 bits. Signed/unsigned don't really mean anything unless you write the code such that they do (i.e. you still use the same commands, the output just means a different thing), and the only place I used signed numbers was during the delta calculations. Everything is calculated so that I can't overflow any of the variables even at maximum period/acceleration. The synching still acted up after I removed those parts of code. The problem with debugging something like this is that it all has to happen in real time. I'd have to have a way of getting each time measurment before the next crank event, which is really fast. Even then, how do you even start analyzing the data from even a minute of running...
I'd say that since the problem seems to have gone away now that I'm in C, I'll just have to test my addition/subraction/compare routines in assembly and find out why they don't work right for 16 or 24 bits.
|
|
|
|
 |
  |
  |
 |
11-27-2007, 02:15 AM
|
#177
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
Ran my Neon with it in both C and Assembly. I guess the Neon computers actually control dwell based on current through the coil, because the coil drivers got really hot during a short run time and the rev limiter cut in a 4000 rpm... I have to get the HEP outputs coded in and we should be good.
|
|
|
|
 |
  |
  |
 |
11-27-2007, 11:49 AM
|
#178
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: May 2006
Location: Middle TN
Induct: Turbo
1/4: 0.000
|
For the Neon coil ~4.5mS of dwell charges a coil. The time varies with supply voltage. Longer than that, the VB921 will be in current limit mode and dissipate significant energy.
You will need to overlap coil drives for high rpm operation. This means coil A and B could be both charging at the same time. I found it the easiest to use two timer channels.
Last edited by KitCarlson; 11-27-2007 at 11:53 AM.
Reason: clarity
|
|
|
|
 |
  |
  |
 |
11-27-2007, 09:54 PM
|
#180
|
  |
|
Re: Electronic Distributor Adapter
|
|
Naturally Aspirated
Join Date: Jun 2005
Location: Allentown
My Ride: '90 Voyager
Engine: 2.5 16V Twin Mitsus
Induct: Turbo
1/4: 0.000
|
No, no, the Neon computer sensed that the coils weren't charging because they weren't hooked up to the Neon harness and rev limited at 4k.
I'm not setting dwell in the adapter, leaving that up to the stock computer. I also noticed no misfires up to 7k.
|
|
|
|
 |
  |
 |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Quick Nav |
|
» Quick Tech |
|
» Market Place |
|
|
|
|
|
|
|
|
|
|
|