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

What engine are you torturing? Is it inside some car?
User avatar
kb1gtt
contributor
contributor
Posts: 3489
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

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

Post by kb1gtt » Tue Aug 07, 2018 10:08 am

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 » Tue Aug 07, 2018 3:57 pm

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 ... tein_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: 3489
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

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

Post by kb1gtt » Tue Aug 07, 2018 4:55 pm

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 » Thu Aug 09, 2018 12:07 pm

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 1824 times
Crankshaft_Trigger_Circuit.jpg
Crankshaft_Trigger_Circuit.jpg (84.14 KiB) Viewed 1824 times

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

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

Post by kb1gtt » Thu Aug 09, 2018 6:11 pm

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: 579
Joined: Wed Feb 17, 2016 12:24 am

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

Post by stefanst » Thu Aug 09, 2018 6:22 pm

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:
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 » Fri Aug 10, 2018 12:27 am

A quick video:

User avatar
russian
Site Admin
Posts: 9779
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by russian » Fri Aug 10, 2018 1:10 am

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.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

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 » Fri Aug 10, 2018 12:44 pm

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 329 times

stefanst
contributor
contributor
Posts: 579
Joined: Wed Feb 17, 2016 12:24 am

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

Post by stefanst » Fri Aug 10, 2018 1:06 pm

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 » Fri Aug 10, 2018 2:51 pm

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 » Sat Aug 11, 2018 12:45 am

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!


RadMX5_CurrentTune.msq
(134.39 KiB) Downloaded 119 times
Test_Drive_2_2018-08-11_16.35.39.msl
(3.65 MiB) Downloaded 323 times
trigger errors.msl
(1.36 MiB) Downloaded 331 times
Last edited by RadMx5 on Tue Aug 21, 2018 11:12 pm, edited 1 time in total.

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

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

Post by kb1gtt » Sat Aug 11, 2018 10:57 am

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 » Tue Aug 21, 2018 11:02 pm

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 1744 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 318 times

puff
contributor
contributor
Posts: 2738
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 » Tue Aug 21, 2018 11:34 pm

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: 579
Joined: Wed Feb 17, 2016 12:24 am

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

Post by stefanst » Wed Aug 22, 2018 1:47 am

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 1736 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 » 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:

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
Soldering skill: yes
Coding skill?: yes

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

Post by alexander-n8hgeg5e » Sun Dec 09, 2018 7:16 pm

Cool :D the clutch slips means engine runs good.

mck1117
running engine in first post
running engine in first post
Posts: 251
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish
Soldering skill: yes
Coding skill?: yes

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

Post by mck1117 » Mon Dec 10, 2018 6:25 am

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: 3489
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

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

Post by kb1gtt » Mon Dec 10, 2018 11:21 am

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 » Tue Jun 11, 2019 8:53 pm

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
russian
Site Admin
Posts: 9779
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by russian » Tue Jun 11, 2019 9:05 pm

> What is the current status of the rusEFI?
https://github.com/rusefi/rusefi/blob/m ... gy_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.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

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

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

Post by kb1gtt » Wed Jun 12, 2019 2:50 am

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 » Sun Jun 16, 2019 1:04 pm

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 803 times
IMG_3465.JPG
IMG_3465.JPG (426.38 KiB) Viewed 803 times
IMG_3464.JPG
IMG_3464.JPG (322.25 KiB) Viewed 803 times
IMG_3463.JPG
IMG_3463.JPG (590.61 KiB) Viewed 803 times

User avatar
russian
Site Admin
Posts: 9779
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by russian » Sun Jun 16, 2019 2:00 pm

This diff is not orange :( It's not rusEfi-compatible if it's painted blue :(
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

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 » Sat Jul 06, 2019 9:24 pm

helloo!

Quick update :)

Here are some photos:
IMG_E3547.JPG
IMG_E3547.JPG (2.3 MiB) Viewed 707 times
IMG_E3546.JPG
IMG_E3546.JPG (2.04 MiB) Viewed 707 times
IMG_3646 - Copy.JPG
IMG_3646 - Copy.JPG (3.35 MiB) Viewed 707 times
IMG_3645.JPG
IMG_3645.JPG (2.66 MiB) Viewed 707 times
IMG_3644.JPG
IMG_3644.JPG (1.23 MiB) Viewed 707 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: 3489
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

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

Post by kb1gtt » Sun Jul 07, 2019 12:16 am

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 » Mon Jul 08, 2019 5:21 pm

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