Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.
Hopefully people are not getting 'exhausted' with this build. Oh well, I will just reply to myself ;)

So now that the exhaust was sorted, it was time to figure out an intake.



The stock K8 flex coupler and VAF take up a lot of room. This is the straight neck KLZE intake which is the hardest to fit in, but flows best. Most people who swap these engines into MX-3s use a curved neck to clear the battery better.

I mocked up a filter, silicone reducer and 90 degree pipe.



Not too bad, but the stock battery was definitely not fitting back in there. Time to go battery shopping at costco.



Top is the stock 323 battery (group 35). Bottom is a group 51R, used in modern Hondas. Height and length are pretty similar. Width gives me enough room for the intake piping.

I wasn't happy where the filter was sitting. The stock pickup scoops air from the fender area. I also needed some sort of a support for the filter end; it was too floppy otherwise. I've never welded aluminum before, but figured I might as well put my TIG to good use.

I took some scrap pipe and after four or five tries I had this:


Okay, looks decent enough, let's try the real thing.


A little rougher, but not too bad. For whatever reason I needed to use a lot more filler rod on this tubing than my practice piece.

It fits in nicely with the new battery. I also welded a support bracket to the underside.



The polished pipe has to go. Nothing else is shiny in the engine bay. I glassbeaded and clearcoated the pipe. It looks a lot more like cast aluminum now. Hard to capture in the pictures.



I also modified and shortened the 323 battery hold down. I had to extend one side, add some new bends and shorten the top piece.



I had a Honda battery box laying around. It also fit well and made everything look more finished and factory.

Adbot
ADBOT LOVES YOU

Terrible Robot
Jul 2, 2010

FRIED CHICKEN
Slippery Tilde
I love this thread. Excellent work on the intake

Wrar
Sep 9, 2002


Soiled Meat
That intake looks fantastic. Are you going to build a box for it?

Applebees Appetizer
Jan 23, 2006

Well done. Can't wait to hear how it drives!

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.

Wrar posted:

That intake looks fantastic. Are you going to build a box for it?

Thanks guys.

Not sure yet. I haven't figured out why the factory air pickup tube was in the fender. I don't see a lot of air ducting for it, I might have to think up something for that.

Suburban Dad
Jan 10, 2007


Well what's attached to a leash that it made itself?
The punchline is the way that you've been fuckin' yourself




Sgt Fox posted:

Thanks guys.

Not sure yet. I haven't figured out why the factory air pickup tube was in the fender. I don't see a lot of air ducting for it, I might have to think up something for that.

Because it's cooler than the engine bay.

wesleywillis
Dec 30, 2016

SUCK A MALE CAMEL'S DICK WITH MIRACLE WHIP!!

Larrymer posted:

Because it's cooler than the engine bay.

This^^^^^

Also, with the bumper and various plastic shielding, it makes it a bit more immune to sucking up water during puddle hopping sessions. With the caveat of course being: don't drive through deep water.

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.
Yeah, makes sense. The MX-3 even had little ducts from under the lights/fender to the battery box. Given they were scooping air from the front, I assume they were trying to get airflow over the battery. I wonder if this was for cooling or to try to dissipate any hydrogen gas? Battery box wasn't fully closed so gas buildup seems unlikely.

I'm tempted to try to retrofit then over.

IOwnCalculus
Apr 2, 2003





Mazda kept that up through at least the MS3 - a duct straight from the grille to the battery box.

randomidiot
May 12, 2006

by Fluffdaddy

(and can't post for 11 years!)

Just catching up on this thread, but holy poo poo, amazing work all the way around, but especially in the reverse-engineering.

Sgt Fox posted:

Not sure yet. I haven't figured out why the factory air pickup tube was in the fender. I don't see a lot of air ducting for it, I might have to think up something for that.

Nthing the "cooler air" part, but it's also to help quiet down intake noises. Every EFI car I've owned had the factory air intake in the fender and/or behind the bumper.

It'd be great if you could still keep it pulling cold air from outside, it would really help on hot days. That short ram is going to hurt you on hot days... (but it'll sound a lot better!)

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.
Let's step back from the mechanical stuff for this post and revisit the ECU maps. If you remember, the MX-3 ECUs (K8) had different dimensioned fuel and timing tables than the KLZE (KL31) Japanese ECUs.

