[rusEfi] '03 Miata with VVT #28

Your chance to introduce yourself and your vehicle
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

'03 Miata with VVT #28

Post by stefanst »

Since my '99 Turboed Miata runs like a champ on the MS3X, and the '03 naturally aspirated is still running the stock ECU, it was decided to make the '03 the new test vehicle for rusefi.

Here are some issues I can think of right off the bat:

- This car will have to pass emissions, so I need to be able to swap the stock ECU in, when not on the racetrack
- NB2 (2001-2005) Miatas have a different ECU connector. Does anybody have a supplier/part number for this?
- Looks like I need to make an adapter loom, or solder a 'flying' connector directly to the board
- VVT will need to be controlled and it looks like VVT is in alpha-status at best :-)

I do have the wiring diagrams for the car somewhere, so this shouldn't pose a major problem.

Any other thoughts./potential problems/ recommendations?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT

Post by AndreyB »

stefanst wrote:- NB2 (2001-2005) Miatas have a different ECU connector. Does anybody have a supplier/part number for this?
Does http://rusefi.com/wiki/index.php?title=Hardware:OEM_connectors#72_pin look right?

https://octopart.com/search?q=1123038 shows good availability, I've ordered a couple from Onlinecomponents.com - these guys have a $50 minimum so I can share one of mines once these show up.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT

Post by stefanst »

That's the correct connector indeed.
BUT: In order to be able to easily swap between stock ECU and rusefi I would like to have a few additional I/O, for example for the external MAP sensor, boost control and I'm sure I can think of a few more, if I really try.

So I was thinking about using the 122pin connector that has the same pattern as the three plugs on the 72 pin, but has two more plugs. It's being sold on Digikey: http://www.digikey.com/product-detail/en/8-5353015-1/A123262-ND/2310242?WT.z_cid=sp_8004_20120425_buynow&site=us&csp=WT.z_cid%3Dsp_8004_20120425_buynow%26TE_cid%3D8004-1472158567365
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT

Post by AndreyB »

Now I want a VVT donor vehicle for myself as well. It was a bit of surprise to me that http://miami.craigslist.org/search/sss?sort=date&max_price=3000&min_auto_year=2001&query=miata and http://dallas.craigslist.org/search/sss?sort=date&max_price=3000&min_auto_year=2001&query=miata get 2001+ Miatas for 3K and less while NYC prices seem to be about twice that.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT

Post by stefanst »

In order to make any sensible use of rusefi with the '03, I need a WB O2 sensor.

Fortunately, I still have one sitting around unused.
But its' output is via CAN bus and nothing else, and -unfortunately- it appears that rusefi has no module for accepting sensor inputs from CAN bus yet.

So I can connect a microprocessor, reading the CAN bus data and generate an output that rusefi can understand. But what type of input will rusefi accept? Of course an analog signal will be accepted, but doing the a/d - d/a - a/d conversion seems rather silly. Will rusefi accept any digital communication as O2 sensor input?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT

Post by AndreyB »

stefanst wrote:But its' output is via CAN bus and nothing else, and -unfortunately- it appears that rusefi has no module for accepting sensor inputs from CAN bus yet.
Can you please start a topic about that WB controller? Since we have a CAN chip on the Frankenso board you have this could be doable.

See also http://rusefi.com/wiki/index.php?title=Manual:Hardware:CAN_sniffer
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: '03 Miata with VVT

Post by kb1gtt »

Please see P401 on page 4 of the Frankenso schematic. This offers 5V, GND, CANH and CANL. It also allows an optional termination resistor.

As russian commented, please start a CAN WO2 thread for what ever model number your device is. When you do please include as much information you can about the CAN communications for that device. To date the CAN BUS communications have been minimal. I believe someone was starting an interface based on a certain standard, but I seem to recall that it's capabilities so far have only been to communicate with one very simple device, I think it was a dash board or something similar, which shows we have functional CAN bus, we just need to know the packet structure.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT

Post by AndreyB »

Got my order - connector looks pretty small in real life but seems to match eBay pictures for VVT Miatas.
Attachments
1123038-2.png
1123038-2.png (1.63 MiB) Viewed 19870 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT

Post by AndreyB »

What is your plan for MAP sensor? I want to buy same exact sensor maybe even from the same source and mount it in a similar fashion to have both 03 as close as possible.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

Is there any concern about quality of these under-$20 sensors from China?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: '03 Miata with VVT #28

Post by kb1gtt »

It's from china, so yes a concern, but in reality the technology is pretty close to go or no go, so I would expect that if it fails it will likely fail really obviously. These china units are lower cost because they bypass many of the automotive reliability and safety checks. Just bypassing the burn in testing is going to greatly reduce the MFG costs. However it also means you might have a failure as you're doing the burn in procedure when you start to use it.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

Where are you grabbing +5v from for map?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

I have a secondary connector (molex jr.) coming off the adapter board that is used to deal with signals not included in the original harness. Splitting 5V and signal GND from the adapter plate.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

I like, I guess would do the same using some weather pack connectors.
Next lazy question - what is the part number for brake booster line T-adapter? :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

No idea- Autozone "T" collection.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

kb1gtt wrote:It's from china, so yes a concern, but in reality the technology is pretty close to go or no go, so I would expect that if it fails it will likely fail really obviously.
the plug would not lock on the sensor - the sensor clearly has a retaining tab but it's either too short or not located where it needs to be located. requesting a refund :(
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

Mine had the same issue. It was off by maybe a mm or two. I used an exacto knife to trim the tab on the connector hooking up to it and all is well now.
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

I got it starting and running well enough. The alternator control has me baffled. No matter what I do the alternator is going full-tilt. I'm suspecting a wiring screwup on my side at this point.
Also idle control seems to have 0 effect. Another screwup of mine I'm sure.
Question: Are all PWM frequencies freely configurable, or are some shared?
Tomorrow I'll pick up my timing light from my buddy who borrowed it, so I can verify base timing.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

Idle control - do you have a diode somewhere?

My wiring screw-up was confusing +5v wire and TPS wire, but my harness is actually not done yet.

I'll take your tune especially once timing is confirmed :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

No diode. But I was running the IAC at 300Hz and I believe the NB IAC needs 70Hz or so.
Didn't get around to picking up my timing light. Tomorrow....
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

stefanst wrote:Question: Are all PWM frequencies freely configurable, or are some shared?
All PWMs are frequencies freely configurable, nothing is shared between them.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

SUCCESS!!!!

Engine is running fairly smooth. Idle control works. Even alternator control works. Forgot to wire the WBO2- will do tomorrow.
No VVT control yet, but we'll try that next.
Trigger settings:
Trigger Settings 2003 Miata.png
Trigger Settings 2003 Miata.png (32.53 KiB) Viewed 19652 times
Trigger offset of 666 is confirmed by timing light. How cool is that :) I'll have to paint the marks on my balancer though. They're real hard to see. So I wouldn't hard-code the timing yet without final confirmation.

Alternator settings:
alternator settings.png
alternator settings.png (24.18 KiB) Viewed 19652 times
Now for some weird stuff. This is WITHOUT alternator control. The voltage just randomly drops from 12.2V or so to around 11.5V. I think this is happening when we're sampling voltage at the same time an injector fires. Even though the injectors have a separate 12V supply line, ground is probably getting pulled up by 0.7V or so.
voltage drops.png
voltage drops.png (24.84 KiB) Viewed 19652 times
I'm also seeing some fluctuations in AFRs. May be caused by deadtime compensation being influenced by the voltage drops.

And here's a log of the alternator control working:
alternator control working.png
alternator control working.png (32.81 KiB) Viewed 19652 times
Also attached is the MSQ and the whole looong msl from tonight's session.
Attachments
2016-11-30_19.22.52.msl.7z
(663.55 KiB) Downloaded 329 times

[The extension msq has been deactivated and can no longer be displayed.]

Last edited by stefanst on Thu Dec 01, 2016 1:22 am, edited 1 time in total.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

stefanst wrote:Even alternator control works.
Please elaborate - how did you wire it?

Thank you for playing with it!
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

HL5 -> 3M on the connector. That's it. Voltage seems steady while revving.
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

I'm having a clear WTF moment here. Trying to fire the '03 up to take a look at the voltage problem and I'm not getting any spark. I even reverted to a previous tune, thinking I did something. No spark. I need some help thinking.....
2016-12-01_19_44_52rpm_No_spark.png
2016-12-01_19_44_52rpm_No_spark.png (51.94 KiB) Viewed 19631 times
I'm not running into boost cut, rev limiter, anything like that. Fixed or dynamic spark makes no difference.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

I cannot explain it. Injectors are triggered so the trigger is decoded. What has changed? Have you updated firmware? Have you changed anything in the project? Can you load your last working tune?

Is ignition disabled for some reason?
showconfig in console would show some things
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

Stupid user is stupid.
I found a dwell table online that I wanted to use. Dwell at 0rpm seemed totally unnecessary to me, so I left that out. Apparently that's needed since cranking RPM is below 500 (the lowest value in my table). Funny thing is that it's not using the interpolated dwell from the dwell table, but the correct cranking dwell. Makes me wonder what happens if we exceed the max rpm in the table...
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: '03 Miata with VVT #28

Post by stefanst »

On to some more fun features:
I scoped the supply voltage and it's noisy as all get-out:
12V ripple at board.png
12V ripple at board.png (63.62 KiB) Viewed 19624 times
Also scoped the GND on the board vs. chassis:
board_gnd_vs_chassis_GND.png
board_gnd_vs_chassis_GND.png (51.66 KiB) Viewed 19624 times
So most of the noise is actually in the supply line. And there's not much else hooked up to it. This is also without the alternator running.
This means to me that we need to do some more smoothing for the vbatt signal. I'd really like to see the smoothing factors for all analog inputs to be freely configurable of course, since different cars may require different smoothing.

Also, just to be a total jackwagon, imo we should measure the voltage of the injector supply line and not the supply to the board, since the main task of the measured voltage is to adapt the dead-time for the injectors and to control the alternator (of course dwell may be compensated as well, but a little variation here really doesn't make much of a difference).
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: '03 Miata with VVT #28

Post by AndreyB »

I believe on my board VBatt was improved by some hardware change - was it a larger capacitor or was it a different resistor? It's somewhere on the Neon thread.

Also your tune shows expAverage is disabled:
<constant digits="3" name="slowAdcAlpha" units="coeff">1.0</constant> - that's configurable somewhere on analog inputs dialog.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply