Page 3 of 4

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

Posted: Thu Dec 07, 2017 10:14 am
by RadMx5
Beautiful gauges placement!
Thanks russian! :)
Do you have a log of the 6500 RPM issue?
Ok ok, I'll get some logs first, maybe will scope the signal again with the extra thick ground cable and we can start from there.
hmmm... I don't think it could be the STM performance issue, but I can also try the test with two discovery boards.

It looks more like some hardware problem, signal filtering, some component maybe is soldered badly?
Or maybe its the ground cable of the crankshaft sensor? But this wouldn't make any sense because the car revs perfectly to 7000RPM on stock ECU.

As you all know since I have changed the crank pull-up resistor to 5k it seems a bit better, previously I was only able to rev to about 5000 RPM now it revs higher. Maybe I should try a 10k? :? :?:

I'll spend more time on this problem probably this weekend and will try to show you all the results.

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

Posted: Thu Dec 07, 2017 11:46 am
by kb1gtt
Cool and keep us posted. Especially if you get scope captures which show the trailing and falling edges, as well the scope can show you your GND voltage referenced to the batt negative terminal.

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

Posted: Sat Feb 03, 2018 1:53 am
by AndreyB
Can you please post a picture of your board? I am mostly interested in the breakout section wires.

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

Posted: Mon Feb 05, 2018 5:21 pm
by RadMx5
I'm currently waiting for an enclosure for the frankenso. Russian when I get back home I can give you more details about the wire connections if you require?

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

Posted: Wed Feb 28, 2018 9:13 pm
by RadMx5
I had a chance to design and 3D print this enclosure for my frankenso board.
The enclosure does the job! I'm really happy with it.

Also I have a little problem with the LCD screen, the third and fourth lines don't display correctly.
Datasheet: http://www.farnell.com/datasheets/2021794.pdf?_ga=2.148292404.2062789835.1519852061-829666683.1519852061

Some Photos:

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

Posted: Wed Feb 28, 2018 9:17 pm
by RadMx5
You can modify the enclosure using onshape or any other free cad software if you like. The enclosure has some clear plastic windows, to see whats going on inside, its usefull to see the LEDs. I have used 3mm clear plastic. It' is glued to the enclosure using super glue :)

By the way... It wasn't easy to solder those USB wires.

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

Posted: Wed Feb 28, 2018 10:13 pm
by kb1gtt
Very nice, very nice.

I might have suggested to use extension cables, then glue the connection instead of soldering wires directly to the PCB.

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

Posted: Wed Feb 28, 2018 11:32 pm
by Abricos
beautiful enclosure ...

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

Posted: Thu Mar 01, 2018 10:31 am
by kb1gtt
I searched onshape for several things like frankenso, rusEFI, etc. I could not find it at onshape. Should I be able to find it at onshape? If so can you share a link? I would like to like it over there.

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

Posted: Thu Mar 01, 2018 11:30 am
by kb1gtt
So I guess now I'm going to need to do the 3D thing to the Frankenso board. You should be able to find the frankenso board at onshape now.

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

Posted: Thu Mar 01, 2018 3:34 pm
by RadMx5

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

Posted: Thu Mar 01, 2018 9:59 pm
by kb1gtt
RadMx5 wrote:
Wed Feb 28, 2018 9:13 pm
Also I have a little problem with the LCD screen, the third and fourth lines don't display correctly.
I do not follow. The picture provided appears to be correct. What is not displaying correctly?

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

Posted: Thu Mar 01, 2018 10:34 pm
by RadMx5
I found the below photo here: https://rusefi.com/forum/viewtopic.php?f=5&t=1301&p=27691&hilit=lcd#p27691
It shows the correct menu display.
12.bmp
12.bmp (730.18 KiB) Viewed 22173 times
On my LCD those lines seem to be shifted to the right, and I donn't know why :?:
My LCD below:
565.bmp
565.bmp (705.71 KiB) Viewed 22173 times

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