For example, here is the high timing map from a K801:


15x17 in size.

Here is the KL31:


14x15 in size.

Obviously you can't copy the Japanese map into the K8 ECU. This got me thinking. I figured there are two possible reasons for the table size difference. One reason could be that the K801 table has a greater range of values, ie, it has data for higher RPM and higher load. I would have expected the KLZE ecu to have more RPM range, not the little 1.8L ecu. The two tables look very close in shape, it does not look like they added data on the upper end of the ranges. That leaves the other explanation, that the K8 ECU has a higher resolution on load and RPM. Again, not sure why, but it seemed the most likely option. This is obviously all guesswork.

If we suppose that the K8 has the same range in the table, but just more data points, that means we have to take the KL31 ECU map and linearly expand it. Think of it like stretching a quilt evenly in size. You have the same pattern, but it occupies more space.

How can we do this? Like most of life's problems, this one can be solved with maths. Enter bicubic interpolation. This is a method of calculating data points based on their neighbors in a 2D array.

You can get an idea from this (black dot is the interpolated value):


Cubic takes the values of more than it's immediate neighbours into account.

Wikipedia walks us through the math:





Yeah, so I'm an Engineer, not a Mathematician and I've conveniently 'lost' my copy of Matlab from university, so let's think of an easier way. What uses bicubic interpolation? Image processing! I bet there is a library for performing this on an array. In fact, Paint.net has this as an option when resizing images..



Great, well I'm sure I can find the source code somewhere. Then I got to thinking. A bitmap image is technically an array of pixels, where a set of values represent each pixel.



For an 8-bit monochrome bitmap image, the image is broken down into an array of 8 bit (or 1 byte) pixels. Each pixel stores the gray level, ie, a value from 0-255. (For a colour image, you will have three bytes per pixel, for red, green and blue levels) Conveniently, the timing value is also 1 byte, or 0-255, 0x00-0xFF.



So, I could easily write a program to create a 8-bit bitmap with the gray level data as the values from my timing array.

So, this:
code:
78 96 af c0 cd d0 c9 c7 bc c4 c7 d2 d3 d5
78 96 af c0 cd d0 c9 c7 bc c4 c7 d2 d3 d5
74 96 ab b6 c7 cf c5 c4 b7 c2 c5 d0 d2 d3
67 7d 9b a3 b8 c9 bc bc aa bf bf cd ce cd
49 73 91 9a a6 bd b3 b3 a0 b6 b2 c7 c8 c4
3d 72 83 8f 9c b2 ab aa 9a a9 aa c0 c1 bb
32 71 82 8c 9b a6 a1 a0 92 a0 a3 b6 b9 b4
31 6b 7e 8a 99 a4 a0 9f 90 99 9d af b2 ae
2f 61 75 87 95 a3 9e 9e 8e 95 98 ab ae aa
23 4c 6a 83 91 9e 97 98 8c 93 97 a7 a9 a7
23 3f 57 76 8b 98 8f 8f 88 91 95 a1 a6 a4
23 3d 49 68 7d 8f 7f 86 81 8b 93 a1 a1 9d
23 3d 49 68 7d 83 78 79 73 83 8e 9e 97 9c
23 3d 49 68 7d 83 78 77 69 7d 85 89 85 9c
23 3d 49 68 7d 83 78 77 69 78 85 89 85 9c
becomes:


Which means I can now load it into Paint.net and resize it to 15x17 pixels.



We can then run it back through the bitmap to bit array program we wrote to get:

