[README] MREAdapter48 pnp Miata MX5 NA

Hardware inside and outside of the ECU
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

Attachments
MRE_pnp_NA.png
MRE_pnp_NA.png (47.03 KiB) Viewed 23601 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: microRusEfi pnp Miata MX5 NA

Post by AndreyB »

TBD
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: microRusEfi pnp Miata MX5 NA

Post by AndreyB »

TBD
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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi pnp Miata MX5 NA

Post by stefanst »

It's spring, convertibles are coming out to play (maintaining proper social distancing of course). I volunteer my testing-services for this board. When will it be available for sale?
Crazy Striker
kit assembler
Posts: 145
Joined: Wed Aug 08, 2018 6:05 pm
Location: Brest, Britanny, France

Re: microRusEfi pnp Miata MX5 NA

Post by Crazy Striker »

Yes perfect Miata time.
I'm tidying up the routing on the board (a few days), there is approx 12-14 days from ordering to delivery, add the dropshipping time to that and you have it. I will update design status as often as possible.

Gwendal
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi pnp Miata MX5 NA

Post by stefanst »

Crazy Striker wrote:
Fri Mar 27, 2020 7:25 pm
Yes perfect Miata time.
I'm tidying up the routing on the board (a few days), there is approx 12-14 days from ordering to delivery, add the dropshipping time to that and you have it. I will update design status as often as possible.

Gwendal
Sounds great!
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: microRusEfi pnp Miata MX5 NA

Post by AndreyB »

Schematics added to first post, still with missing LED resistors...
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
Crazy Striker
kit assembler
Posts: 145
Joined: Wed Aug 08, 2018 6:05 pm
Location: Brest, Britanny, France

Re: microRusEfi pnp Miata MX5 NA

Post by Crazy Striker »

For 3D view lovers ;)
pnp48_isometric.jpg
pnp48_isometric.jpg (155.06 KiB) Viewed 23285 times
Cheers

Gwendal
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi48adapter pnp Miata MX5 NA

Post by stefanst »

First batch of 10 boards ordered. Now let's see if shipments from China still make it here.
The suspension is palpable.
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi48adapter pnp Miata MX5 NA

Post by stefanst »

I just realized that U2 and U3 won't be populated. I can order some with my next order from Digikey.
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi48adapter pnp Miata MX5 NA

Post by stefanst »

Just looking through the schematic, trying to figure this thing out. I have a few questions:

- On the injectors: How are the schottkys in series with the LEDs suposed to work. Seems to me like we'll send 12V straight to the LEDs and blow them up as soon as an injector output goes low. Should the diodes be reistors?
- On the High level outputs we got a similar picture: Schottkys in line with LEDs hooked straight to 12V. Not sure what that's for. But it looks like when the high-out is turned off, whatever is hooked up to the output will be pulled high by the LED and Schottky, assuming the output does not pull low when turned off.
- On the left "174917" connector we have 1V and 2A both hooked up to 22. To make up for it 48 is not connected. What's the purpose of this?

Also: Which connector is the one coming from MicroRusefi? Both big connectors are labeled 174917 which would be the standard 48 pin Miata connector. It looks like the MRE connector is kind of scattered all over the schematic.
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: microRusEfi48adapter pnp Miata MX5 NA

Post by AndreyB »

Boards come in boring green, at least we can install used RED connectors from Honda ABS units. Plug compatibility confirmed.
Attachments
miata_48_pin_used_connectors.jpg
miata_48_pin_used_connectors.jpg (702.47 KiB) Viewed 23093 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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi48adapter pnp Miata MX5 NA

Post by stefanst »

Funny you should be talking about exciting red connectors.
1st assembled.jpg
1st assembled.jpg (337.27 KiB) Viewed 23053 times
Board is assembled and being tested on the engine simulator. We are dropping sync a lot. See below:

Code: Select all

020-04-23_13_13_10_646: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_10_646: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_745: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_746: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_846: EngineState: time=616 index=0: gap=0.229 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_847: EngineState: time=616 index=0: gap=5.587 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_856: EngineState: time=616 index=0: gap=0.781 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_956: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_10_956: EngineState: error: synchronizationPoint @ index 24 expected 4/8/0 got 9/16/0
2020-04-23_13_13_10_966: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_056: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_057: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_11_057: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_147: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_148: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_249: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_249: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_11_258: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_350: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_350: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_449: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_449: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 5/8/0
2020-04-23_13_13_11_459: EngineState: time=616 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_551: EngineState: time=616 index=0: gap=1.507 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_551: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_11_561: EngineState: time=616 index=0: gap=0.663 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_563: EngineState: time=616 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_565: EngineState: time=616 index=0: gap=0.033 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_651: EngineState: time=617 index=0: gap=18.652 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_652: EngineState: time=617 index=0: gap=1.589 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_664: EngineState: error: synchronizationPoint @ index 13 expected 4/8/0 got 5/9/0
2020-04-23_13_13_11_755: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_756: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_853: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_853: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_954: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_954: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_11_954: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_12_056: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_056: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_157: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_157: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_171: EngineState: error: synchronizationPoint @ index 12 expected 4/8/0 got 4/9/0
2020-04-23_13_13_12_174: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_254: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_254: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_358: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_358: EngineState: time=617 index=0: gap=0.662 expected from 0.895 to 1.940 error=Yes
2020-04-23_13_13_12_457: EngineState: time=617 index=0: gap=1.508 expected from 0.895 to 1.940 error=Yes
dropped sync 2.png
dropped sync 2.png (81.66 KiB) Viewed 23053 times
dropped sync 3.png
dropped sync 3.png (79.11 KiB) Viewed 23053 times
dropped sync 4.png
dropped sync 4.png (80.15 KiB) Viewed 23053 times
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: microRusEfi48adapter pnp Miata MX5 NA

Post by stefanst »

Trigger log attached.
Attachments
2020-04-23_13.27.22.csv
(2.76 MiB) Downloaded 397 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: microRusEfi48adapter pnp Miata MX5 NA

Post by AndreyB »

You have an older microRusEfi running with a harness adapter, have you ever put that older on the the stim? it would be interesting to compare notes. In case of differences I would double-check that Hall divider and pull-up values.

in latest firmware TLE8888 dialog now has "mode" dropdown. So far we've tried "default" and "manual" mode (NB2 likes "manual" mode of TLE8888). Let's try "hall" mode now?
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

https://github.com/rusefi/rusefi/issues/897 was the issue, this would never happen again. Thank you Matt for improving the user experience around this feature!
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

Link to documentation added to first post

@stefanst, how many millimetres off are we?
Attachments
MRE48_0.1_issue.jpg
MRE48_0.1_issue.jpg (278.78 KiB) Viewed 22809 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

Thank you Stefan!

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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: MREAdapter48 pnp Miata MX5 NA

Post by stefanst »

AndreyB wrote:
Wed May 06, 2020 12:54 am
Link to documentation added to first post

@stefanst, how many millimetres off are we?
Not sure how far we're off, but the connector should be in the exact center between the front mounting holes (PCB to case, approx 120mm apart). That would mean approx 17.5mm from each PCB mounting hole.
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: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

Maybe some SD card shield to get SD card via SPI? Please not SD-card socket on the board or at least I would prefer not to be soldering those, those are tricky to solder in my experience :(

I have a bunch of "Mini Data Logger Logging Shield Module Board For Arduino For Raspberry Pi Recorder Shield SD Card 3.3V Regululator"
Attachments
sd_clock_module.jpg
sd_clock_module.jpg (379.15 KiB) Viewed 22442 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

https://github.com/rusefi/rusefi/wiki/Miata is the latest page trying to paint the whole picture of Mazda Miata MX-5 Standalone plug and play.
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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: MREAdapter48 pnp Miata MX5 NA

Post by stefanst »

We have a working proof of concept. MRE on 48 pin board works with a cheap ($1.20) microSD adapter board from Amazon. As soon as the ECU fires up, it starts logging.
rusefi with spi microSD.jpg
rusefi with spi microSD.jpg (133.6 KiB) Viewed 22127 times
Two requests if I may:
1. Please include footprint for microSD adapter in the next gen board design. I believe @andrey suggested this model: https://www.amazon.com/DAOKI-Module-Storage-Expansion-Arduino/dp/B07XF4RJSL/ref=sr_1_18?dchild=1&keywords=micro+sd+arduino&qid=1589498498&sr=8-18
2. While I am willing to partially disassemble the interior of my car and take apart the ECU in order to get to my precious data, a way to retrieve the data via USB would be much preferred. Even if the ECU would have to be booted into a different (data transfer) mode. Any way to achieve this?
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: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

stefanst wrote:
Thu May 14, 2020 11:27 pm
Any way to achieve this?
Bribes. At this point it's unclear whom to bribe and in what amount.

Interesting relevant fact that both Proteus 0.3 and microRusEFI all use stm32f427 instead of stm32f407 - that gives us a bit of extra RAM and USB hardware on the chip is a bit more powerful with more "endpoints" whatever it means. We just need one developer to dive into this and we should have USB composite device and USB Mass Storage Device... Maybe. There are probably multiple ways to get there.
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

@stefanst reports the following SD cards working with rusEFI SPI code, all the way up to 64Gb!

Theoretically some cards no longer support SPI mode but looks like there is still enough cards supporting it. See also https://github.com/rusefi/rusefi/issues/1417
Attachments
rusEFI SD cards.png
rusEFI SD cards.png (412.72 KiB) Viewed 22118 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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: MREAdapter48 pnp Miata MX5 NA

Post by stefanst »

AndreyB wrote:
Thu May 14, 2020 11:34 pm

Bribes. At this point it's unclear whom to bribe and in what amount. [...]
I bribe exclusively with alcoholic beverages. Who's the bribee?
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: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

@stefanst and @kb1gtt have made a lot of improvements, version 0.2 ordered! Hopefully @stefanst would get PCBs in about 10 days.

https://github.com/rusefi/rusefi/wiki/MREAdapter48 has links to 0.2 schematics and iBom
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MREAdapter48 pnp Miata MX5 NA

Post by AndreyB »

Rumors are that MREAdapter48 0.2 is a major success but only @stefanst knows for sure.
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
stefanst
contributor
contributor
Posts: 703
Joined: Wed Feb 17, 2016 12:24 am
Location: USA 08530

Re: MREAdapter48 pnp Miata MX5 NA

Post by stefanst »

The board seems to be a success indeed. I went for several longer rides without any issues. We have a working tune using MAP and a somewhat working tune (needs a better spark table) for running MAF. Idle compensation (closed loop idle) seems to begin working as well. The engine hasn't self-stalled in a while.

A first draft on instructions can be found here: https://github.com/rusefi/rusefi/wiki/Miata-NA-48-pin-board-for-MRE
fan
Posts: 46
Joined: Tue Jul 07, 2020 8:42 pm
Location: Georgia USA

Re: MREAdapter48 pnp Miata MX5 NA

Post by fan »

Hi all,

Is there a way to get the 0.2 MRE board either preassembled or kit? I have a 91' NA6 which I am planning to go boost with.

Thanks in advance!
Post Reply