Posted: Fri Mar 02, 2018 2:24 am
by AndreyB
Your connector looks a bit different but should be standart protocol. Could be I am not following the specs precicesly and for your variation it matters?

No idea is what I am trying to say :)

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

Posted: Fri Mar 02, 2018 10:31 am
by kb1gtt
In the datasheet for yours, I do not see any claim that it is HD44780 compliant. I believe the one used on Frankenso, is HD44780 and should work with other LCD's that are HD44780 compliant. Perhaps you can find the variation from the below vs your datasheet.
https://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller

In a quick look I see some variations, noted below.
Hitachi_HD44780 then yours
-- enter mode set 37uS your is 38uS.
-- Cursor/display shift 37uS your is 38uS.
-- Several others are 37 vs 38us.

I see on Faranell's page, this note
On board controller SPLC780 or equivalent (HD44780 derivative)
At the below, I see someone making claim that the SPLC780 different timer was causing problems.
https://www.eevblog.com/forum/beginners/lcd-hd44780-vs-splc780d-whats-the-difference-good-large-lcd/

A google search for HD44780 SPLC780 problem produces many hits. To me it appears the SPLC780 is a slower version of the HD44780. I would say look at those timings and see what you find. Also perhaps test it with a shorter cable. The cable is also adding some timing delays.

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

Posted: Fri Mar 02, 2018 10:40 am
by kb1gtt
From the below link
https://rusefi.com/docs/html/lcd___h_d44780_8cpp_source.html

I see

Code: Select all

lcdSleep(40); // commands need > 37us to settle
Can you compile the code? If so you could try some modifications to this part of the code. If you find that changing the above 40 to something like 45 fixes the problem, I'm sure @ would be happy to make some changes. It appears he was developing against the D44780 Wikipedia page.

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

Posted: Wed Mar 07, 2018 10:38 am
by RadMx5
Can you compile the code?
I'm not able to compile the code yet, have not prepared my PC for firmware coding yet... I need to sort my PC out anyway :roll:


I have downloaded the latest bundle yesterday, I've uploaded the firmware this morning, and noticed the alternator does not charge, all the setting are as they were before. It was working on the previous version of the bundle. I have also noticed some extra options for battery charging.

Does anyone else have this problem using the latest bundle?

Thanks!

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

Posted: Thu Mar 08, 2018 3:58 am
by AndreyB
What version were you running before? I do not remember any changes around anything battery or alternator-related for quite some time.

https://rusefi.com/wiki/index.php?title=Manual:Debug_fields is a not so user-friendly way of getting additional visibility into what is the firmware doing, one of these modes covers alternator control.

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

Posted: Tue Apr 17, 2018 8:58 pm
by atntpt
Hi, how's your car running ? im planning to upgrade my MS2 on my turbo 5 :D im a bit afraid about trigger problems ! I think I would put a Schmitt trigger :idea: between the signal and the CPU. It would clean the signal! Also I plan to use oem 36-1 trigger wheel if a sort out how to configure it( if it is even possible) :?: :?:
about MAP sensor how do you wired it? It outputs 5v at Max pressure how did you converted the signal? For alternator control I saw you had it working! Great ! Less mess in Proto area :lol: :lol: :lol:

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

Posted: Mon Apr 23, 2018 3:29 pm
by RadMx5
I wasn't here for a while!

russian:
What version were you running before? I do not remember any changes around anything battery or alternator-related for quite some time.
If I remember correctly I have just uploaded the same firmware again and it worked, but I have no idea what could cause this, it doesn't matter now :)

atntpt:
Hi, how's your car running ?
My car is in parts now... :cry: but it was running good. (apart from cranking the engine...) The engine needs some attention now.
I'm rebuilding the engine (not completely just new piston rings and cleaning everything). I will be getting all the turbo parts shortly.

The engine is out and while it's out I thought to fix the rusty chassis, remove some unused components from the engine bay, and clean the subframe.

atntpt:
It outputs 5v at Max pressure how did you converted the signal?
Don't worry about the 5V signal as the MAP sensor goes through this opamp circuit shown below, and as you can see at the output of the op-amp circuit there is a voltage divider. The Max 5V signal gets divided to 2.5V and that signal goes to STM controller. (kb1gtt please correct me if I'm wrong)
The MAP sensor settings I''m using are predefined in TunerStudio.
So you just select the MAP you use:
MAP.png
MAP.png (17.33 KiB) Viewed 21877 times

Here is the schematic I've used on the Frankenso side:
MAP Connection.png
MAP Connection.png (20.68 KiB) Viewed 21877 times
atntpt:
about MAP sensor how do you wired it?
In the engine bay, if I remember correctly I simply used the original MAF wire as a signal Input, Ground also from MAF harness, and 5V supply from TPS.
So, I have two plugs, when I use stock ECU I unplug MAP and use MAF, and vice versa.

I hope this helps a bit :)

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

Posted: Fri Apr 27, 2018 3:11 pm
by RadMx5
Some photos from last weekend:
received_2517686525124133.jpeg
received_2517686525124133.jpeg (1.11 MiB) Viewed 21829 times
received_2517689631790489.jpeg
received_2517689631790489.jpeg (1015.33 KiB) Viewed 21829 times
received_2517687905123995.jpeg
received_2517687905123995.jpeg (1.12 MiB) Viewed 21829 times
received_2517687751790677.jpeg
received_2517687751790677.jpeg (1.09 MiB) Viewed 21829 times
received_2517687635124022.jpeg
received_2517687635124022.jpeg (1.12 MiB) Viewed 21829 times
received_2517686665124119.jpeg
received_2517686665124119.jpeg (1.07 MiB) Viewed 21829 times
received_2517687351790717.jpeg
received_2517687351790717.jpeg (1.08 MiB) Viewed 21829 times
The subframe and rest of the front parts have been sand-blasted and now waiting for powder coating.
I'll upload some photos once I get everything together :)

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

Posted: Sun May 06, 2018 11:49 am
by RadMx5
Little progress...

Subframe with new poly bushes is in the car now, resprayed engine bay as well for fun :)
Need to finish relocating the wires on the other side and it should be ready. The engine is not ready yet...
I have de-powered the steering rack and I can tell the steering wheel is easy to spin but there is no engine in the car yet :)

I managed to do only two pics, as the phones battery died :cry:
31947879_2524257797800339_4289614078827036672_n.jpg
31947879_2524257797800339_4289614078827036672_n.jpg (432.39 KiB) Viewed 21780 times
31934387_2524257764467009_4914579876784111616_n.jpg
31934387_2524257764467009_4914579876784111616_n.jpg (499.26 KiB) Viewed 21780 times
The challenge will be to keep it clean after it's all done :D :lol:

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

Posted: Wed Jul 04, 2018 10:18 pm
by RadMx5
IMG_0150.JPG
IMG_0150.JPG (2.12 MiB) Viewed 21584 times
Hello!

There is some progress :) I just received the TD04 Turbo ! 8-) 8-)

It takes so long because I do so many different things at the same time... but it slowly starts looking more like a drift car.

Will reroute the coolant line, you can see on those photos I have removed the front thermostat line completely and modified the coolant flange so I can still have my heating working :) I'll get some ebay pipes and tubes to connect it all to the radiator.

There are a few things left to do:
- get new trigger wheel (36-1) from Mazda Protege
- get new spark coils for sequential spark (COPs - Coil on plug)
- fit oil temperature and pressure gauges,
- Wire up new knock sensor,
- Change the engine wiring slightly (tidy up),
- Make new fuel line,
- Make new intake manifold,
- Exhaust manifold for turbo and down pipe,
- Connect oil lines to the turbo (using back cylinder head oil pressure output)
- Connect water lines to the turbo,
- finish hydraulic handbrake line,
- maybe new aluminum radiator...
IMG_0083.JPG
IMG_0083.JPG (540.16 KiB) Viewed 21584 times
IMG_0129.JPG
IMG_0129.JPG (1.57 MiB) Viewed 21584 times
IMG_0145.JPG
IMG_0145.JPG (2.07 MiB) Viewed 21584 times
IMG_0146.JPG
IMG_0146.JPG (2.11 MiB) Viewed 21584 times
IMG_0150.JPG
IMG_0150.JPG (2.12 MiB) Viewed 21584 times
IMG_0152.JPG
IMG_0152.JPG (1.18 MiB) Viewed 21584 times
IMG_0153.JPG
IMG_0153.JPG (1.14 MiB) Viewed 21584 times
IMG_0156.JPG
IMG_0156.JPG (2.28 MiB) Viewed 21584 times
IMG_0159.JPG
IMG_0159.JPG (1.15 MiB) Viewed 21584 times
IMG_0161.JPG
IMG_0161.JPG (2.12 MiB) Viewed 21584 times

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

Posted: Sun Jul 29, 2018 3:33 pm
by AndreyB
Love orange under the hood, or is a bonnet?

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

Posted: Mon Jul 30, 2018 11:24 am
by RadMx5
Thanks russian!

The hood (North American English) or bonnet (Commonwealth English excluding Canada) https://en.wikipedia.org/wiki/Hood_(car) So, I don't care, whatever! :lol:

I'm getting closer to crank the engine, if I get lucky it will happen this week.

I have downloaded the latest bundle, and it seems like you removed the "invert signal" feature from tuner studio for crank and cam inputs ...
So I can't use the op-amp setup anymore...

But maybe that's even better because I had some weird trigger issues in past.
I have just ordered the MAX9927 dedicated crank/cam interface chip, so will use it when it arrives.

Also I have added the Knock sensor interface. I want to use it just as an indicator while mapping.
What is the best way to set it up?

I have also ordered the D585 Ignition coils , and will run Wasted spark instead of Sequential (less mess with the wiring...)

Will post more photos and maybe a video later :)
Anyway, I hope the engine will start...

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

Posted: Mon Jul 30, 2018 12:34 pm
by AndreyB
RadMx5 wrote:
Mon Jul 30, 2018 11:24 am

I have downloaded the latest bundle, and it seems like you removed the "invert signal" feature from tuner studio for crank and cam inputs ...
So I can't use the op-amp setup anymore...
It was not removed, I rarely remove features. It was moved to the section where trigger physical inputs are defined.

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

Posted: Thu Aug 02, 2018 7:05 pm
by RadMx5
Thanks. Ive found it :)

I use the latest bundle.

In tuner studio in the "test I/O" tab the "Idle Air Valve" is not working... when button pressed nothing happens.

In rusEFI console, when I bench test the Idle Valve by pressing the "Test" button, I get very little signal out. I have tested all the low side drivers on the PCB and they seem to work.

By default on the PCB, PC13 pin is connected to Q404 low side driver, so if I use pin PC13 to drive injector, and I bench test it in rusefi console or tuner studio it works. This proofs that PC13 pin and the driver are ok.

When I use any other available pin to drive the Idle Valve and I bench test it I get very low signal, that is not able to activate the low side driver.

Please could anyone do an I/O test for the "Idle Valve" in tuner studio and rusefi console using the latest bundle to check this bug?

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

Posted: Fri Aug 03, 2018 11:52 pm
by RadMx5
Cranking no good, but car fired up for the first time (I didn't record a video) and unexpectedly is even idling.

Looks like only the bench test is not driving the idle valve what made me think the idle valve is not working. You must of made some changes to the firmware as the idle valve seems a lot quiter and better ;)

Ill take some pictures tommorow, and upload logs. I can go to bed now...

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

Posted: Sat Aug 04, 2018 9:46 am
by kb1gtt
That's some good news. Well look forward to a video. Congratulations.

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

Posted: Tue Aug 07, 2018 7:12 am
by RadMx5