Nissan Primera P11 1998, SR20VE

Your chance to introduce yourself and your vehicle
Post Reply
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

Nissan Primera P11 with swapped SR20VE engine from Nissan Primera P12 20V. Naturally aspirated engine with the VVL (variable valve lift) technology at intake and exhaust camshafts. It also has a coil on plug ignition system. It produces 204 hp at 7200 rpm.

Image

Image
Last edited by Sergey89 on Wed Oct 01, 2014 4:37 pm, edited 1 time in total.
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

About the sensors and actuators used in the car.

CAS or CMPS (Camshaft Position Sensor) is used instead of crankshaft position sensor. It generates a 1 degre position signal and a reference signal. It has open collector outputs.

Image Image

Output waveforms (with a distributor wheel):

Image

Engine coolant temperature sensor
NTC type

Image

Throttle position sensor
From ~0.5v at fully closed to ~4v at fully opened.

Image

Idle air control valve.
PWM valve. f = 156.8 Hz, R = 10 Ohm

Image

Ignition coil
With logic level inputs (not tested).

Image

Variable valve lift solenoid
R = ~10 Ohm

Image
Last edited by Sergey89 on Sat Oct 19, 2013 12:55 pm, edited 2 times in total.
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998

Post by AndreyB »

I have a wheel really close to yours in my collection - see attach

Do you have one reference signal per revolution or four reference signals - like a wider one and three smaller?
Attachments
nissan_wheel.jpg
nissan_wheel.jpg (135.44 KiB) Viewed 24555 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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

Presented signals from the distributor wheel. This wheel looks like the COP wheel but with a different reference signal pattern.
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

The idle valve is simply controlled with a PWM signal.

denisvak
Posts: 403
Joined: Thu Oct 03, 2013 8:00 pm

Re: Nissan Primera P11 1998

Post by denisvak »

О, у меня аналогичный мотор...
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

Видел твою тему на нисмо клубе :)
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

SR20DE first run on STM32F4 based ECU.

User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998

Post by AndreyB »

Sergey89 wrote:SR20DE first run on STM32F4 based ECU.
That's a big day! Congratulations!

Now that you have the hardware, we need to migrate you to the rusEfi software :)

PS: need some pics of the hardware
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
Mad Max
Posts: 187
Joined: Wed Nov 13, 2013 12:34 pm
Location: Ukraine, Kharkov

Re: Nissan Primera P11 1998

Post by Mad Max »

Segrey89, does it run on Rusefi with ignition control?
Skype- max.mad486
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998

Post by AndreyB »

Mad Max wrote:Segrey89, does it run on Rusefi with ignition control?
No, this is @'s own software. Please join me in my attempts to convince him to merge these two independent source codes... i think if eveyone PMs him, he will break :)
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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

Hardware. Left to right: triggers intreface, analog interface, actuators driver, injectors and igntion driver.

Image
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998

Post by AndreyB »

In Soviet Russia, you mount prototype boards to a 2 by 4...

Image
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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

Camshaft position sensor signal waveform in the OLS file format (http://www.lxtreme.nl/ols/).

Image
Attachments
cas_trigger_waveform.png
cas_trigger_waveform.png (12.75 KiB) Viewed 23492 times
sr20det_sr20ve_trigger_waveform.zip
(4.22 KiB) Downloaded 344 times
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998

Post by AndreyB »

Is that noise or signal on the upper channel?
Image
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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998

Post by Sergey89 »

noise
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Nissan Primera P11 1998, SR20VE

Post by puff »

hm. what's the origin of that noise and how do you usually get rid of it? I see noise on both channels, btw. what's the physics behind of these two sensors?
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

It is a pair of optical sensors with open collector outputs. I do not know the cause of the noise. Maybe a bad ground.
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998, SR20VE

Post by AndreyB »

Is that with stock ECU, your own ECU or Frankenstein board? I wonder if I should be concerned or not :)
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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

Stock. Do not take this as a sensor noise. It's just the noise of the logic analyzer. Similar pulses are present on all channel.
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Nissan Primera P11 1998, SR20VE

Post by puff »

such small slots on the outer diameter allow for better resolution? I wonder if that is necessary at all… Besides, what happens if they are contaminated with sludge and stop passing the light?
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

Position signal provides a 1 degree resolution. http://patentimages.storage.googleapis.com/pdfs/USRE34257.pdf

The case is sealed.
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Nissan Primera P11 1998, SR20VE

Post by puff »

United States patent for a Japanese car? Decent resolution, and it doesn't need any crank sensors, I guess. Is it mounted outside the engine?
User avatar
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

138013100300.jpg
138013100300.jpg (82.16 KiB) Viewed 23493 times
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Nissan Primera P11 1998, SR20VE

Post by AndreyB »

Nice, we know the widths. I wonder if the centers are at 0, 90, 180 and 270?

By the way trigger decoder definition angle runs from zero to 720, so the widths would be 16, 32, 48.
Attachments
nissan_cas.png
nissan_cas.png (24.87 KiB) Viewed 23491 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
Sergey89
contributor
contributor
Posts: 839
Joined: Wed Sep 25, 2013 5:30 pm
Location: Russia, Velikiy Novgorod

Re: Nissan Primera P11 1998, SR20VE

Post by Sergey89 »

As far as i know the rising edges of the reference pulses are positioned at 110 degrees before TDC. The width of the pulses is 32, 24, 16, 8. But really the rising edges of the reference signal are placed between the rising and falling edges of the position signal. So it's more like 31, 23, 15, 7.
Post Reply