code:
77 92 AB BC C9 D0 CC C8 C2 BD C5 C9 D2 D3 D5
77 92 AB BC C9 D0 CC C8 C2 BD C5 C9 D2 D3 D5
74 93 AA B6 C5 CE CA C5 BF BA C3 C7 D0 D2 D4
6E 84 9D A7 B8 C8 C5 BF B7 B3 C1 C4 CE CF CF
62 75 91 9B A8 BD BD B7 AE AA BB BB CA CA C7
55 72 8A 95 9D B2 B5 B0 A7 A2 B0 B1 C6 C4 BF
4F 6E 86 8E 98 AB AE AA A0 9B A6 AB C0 BE B7
4A 6B 83 8C 95 A6 A9 A5 9C 96 9F A6 BA B9 B0
47 69 80 89 94 A2 A6 A5 9D 94 99 A1 B3 B5 AF
42 66 7C 87 91 9D A2 A2 9C 93 97 9E AD B3 AE
3F 65 79 84 8E 9A 9F 9E 99 93 96 9C AA B1 AD
2F 5C 76 81 8D 97 9A 99 94 91 95 9B A7 AF AB
27 58 69 76 81 92 96 93 91 8F 94 9A A6 AC A9
29 5A 5F 6E 78 86 8A 8B 8C 8B 93 98 A5 A6 A7
29 5A 61 70 7B 7B 7C 85 88 87 91 96 A3 A0 A6
29 5A 61 70 7B 7D 7E 86 87 85 8F 94 A1 9F A7
29 5A 61 70 7B 7D 7E 86 88 86 8E 95 A2 A0 A7
An array of 15x17, which can be stitched into the K8 firmware.



You will notice it shares the same shape/magnitude as the smaller KL31 map, just stretched or interpolated over a larger number of points.

So, I have no idea if my assumptions are correct, but it at least gives a bit of insight into my insanity.

Sgt Fox fucked around with this message at 21:50 on Jul 12, 2018

Seat Safety Switch
May 27, 2008

MY RELIGION IS THE SMALL BLOCK V8 AND COMMANDMENTS ONE THROUGH TEN ARE NEVER LIFT.

Pillbug
Nice abuse of a paint program.

boxen
Feb 20, 2011
"An AI Guide to Waterpump Replacement Step 23: Reprogramming your ECU with MS Paint"

ionn
Jan 23, 2004

Din morsa.
Grimey Drawer
This thread just keeps getting better and better and it's not even up and running yet.

angryrobots
Mar 31, 2005

WHAT THE gently caress :monocle:

That's really cool. MSPaint can really do anything.

Kia Soul Enthusias
May 9, 2004

zoom-zoom
Toilet Rascal
Haha. That's one way to do things.

Any idea if the U.S. KLDE is 15x17? I'm wondering if having a bigger table makes it easier to meet our particular emission requirements?

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.

Charles posted:

Haha. That's one way to do things.

Any idea if the U.S. KLDE is 15x17? I'm wondering if having a bigger table makes it easier to meet our particular emission requirements?

KLDE (KL01 KL07, KL48 and KL57 etc) are 14x15 as well. The K8 ECUs (K801, K834) are the only ones which are 15x17.

meatpimp
May 15, 2004

Psst -- Wanna buy

:) EVERYWHERE :)
some high-quality thread's DESTROYED!

:kheldragar:

angryrobots brought me to this thread, I don't know how I missed it.

As far as your intake goes, I fully support the DIY I did with a period Mazda (MX6 GT with F2T).

I went to the junkyard and found a Yugo. I grabbed the hood scoop and cut out a "U" outline on the top of the hood, then folded it down over a DIY cone filter setup like yours. That way rain was diverted over the filter, but it still sucked in nice, clean air.

Only registered members can see post attachments!

Olympic Mathlete
Feb 25, 2011

:h:



Holy gently caress, you mad genius! That's amazing.

IOwnCalculus
Apr 2, 2003





boxen posted:

"An AI Guide to Waterpump Replacement Step 23: Reprogramming your ECU with MS Paint"

I can't put it better than this.

Wrar
Sep 9, 2002


Soiled Meat
*Paint.NET. :pseudo:

MS paint doesn't have the right resampling algorithm.
:science:

Kazinsal
Dec 13, 2011

Sgt Fox posted:

Bicubic resampling hack

As a computer graphics nerd I knew exactly where this was going as soon as I saw the first two diagrams and the problem and I wasn't disappointed in the least.

This owns, you own, your car owns, your thread owns.

Suburban Dad
Jan 10, 2007


Well what's attached to a leash that it made itself?
The punchline is the way that you've been fuckin' yourself




Can you just convert the values from hex to see what they are so you can confirm your hypothesis about the RPM and such?

e: actually looked at the values and no, that would be too simple.

boxen
Feb 20, 2011

Wrar posted:

*Paint.NET. :pseudo:

MS paint doesn't have the right resampling algorithm.
:science:

At this point, I think Sgt Fox would somehow import the algorithm from some Cold-War-Era Croatian import geiger counter or something by epoxying rare earth magnets to a desk fan and using that as the method of data transmission.

meatpimp
May 15, 2004

Psst -- Wanna buy

:) EVERYWHERE :)
some high-quality thread's DESTROYED!

:kheldragar:

boxen posted:

At this point, I think Sgt Fox would somehow import the algorithm from some Cold-War-Era Croatian import geiger counter or something by epoxying rare earth magnets to a desk fan and using that as the method of data transmission.

He'll replace the ECU with nixie tubes.

CAT INTERCEPTOR
Nov 9, 2004

Basically a male Margaret Thatcher
JFC you are one hell of a insane genius

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.

boxen posted:

At this point, I think Sgt Fox would somehow import the algorithm from some Cold-War-Era Croatian import geiger counter or something by epoxying rare earth magnets to a desk fan and using that as the method of data transmission.

Man, thanks, way to ruin the next part. :| (You were wrong though, its a US cold war geiger counter.)

McTinkerson
Jul 5, 2007

Dreaming of Shock Diamonds


Sgt Fox posted:

Man, thanks, way to ruin the next part. :| (You were wrong though, its a US cold war geiger counter.)



:awesomelon:

Pretty sure we've hit peak AI. It's a shame I only have one 5 to give.

bolind
Jun 19, 2005



Pillbug

boxen posted:

At this point, I think Sgt Fox would somehow import the algorithm from some Cold-War-Era Croatian import geiger counter or something by epoxying rare earth magnets to a desk fan and using that as the method of data transmission.

Sgt Fox posted:

Man, thanks, way to ruin the next part. :| (You were wrong though, its a US cold war geiger counter.)



I love that there is less than two hours between these posts.

BloodBag
Sep 20, 2008

WITNESS ME!



This kind of thread is why I keep coming back to SA. This is THE BUSINESS.

Terrible Robot
Jul 2, 2010

FRIED CHICKEN
Slippery Tilde
Yer a wizard, ‘arry


This thread is a continuous source of amazement and wonder

funeral home DJ
Apr 21, 2003


Pillbug
Local newspaper headline: “Mad Scientist Turns His Efforts to Mazda 323 Swap”

McTinkerson
Jul 5, 2007

Dreaming of Shock Diamonds


Sgt Fox, I'm pretty sure I've said it before but it bears repeating, if you're ever in Alberta, beers are on me.

Also, I think the mad genius types always end up with rotaries. Am I totally off?

wesleywillis
Dec 30, 2016

SUCK A MALE CAMEL'S DICK WITH MIRACLE WHIP!!

McTinkerson posted:

Sgt Fox, I'm pretty sure I've said it before but it bears repeating, if you're ever in Alberta, beers are on me.

Also, I think the mad genius types always end up with rotaries. Am I totally off?

He rebuilt a rotary several years ago. He got like the last factory new rotor chambers left in North America.

mekilljoydammit
Jan 28, 2016

Me have motors that scream to 10,000rpm. Me have more cars than Pick and Pull

wesleywillis posted:

He rebuilt a rotary several years ago. He got like the last factory new rotor chambers left in North America.

:argh:

(OK, I'm also out of good 12A rotors)

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.
Rotaries have a special place in my shop. I've done a few engines over the years. Eventually on the list is helping to fix up a friend's REPU. In fact, a few months ago the local Mazda dealer called me when a guy was looking for a new 12A.

Here is what put the 323 project on hold for a month:



A friend blew his 13B on the first practice event of the year, a month before we were scheduled to go to a race event. He cracked a S4 iron around the rear dowel pin and spread all his oil out on the entire track. Queue a couple weeks of ordering parts and rebuilding and porting. We ended up using Turblown's full stud kit instead of tension bolts. (https://turbosource.com/products/turblown-engineering-13b-rx7-rx8-rotary-engine-stud-kit) This allowed us to go to a higher torque than stock. Interestingly enough, it took over eight passes with a torque wrench to get each exactly equal. Shows there is a fair bit of stretch/load shift on those bolts. Then on the dyno, we found the mazda turbo had a poo poo wastegate. We ended up taking a hole saw and welding an external wastegate up to it. Of course, the week before we were leaving for the race, the poo poo v band clamp broke. Hard thing to find on an island, so I ended up making one out of scrap steel.


As for the chassis, its an AE86 coupe. Its name is Rotorolla (Rotary Corolla)


meatpimp
May 15, 2004

Psst -- Wanna buy

:) EVERYWHERE :)
some high-quality thread's DESTROYED!

:kheldragar:

Sgt Fox posted:

As for the chassis, its an AE86 coupe. Its name is Rotorolla (Rotary Corolla)


That's just dirrrrrrty.

autism ZX spectrum
Feb 8, 2007

by Lowtax
Fun Shoe
god dammit that loving shift to greyscale trick, take your 5 and go

Hulebr00670065006e
Apr 20, 2010
Yeah that was pretty sweet. How do you plan on testing whether your initial assumption was correct or not?

Adbot
ADBOT LOVES YOU

Sgt Fox
Dec 21, 2004

It's the buzzer I love the most. Makes me feel alive. Makes the V8's dead.
In the interest of looking like a bone stock car, I picked up a set of 14" miata steel wheels with Mazda center caps for $40.



They were pretty ugly. A quick sandblast and coat of paint later however, they looked alright:



Someone was asking earlier about motor mounts and tight tolerances. These were the mounts I used, from AWB. They really don't have much flex.


Now that the engine was fired up, it was time to take care of some of the little things. One of these was the tachometer. As you remember, the stock cluster was for a 4 cyl tach. I did not want to swap to the MX-3 cluster, it would not have fit well and I also was not a fan of its appearance.

There are a lot of different tach converters on the market, but I decided to go with TachMatch (https://www.technoversions.com/TachMatchHome.html). It was adjustable to fit your conversion ratio, had a nicely laid out PCB and looked well made. It was also one of the cheaper ones. I wired it up, intercepting the signal from the coil to the tach.



To intercept the signal, I made a little insulator out of delrin and used a couple ring terminals. This way one ring can touch the flex circuit board, and one can touch the screw, which goes through to the tach itself.



I eagerly turned on the car to try it out. Nothing. Boo. Time to toss an oscilliscope on the signals:


Engine was idling (probably high), TachMatch in 1:1 mode. Top waveform is the trigger input, bottom waveform is the TachMatch output. 10V per division, 10ms.

I suspect that the voltage may not be high enough to drive the tach. You can see from the bottom trace that the TachMatch outputs a nice square 12V signal. The top trace is the stock tach signal, which has a high voltage inductive spike. This spike is required to drive the stock Mazda tach.



You can see the voltage spike is quite high, 80+ volts for what the scope can actually capture.

Luckily, the company also makes a voltage boost module. It creates the inductive voltage spike required for the Mazda tach.


I added some electronics grade silastic to the inductor to prevent mechanical vibrational stress on the leads. It's a heavy component, only supported via axial leads so adding some mechanical fastening is important. I also sprayed a silicone conformal coating on both boards, to prevent corrosion.



After wiring it into the cluster, I now had a functioning and accurate factory tach!

Sgt Fox fucked around with this message at 19:28 on Aug 13, 2018

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply