Page 1 of 2

'92 Festiva with 1.6L SOHC

Posted: Fri Mar 07, 2014 2:49 pm
by skeeters_keeper
The first vehicle I'm setting RusEFI up on is my DD - a 92 Festiva with a 1.6L engine from a 93 Mazda 323.
Here's a picture from when I put it in a few months ago:

Image

I have been very slowly playing with my STM as I can get some time.

So far I only have my STM board and a breadboarded version of the Hall input board as seen here: http://rusefi.com/forum/viewtopic.php?f=2&t=242

I'm running the latest version of the java console on my MacBook Air, and finally got things hooked up the other night to see what kind of signal I'm getting from the CPS. This is what I got:
TachScreenShot1.jpg
TachScreenShot1.jpg (200.1 KiB) Viewed 22327 times
The tach value would jump around very fast and the signal was not very stable. So it does not seem to be the same signal as the aspire ;)

Re: '92 Festiva with 1.6L SOHC

Posted: Fri Mar 07, 2014 2:56 pm
by AndreyB
First of I have to say you are in the elite club of less than 10 guys who has made it this far :)

On the digital sniffer we are interested in the first row of data. It is definitely not random, it's just that there is a bit of noise. I really hope that all it needs is a capacitor, like a "103" - 0.01 uF - capacitor between the signal wire and GND either on op-amp input or op-amp output side. Is there any chance you have any capacitor to give it a try?

I will point our EE expect to this thread, can you post a picture of your breadboard setup?

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 3:14 am
by skeeters_keeper
I put a 103 cap between signal and gnd. The values seemed to dance around slightly less, but it still said "noise" frequently. So I tried a 105 cap and I no longer got the "noise" value but it fluctuated a lot between ~200-4000. The range of numbers would increase if I revved the engine.

Here's the setup:
TachBreadboard1.jpg
TachBreadboard1.jpg (446.1 KiB) Viewed 22315 times
tachBreadboard2.jpg
tachBreadboard2.jpg (520.05 KiB) Viewed 22315 times
and another screen shot from this afternoon:
TachScreenShot2.jpg
TachScreenShot2.jpg (169.89 KiB) Viewed 22315 times

Also, I'm pretty sure this is an optical position sensor. However the disty feeds the ICM and I'm getting the output from the ICM. I can take a spare dist apart tomorrow if it would be helpful.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 3:23 am
by AndreyB
Do not destroy a spare dizzy, no point in that. What you can do is take the spare distributor and play with it on a bench? That's if you have a piece of harness to power it up that's if you have a power supply because I think it might want 12v.

Image
This is probably asking to update the firmware but I do not think there were any bugfixes related to trigger input.

I hate electronics :( It's still some kind of noise. Next thing to try would be a pull-up resistor - so, a resistor between op-amp input and 5v. 1K to 10K, do you have anything?

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 3:37 am
by skeeters_keeper
I think it says Firmware N/A because I had already unplugged the board when I took the screen shot.

Taking a disty apart doesn't mean it will be destroyed ;) But if something did happen to it, well I probably have 1 or 10 around here somewhere :lol:

I have a few hundred resistors and caps of an assortment of values. I will try a pull-up resistor and I'm going to dig around a little more to see what I can find out about the signal from the distributor. I need a scope!

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 3:39 am
by AndreyB
skeeters_keeper wrote:I think it says Firmware N/A because I had already unplugged the board when I took the screen shot.
I am not sure it works like that... But it could :)
What does 'hello' command say?

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:03 am
by puff
it might be you just need a shielded cable instead of those caps?

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:05 am
by AndreyB
puff wrote:it might be you just need a shielded cable instead of those caps?
My setup runs on long & ugly wires with ten lame connectors along the way, and it's fine. I believe OEM only uses shielded wires for knock sensors.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:34 am
by puff
wiring to crank posiion sensors is also shielded. your ignition system might be less noisy thanks to resistance in your plugs and plug cables.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 11:55 am
by kb1gtt
Good progress.

Lets see if I'm understanding the above picture with the laptop correctly. I see only one green wire that leaves the picture. I'm assuming this is your hall/CAS signal. However I don't see a black wire connecting the STM GND to the vehicle - battery terminal. With out the - reference, I would expect much more noise. Can you add a black wire from the battery - to the bread board black wire.

Also to help minimize potential issues, I would suggest using the laptop on its battery if possible instead of being plugged into the wall. It looks like you are doing that, but figured I'd make sure that was on purpose instead of by luck.

What is the voltage you get from your signal wire? Is it above 5V? I might also suggest using a 2k to 5k in series with your green signal wire. Some op-amps have diodes on the input signals that will dump current to the signal pin exceed the + rail pin. This resistor will limit the current dumped if the op-amp happens to have this diode, and if you happen to have more voltage on the the op-amp input signal ping relative to the op-amp + rail pin.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 2:21 pm
by AndreyB
kb1gtt wrote:However I don't see a black wire connecting the STM GND to the vehicle - battery terminal.
If that's the case then it would explain a lot. Nice catch! If that's a catch :)

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 6:40 pm
by skeeters_keeper
Indeed, I did not have a ground to the battery!

After some more messing around, adding a ground to the battery and a resistor inline with the signal (which is 5v btw) this is what I have at a fast idle:
TachScreenShot3.tiff
TachScreenShot3.tiff (124.43 KiB) Viewed 23370 times
And with the engine revved a bit:
TachScreenShot4.tiff
TachScreenShot4.tiff (115.91 KiB) Viewed 23370 times
And here is what the stock festiva disty looks like inside:
FestivaDisty.jpg
FestivaDisty.jpg (81.52 KiB) Viewed 23370 times
Oh, and Russian it still says firmware NA - so I guess I need to update my firmware on the board ;)

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 6:48 pm
by AndreyB
My Mozilla does like your .tiff images. As in cannot show them :)

Update: my Explorer was able to show them. Can you please zoom in so that it shows say 6 waves? Anyway, that's some real progress here!
I still see some noise - these lines inside the waves - but we are close.
I have to step see if my Festiva would fire up with a 2000 Miata head, ttyl. Let's thank Jared for the GND hint :)

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 6:54 pm
by AndreyB
PS: looking at this dizzy I see a two channel signal, do you have another wire? Can you hoop up the secondary channel the same (your op-amp is probably dual-channel anyway) and I will need your log files to figure out the exact trigger shape. Good progress!

PPS: on another thread you were concerned about boards getting obsolete. They do not get obsolete - you can still use the older individual modules, the firmware would always support them.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:46 pm
by kb1gtt
For cartoon like pictures, I would like to suggest .png it will have good compression while keeping a good level of detail and pretty much everything can view it. When it comes to pictures from a camera or similar with many different shades of color, I would suggest a .jpg, it's a lossy compression, but generally good enough as your eye will blend things together. I also can not see the .tiff on my linux Chrome. I'll go look at them with a windows machine and IE, but there are sure to be others with the same problem.

I'm also likely a culprit about creating a feeling like things might go obsolete. I'll always push for changes as I tend to feel things can always be better. It has been working well here as russian has been drawing lines in the sand and making things usable. Getting boards now should work with your setup and I don't see them ever being obsolete.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:48 pm
by kb1gtt
Oh, also what op-amp did you use? If you need some help getting this working on the second channel, I can offer some help, perhaps a pencil sketch or something like that. Let me know if you need a sketch.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 7:55 pm
by puff
Didn't know it was tiff - works okay in my Safari on a Mac

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 8:03 pm
by puff
rpm figures are so nice!

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 8:08 pm
by skeeters_keeper
Sorry about the .tiff, that's what Grab (the screen capture program) defaults to. I usually convert them to jpg but got lazy this time...

I am using an OPA2340, but I also have a few MCP6002 as discussed in the "DIY Hall input" thread.

A pencil sketch of using two channels would be great - would the second channel feed another input pin on the stm?


As far as boards going obsolete - I'm not saying that they aren't still functional, but they are no longer necessary if you have the frankenstein board. So the time/money spent on them was basically a "waste" because you're no longer using them once you have a newer version of the board. Similarly V.1 of frank may work but I'm sure it will have room for a few improvements, maybe integrated BT or power supply etc, so if I buy it now and you release v.2 in a few weeks... well, you see what I'm saying. I realize things will always change and you can't wait forever for the "final" version because with tech there is no such thing, but I'm sure this is a large part of the reason you aren't seeing more people buy the boards right away.
I do plan to order the board in the next few weeks... I just spent too much $$$ on my rocketry hobby this month!

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 8:48 pm
by skeeters_keeper
The sensor has a 4 pin plug with only three wires, 12v, gnd, sig.

I was hopeful that the other pin was there and ready to be used - so I tore the disty apart a bit further and there is nothing on the other pin :/ only one LED and it is inline with the four smaller slots, the spot for the other LED (in line with the one slot per revolution) is empty. Since this car is batch fire from the factory I guess they didn't need to know which cyl it was on.
So if I understand correctly that means there isn't enough information for COP or sequential injection and I'll need to either add a trigger wheel on the crank or maybe fit an aspire distributor, which has both signals.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 8:55 pm
by puff
installing trigger wheel on the crankshaft won't provide you such information, but will probably increase accuracy?
so do both, and request a feature, so that close circuits in the disty give signals for a certain sparks for instant start :-)

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 9:01 pm
by puff
oh, it's probably contactless. one more option is to fit your own, custom-cut slotted plate, with, say, 7 usual size slots an one twice as larger slot for 0ยบ.
one more thing, which I can't understand is that on the upper screenshot you have somewhat 6 impulse per rotation, and on the lower screenshot, with increased rpm you have a different number of impulses? weird.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 9:28 pm
by kb1gtt
Ah 5V, with a J927 optical sensor. Hmmmm, why can't I find a pin out or schematic for this sensor? Is there a snippet from a service manual or something that could help?

Looks like the noise is consistently on the falling edge. I think I know why this is, but I'm trying to find a reference schematic. Do you know if the sensor's internal wiring is similar to this http://m.eet.com/media/1093612/0307feat2fig2.gif

If so do you know what the internal pull up resistor is? I think it is done that way, and if it is, I would suggest a 2k to 5k resistor between the green signal wire and black GND. That will probably fix the issue, if not, I have some other suggestions, but lets try that one first as it's easiest.

Re: '92 Festiva with 1.6L SOHC

Posted: Sat Mar 08, 2014 9:39 pm
by puff
btw, for positioning purposes you could just install a photon-coupled transistor against the larger inner slot.

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:07 am
by skeeters_keeper
Here are two more shots of the sensor from the distributor.
FestivaCPS1.jpg
FestivaCPS1.jpg (301.53 KiB) Viewed 23706 times
FestivaCPS2.jpg
FestivaCPS2.jpg (288.36 KiB) Viewed 23706 times
I found some info in one of my books on the CPS:
CPS_info.pdf
(2.63 MiB) Downloaded 476 times
It sounds like the BP (1.8DOHC) should have a similar/same sensor but with both LEDs - great, I have one on an engine stand!

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:08 am
by AndreyB
Would be funny if a piece of an Aspire dizzy would bolt on - http://rusefi.com/articles/tachometer/1995_aspire_distributor_3.jpg

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:10 am
by AndreyB
So, what do you we call your engine configuration file? Mazda 323?

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:13 am
by skeeters_keeper
Here it is:
BP_disty1.jpg
BP_disty1.jpg (607.23 KiB) Viewed 23706 times
and inside:
BP_disty2.jpg
BP_disty2.jpg (372.24 KiB) Viewed 23706 times
No such luck :/

This one is a Mazda BP. I have another BP in a car outside - from an Escort GT, so maybe that one is optical. However I ran out of daylight. Even if it is optical I'm not sure I need the second sensor yet... but still, it'll be interesting to see if I can get it from an escort disty.



I'm not sure if any of that info helps you know whats going on inside my sensor, and I didn't try it with the resistor between the signal and gnd yet. Hopefully I can try it tomorrow night because I'm going to be gone most of the day tomorrow.

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:15 am
by skeeters_keeper
russian wrote:Would be funny if a piece of an Aspire dizzy would bolt on - http://rusefi.com/articles/tachometer/1995_aspire_distributor_3.jpg
An aspire dizzy will bolt on! I don't have one right now unfortunately... I did last week. But I don't think my mazda ECU will like it and I need to keep this car on the road :p

Re: '92 Festiva with 1.6L SOHC

Posted: Sun Mar 09, 2014 1:22 am
by skeeters_keeper
russian wrote:So, what do you we call your engine configuration file? Mazda 323?
90-93 Festiva (1.3l SOHC) and 90-94 mazda 323 (1.6l SOHC) use the same general engine management. Meaning, you can run the 323 engine on a Festiva ECU. The distributors are the same part number, VAF can be interchanged (although the 323 VAF is slightly different) etc. Almost exactly the same engine just one is bored out a bit. Some people have run their B6 in a festiva on festiva ECU for years.

So I think you can call it either Festiva or 323, because with a small amount of tweaking it will work for either.