[rusEfi] red 2003 VVT test mule Miata NB2 #27

Your chance to introduce yourself and your vehicle
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

red 2003 VVT test mule Miata NB2 #27

Post by AndreyB »

I've decided to unify my test fleet, please welcome this automatic 1.8 VVT 2003 Miata.

First step would be locating the OBD-II port and fixing check engine, the price considering nice interior was good to ignore the check engine light.

https://svn.code.sf.net/p/rusefi/code/trunk/firmware/config/engines/mazda_miata_vvt.cpp
http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Miata_2003

JimStim reference https://rusefi.com/forum/viewtopic.php?p=40438#p40438

Tune status:
+ stats reliably
+ stars reliably without throttle application
- 80C engine idles close to 14.7 with manual idle control
- smooth warm-up with manual idle control
- smooth warm-up with automatic idle
Attachments
2019-10-21_rpm_1102_Frankenso_MAX9926_5K_pull_ups.png
2019-10-21_rpm_1102_Frankenso_MAX9926_5K_pull_ups.png (46.52 KiB) Viewed 69802 times

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

20161003_132821.jpg
20161003_132821.jpg (1.36 MiB) Viewed 75881 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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Awesome!
OBDII Port is right above the fuse panel.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: 2003 VVT test mule Miata

Post by kb1gtt »

Sweet. Is this waiting for that connector that I'm nearly done with?

Is that "drive by wire" or "drive by the seat of your pants" :)
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: 2003 VVT test mule Miata

Post by AndreyB »

First it is waiting for a spot in the garage (depends on Neon rolling out either dead or alive, hopefully alive by the end of this week), after that yes the connector would help :) In the mean time I will have a chance to find the ECU, it must be somewhere...

Simple throttle cable, just with a VVT on the intake side.
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: 2003 VVT test mule Miata

Post by AndreyB »

codes
Attachments
Screenshot_2016-10-03-17-59-39.png
Screenshot_2016-10-03-17-59-39.png (721.43 KiB) Viewed 75866 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
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: 2003 VVT test mule Miata

Post by kb1gtt »

Sounds like an exhaust leak or an intake leak for the P0420. I've checked for intake leaks by using a vacuum to lightly pressurize the intake, then listen for whistling noises. Often people will do this with a "smoke" device. Another way to look for intake leaks on natural aspirated engines is to spray the engine with starter fluid. It will typically increase revs when you find the leak, as it sucks in the starter fluid.

Does the retarded CAM return after you clear the codes? Also when was it's timing belt last done. You had that issue with the Neon. Perhaps they just had the belt replaced and perhaps the mechanic couldn't get it properly adjusted.
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: 2003 VVT test mule Miata

Post by AndreyB »

Looks like p0012 pretty much means "vvt system is not happy, either o-rings are gone or just too much crap in the oil passages". Looks like first step is trying Rotella T6 high in detergents oil (dual rated but the larger label says "heavy duty diesel") to wash it out, if not swapping some rings like http://miataroadster.com/miataroadster/miataroadster-vvt-system-viton-seal-rebuild-kits/mrvvtrk/i-1964289.aspx
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: 2003 VVT test mule Miata

Post by kb1gtt »

Welcome to the friendlier side of internet crazy :)
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

On the NB1 the ECU is under the steering column in the driver-side footwell. I believe the same is true for the NB2.b
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Are you going to convert to manual before going all rusefi on its' behind, or are you keeping it auto? I don't think the tranny control needs much from the ECU, so I *guess* you'd be OK keeping it auto.
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: 2003 VVT test mule Miata

Post by AndreyB »

I want to at least attempt rusEfi before manual conversion. But before that I need to fix VVT and ideally pass inspection :)
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
ItaloManyak
Posts: 69
Joined: Sun Sep 08, 2013 2:33 pm

Re: 2003 VVT test mule Miata

Post by ItaloManyak »

Check the oil pressure and o-rings if it is good then
Try to clean the valve or replace it
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

I'm going to add my '03 (manual trans) Miata with VVT rusefi-conversion to this thread if that's OK, since there's going to be a lot of overlap.
Updated the wiki on NB2 (2001 to 2005) Miatas: http://rusefi.com/wiki/index.php?title=Vehicle:Mazda_Miata_2003
Will also add suggested wiring including WBO2 and MAP sensor.
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Just to make sure I got this right: The only way that the ECU know what angle the VVT is advanced by, is by comparing the CAM sensor signal to the CRANK sensor signal - correct?
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: 2003 VVT test mule Miata

Post by AndreyB »

stefanst wrote:The only way that the ECU know what angle the VVT is advanced by, is by comparing the CAM sensor signal to the CRANK sensor signal - correct?
that's my understanding of this, and that's the kind of logic I have for the toyota vtti.
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
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

Re: 2003 VVT test mule Miata

Post by Abricos »

:)

Image
Image
Image
Image
Image
Image
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: 2003 VVT test mule Miata

Post by kb1gtt »

Gotta love 3D printers.
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: 2003 VVT test mule Miata

Post by AndreyB »

Really confusing +12 running / +12 constant / main relay, got couple of wires wrong, diagram is a labyrinth, got tired added an unneeded wire which made power supply side really funny, nearly fried some sensors but somehow these survived, the ex-Neon board had a non functioning 5K resistor which was not used on Neon but was important on Miata... Thank you @ for doing half of the work!

But now I have both cam and crank, four injectors, fuel pump and main relay. Open question trigger shape but that should be available online.
Attachments
20161030_185415.jpg
20161030_185415.jpg (673.97 KiB) Viewed 75713 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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Eating burritos with @ and his wonderful wife is a real treat :) Thanks for lunch!

On the VVT trigger shape, I found the following on Miataturbo.net:
Image
So it's the same as NB1 without VVT, the CAM signal just moves relative to the CRANK signal. Should be OK to run just using NB1 setup.
Last edited by stefanst on Mon Oct 31, 2016 12:52 am, edited 1 time in total.
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

Re: 2003 VVT test mule Miata

Post by Abricos »

Image
Image
Image
Image
Image
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: 2003 VVT test mule Miata

Post by AndreyB »

stefanst wrote:On the VVT trigger shape
just realized that we had an NB1 running - see http://rusefi.com/forum/viewtopic.php?f=3&t=467&start=33 see http://rusefi.com/wiki/index.php?title=Manual:Software:Trigger#Mazda_Miata_NB
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: 2003 VVT test mule Miata

Post by stefanst »

Earlier this year we also had my NB1 running http://rusefi.com/forum/viewtopic.php?f=3&t=987 :)
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Managed to simulate Miata NB2 VVT cam/crank signals with an arduino. rusefi accepts the signal and reads rpm. I can also see the crank signal moving relative to the cam signal, but am not sure how to use Miata VVT with rusefi in Tunerstudio. Will play some more tomorrow.
It only gets up to 3670rpm, because arduino is soooo slow, but it should be good enough!
Attachments
VVT_Trigger advanced.png
VVT_Trigger advanced.png (64.95 KiB) Viewed 75637 times
VVT_Trigger medium.png
VVT_Trigger medium.png (52.77 KiB) Viewed 75637 times
VVT_Trigger retarded.png
VVT_Trigger retarded.png (53.27 KiB) Viewed 75637 times
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: 2003 VVT test mule Miata

Post by AndreyB »

Unfortunately no VVT code for Miata yet. This signal is too complex for the current implementation - current implementation only works with one teeth cam sensor (we have three) and distinct crank signal (we only have 180 degree precision, not 360 degree because the wheel is symmetrical)

I think I have a plan how to implement this trigger, I just need to sit and do 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
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: 2003 VVT test mule Miata

Post by AndreyB »

I've got some useful UK parts but UK-specific wiring diagram seems impossible to find :(

http://www.mx5nutz.com/forum/index.php?showtopic=324257
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: 2003 VVT test mule Miata

Post by AndreyB »

Attachments
25858_msiii_v3_57_no_cas_cam_crankwheel_89415696cbbbc693c8b6a1eced187e8f0f9d4052.png
25858_msiii_v3_57_no_cas_cam_crankwheel_89415696cbbbc693c8b6a1eced187e8f0f9d4052.png (40.45 KiB) Viewed 75588 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: 2003 VVT test mule Miata

Post by AndreyB »

I think VVT Miata trigger support is ready - version 20161114

Crank is primary trigger - shaft position is based on that channel. Cam sensor is only used to detect intake cam position and engine phase (that's especially important with this symmetrical shape of crankshaft pattern). Special VVT mode is needed since three teeth, CAM gap ratio setting is temporary - once we confirm the numbers on a running engine these would be hard-coded.
Attachments
miata_vvt.png
miata_vvt.png (262.7 KiB) Viewed 75582 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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: 2003 VVT test mule Miata

Post by stefanst »

Success!

Running the new VVT code with a stimulator we get VVT-angle feedback. We can sweep approx. 50 deg, which correctly mirrors what the simulator does. There is one issue though: The angle feedback from rusefi goes from 382deg to 432deg.
MS3 reports -5deg to 44deg.
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: 2003 VVT test mule Miata

Post by AndreyB »

Great news :)
I wonder what is the meaning of -5deg to 44, is it in relation to where cam is on NB1 maybe?
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: 2003 VVT test mule Miata

Post by stefanst »

My simulator has more freedom than the actual actuator on the intake cam. I believe the intake cam has a total range of 38 deg. I assume that MS3 just sets "full retard" at 0deg and "full advance" then at 38deg or so.
Post Reply