[help needed] UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Your chance to introduce yourself and your vehicle
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

Congrats. However you put the steering wheel on the wrong side :)
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Thank you, haha yeah wrong side... :D

I have a question: Is it actually possible to use MAX9927 with hall sensors? I got slightly confused now... on the wiki page you reccomend op-amps for hall sensors https://rusefi.com/wiki/index.php?title=Manual:Hardware_Frankenstein_board


I have changed my trigger wheel to 36/1 and now I get no signal. I'am still using op-amp buffer circuit. When I get some time I will investigate the circuit to check what is actually happening as I still haven't done it.

Guys if you can tell me if MAX9927 can be also used I would prefer this option then.

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

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

Yes MAX9927 can be used for hall. Basically you let one side of the input float, it will go to 2.5V. The you install the pull up jumper from the other side, and the hall will short or open, generating a 0V to 5V pulse. Once that pulse crosses the 2.5V threshold of the other input, then the output toggles.

See schematic page 8, top right notes. If you disconnect CRK2+, that pin will float to 2.5V. Then you install W1002, and hopefully the default 1k ohm will provide enough current for your hall sensor. However some halls need 12V, and more mA's, this setup is likely to work as is.
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Finally solved the issue with the OP-AMP circuits. The default values for hall sensor pul-ups appeared to strong, so I have replaced them with 5k resistor.

The low pass filter seems to distort the signal, so I have removed the capacitors. Now I get perfect square waves for both Cam and Crank triggers.
The car is up and running using the 36-1 trigger wheel, cranks a lot better! I will share my tune, and logs soon...

I ended up not using the MAX9927.

Here are my mods to the circuits:
Camshaft_Trigger_Circuit.png
Camshaft_Trigger_Circuit.png (91.99 KiB) Viewed 22144 times
Crankshaft_Trigger_Circuit.jpg
Crankshaft_Trigger_Circuit.jpg (84.14 KiB) Viewed 22144 times
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

Wow 5mA was to much and you had to back it down to 1mA. Glad to hear you got that figured out. Keep up the good work.
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: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by stefanst »

Just another datapoint: We're running 1k resistors as pullups to 5V on the 9927 on several NB engines with no issues.
Check out scoped signals from stock ECU and rusefi here:
https://rusefi.com/forum/viewtopic.php?f=3&t=1095&start=60#p21130
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

A quick video:
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: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by AndreyB »

I have to confess I have some stutter on my 36/1 race car - like once every 30 minutes at the track. I blame the 36/1 wheel since it demands extra presicion, but since it's only once in 30 minutes and there is little hope to reproduce at the garage all I can do is move crank sensor a bit closer to the trigger wheel.
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
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Here is my log from a quick test drive from last night if you are interested. Later on today will post my tune as well.
First Quick Test Drive.msl
(1.54 MiB) Downloaded 787 times
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by stefanst »

That looks pretty good.
No ignition losses, AFRs are reasonable. Your VE table and accel-enrichment need some tuning, but other than that you're looking pretty good.
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Thanks stefanst for checking the log.

Yes, I know my table needs tweaking as well as accel-enrichements as I do get a poor throttle response under load.

I am a little worried about my timing table. So I know you have to retard the ignition timing on boost, but where can I get a reasonable timing map so I can tweak it?

I compared my old timing table to russians table an mine was pretty advanced... or russians pretty retarded.

I have not connected all the pipes for the turbo and throttle body, so no boost for now.

I am very happy with how the car is cranking ;)

Hovewer the idle valve doesn’t seem to work when I crank the engine. After engine is running idle valve seems to work.

I’ll share my tune so you can see what is what. Cheers!
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

I have installed the D585 coils tonight and test drove the car on the attached tune. I get some trigger errors again no idea why :( Fixed!


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

Test_Drive_2_2018-08-11_16.35.39.msl
(3.65 MiB) Downloaded 811 times
trigger errors.msl
(1.36 MiB) Downloaded 788 times
Last edited by RadMx5 on Tue Aug 21, 2018 11:12 pm, edited 1 time in total.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

To me this looks like it's clearly a problem at the higher RPM's. I suspect you'll find the 1k will help prevent this. It might be good to switch to the 9927. the op-amp is just doing analog. If your hall doesn't make it to 0V, your input will be above 0V. The rounding near the edge corners will be seen by the GPIO and could cause excessive jitter. The 9927 will force 0V when ever the input crosses 2.5V. That makes for a cleaner signal to the STM pin. The STM32 is guaranteed to be a 0 when you are below something like 0.5V or 0.9V. Above that is not guaranteed. The 9927 ensure that below 2.5V is guaranteed to register as a 0V. By guaranteeing that it registers at a much higher voltage, it minimizes jitter issues caused by the rounded corners of the signal.

You could try looking at how square you signal is at the STM32's pin. I'm fairly sure you'll see there is a fair bit of rounding at the corners of your edges. This rounding will become more of an issue at higher RPM's.
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Trigger problem solved!!

Thanks kb1gtt for your advise. To be honest I tried soldering the MAX chip, but I found it soo difficult while all the wire jumpers around are very close to it...

I'm still using op-amps :roll: didn't give up haha

Invert primary signal feature was enabled and messed everything up. rusEFI counted gaps instead of teeth on the 36-1 trigger wheel...

Hopefully now it will be fine, no trigger errors even at or above 7000RPM! ;) Im happy with it now!

Cranking
cranking settings.bmp
cranking settings.bmp (904.12 KiB) Viewed 22825 times
I can't understand why my Idle valve is not turning on while cranking. I will log some data tommorow and debug IDLE? will this show me some usefull info?
If not how else can I check what's going on with the valve while cranking?
Cranking RPM limit is set to 260 I don't know if it affects it? should it be higher?
Valve frequency: 200Hz seems ok once engine is running.

Once the engine starts valve works fine.

I got some logs from tonight but my debug fields are poinitng at Altenator.
Cranking_Warm_no Throttle.msl
(550.84 KiB) Downloaded 793 times
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by puff »

hey! couple of weeks ago I tried starting my 36/1 engine with just VR CPS sensor installed and lm1815-based board serving as a conditioner circuit - I had no time to attach my laptop and looked through the log files just several days later. There was no RPM present in the log file. I just saw it changed to -1 during cranking. First I thought it was a hardware problem (though my diy tacho that used signal from lm1815 board and the same CPS sensor worked just fine last winter). So my guess was the signal was inverted and all I need to get RPM is to rewire my CPS sensor.
I didn't know there was a setting to reverse its polarity.
But now you say that even with reversed polarity it somehow worked with 36/1 trigger wheel? I'm a bit confused :?
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by stefanst »

That idle valve behavior during cranking is weird and wrong. Mine doesn't do that. See attached picture. I do seem remember, however, that I had a similar problem a few firmware revisions back. Are you running the latest and greatest?
I noticed that you are using a pretty high value-75. Maybe you're exceeding some limit? Have you tried a lower value- maybe 40?
Here's a log of proper cranking IAC behavior.
Idle air cranking.png
Idle air cranking.png (12.1 KiB) Viewed 22817 times
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Since my last post I almost daily drive on rusEFI. There are no issues with the electronics, firmware and software, it seems very stable!
The car is turbo charged and runs on over 10 psi boost and... the clutch slips on 3rd gear on full boost :cry:

Fuel map and ignition timing need fine tuning on a dyno, one day :)

I only had a problem with the cheap ebay china 3Bar Map...I have replaced it and now the engine runs good again.

I just wanted to thank you guys for your support here! And I hope this project continues to grow!
alexander-n8hgeg5e
Posts: 50
Joined: Mon Oct 01, 2018 4:42 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by alexander-n8hgeg5e »

Cool :D the clutch slips means engine runs good.
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by mck1117 »

RadMx5 wrote:
Sun Dec 09, 2018 4:18 pm
Since my last post I almost daily drive on rusEFI. There are no issues with the electronics, firmware and software, it seems very stable!
The car is turbo charged and runs on over 10 psi boost and... the clutch slips on 3rd gear on full boost :cry:
Hey, somebody else who daily drives rusEfi and it made the clutch slip in 3rd! I turned the boost up from 8 to 15 on my Volvo, and it made the clutch slip! Fixed with a more expensive clutch 8-)
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

Cool and good to hear. Thanks for the pat on the back and keep up the good work.
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Hello friends! :)

Haven't been here for a while :) Do I need to catch up a lot?

What is the current status of the rusEFI? I've seen some progress with ETB, is it usable? (it would be nice to add an ETB to the MX5)

What about the hardware did you change something?
Should the latest bundle work on my board?

Sorry for asking many questions, but it is hard to keep track what's going on here if you have a little break hah. I thought I will simply ask here instead of digging 100 topics hah :D

I still have the car, and the plan is to get the rear suspension cleaned and powder coated :)

I'll upload some photos later :)
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: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by AndreyB »

> What is the current status of the rusEFI?
https://github.com/rusefi/rusefi/blob/master/misc/Strategy_2019.md

only 500 meters on ETB, very little testing. No ETB idle, a lot to develop still.

> Should the latest bundle work on my board?
you would probably need to create new projects but we are always (so far) compatible with all hardware from the past.
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: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

I believe yes latest firmware should work with any older pcb's.

It gets harder to keep track of stuff as much of the development conversations are happening in slack. TS has / is undergoing some rearranging. I understand that is a welcomed cleanup.
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

Finally welded the diff :)
Many people help, support and motivate me to get this car back on road/track :)

It's getting there! Sorry for the mess in the garage haha :lol: :lol: :lol:

No time for cleaning...

Some photos:
IMG_3467.JPG
IMG_3467.JPG (561.32 KiB) Viewed 21884 times
IMG_3465.JPG
IMG_3465.JPG (426.38 KiB) Viewed 21884 times
IMG_3464.JPG
IMG_3464.JPG (322.25 KiB) Viewed 21884 times
IMG_3463.JPG
IMG_3463.JPG (590.61 KiB) Viewed 21884 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: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by AndreyB »

This diff is not orange :( It's not rusEfi-compatible if it's painted blue :(
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
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

helloo!

Quick update :)

Here are some photos:
IMG_E3547.JPG
IMG_E3547.JPG (2.3 MiB) Viewed 21788 times
IMG_E3546.JPG
IMG_E3546.JPG (2.04 MiB) Viewed 21788 times
IMG_3646 - Copy.JPG
IMG_3646 - Copy.JPG (3.35 MiB) Viewed 21788 times
IMG_3645.JPG
IMG_3645.JPG (2.66 MiB) Viewed 21788 times
IMG_3644.JPG
IMG_3644.JPG (1.23 MiB) Viewed 21788 times



I need to get new lambda sensor and go to a dyno to tune the fuel/ignition timing tables properly, in mean time repair some little oil leaks and do the body work :)
Then it should be ready for a track day! :D

Need new rear discs also...
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by kb1gtt »

So, rusEFI turned you Miata into a squealer :)
Welcome to the friendlier side of internet crazy :)
User avatar
RadMx5
Posts: 77
Joined: Wed Sep 20, 2017 3:04 pm

Re: UK Mazda MX5 miata NB 1.8'99 - Future Turbo project r0.5 #38

Post by RadMx5 »

hah yeah pretty much... :lol:

The car wasn't touched for about 5-4 months while waiting for the rear sub-frame and suspension to be done and it took only a few turns of the crankshaft to start the engine without touching the throttle too, I didn't expect that tbh :)
Post Reply