Notices
Speeduino Discussion about Speeduino.

Speeduino - FM 36-2 Trigger Wheel Setup

Thread Tools
 
Search this Thread
 
Old Feb 21, 2024 | 12:29 PM
  #21  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

You mean just the .cpp/.h files? Wouldn't be compiled at that point but I could do that no problem.
Old Feb 21, 2024 | 05:34 PM
  #22  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

I've attached the FW files to this post. Assuming that I did that correctly, the files can be compiled in the Arduino IDE.
The "Time" Library needs to be included/installed for the project to compile. In Arduino IDE's library manager you can find this by typing in "Timelib". The library is written by Michael Margolis.

The only changes in here as far as I'm aware are the Cam profile and the overflow fix. Other than that it should be the same as the October 2023 release.
Attached Files
File Type: zip
MiataCamFW.zip (2.68 MB, 26 views)
Old Feb 24, 2024 | 03:18 PM
  #23  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

Thx SimBa for the good info, I merged the modifications for the +1 cam in the new firmware but I can't test it my car is in the middle of a turbo iunstall.
Here is the *.HEX file I compiled
You can flash your Arduino Mega directly with this program https://github.com/binaryupdates/xLoader
you will have to change the *.ini file in your Tuner Studio project with the one included.
I will test it as soon as I can, if someone tests it and it is good plz let me know.


EDIT: I removed the attached file it was not working

Last edited by adam86; Apr 26, 2024 at 11:44 AM.
Old Feb 24, 2024 | 04:22 PM
  #24  
Alejo_NIN's Avatar
Senior Member
iTrader: (2)
 
Joined: Jan 2007
Posts: 610
Total Cats: 22
Default

was this not added to Feb release?

https://github.com/noisymime/speedui...q8cgPn54pVMmF4

i didn't see anything on the release notes :/

still will try it for the **** of it.
Old Feb 24, 2024 | 04:25 PM
  #25  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

no not added, I will ask around in the discord
Old Feb 24, 2024 | 05:41 PM
  #26  
Alejo_NIN's Avatar
Senior Member
iTrader: (2)
 
Joined: Jan 2007
Posts: 610
Total Cats: 22
Default

whats their discord?
Old Feb 24, 2024 | 07:03 PM
  #27  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

https://speeduino.com/home/ under the community tab
Old Feb 24, 2024 | 07:15 PM
  #28  
Alejo_NIN's Avatar
Senior Member
iTrader: (2)
 
Joined: Jan 2007
Posts: 610
Total Cats: 22
Default

I’m in. Thanks.

Originally Posted by adam86
https://speeduino.com/home/ under the community tab
Old Feb 25, 2024 | 01:33 AM
  #29  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

I messaged Mike, the creator of the Cam pattern, but he doesn't seem very active on Discord. A week or so ago he asked about how it was working for me, and how much testing I did. He still hasn't responded to my last message. I'm guessing he'll try to get it pulled in once he sees my message, especially if there's more people testing it.

I will probably try to patch the Cam FW over the latest master at some point, but I'm fine with what I've got at this point. Plenty of other things to focus on for me.
Old Feb 25, 2024 | 09:44 AM
  #30  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

I will probably try to patch the Cam FW over the latest master at some point, but I'm fine with what I've got at this point.
This is what I did. See post #23, I implemented the new cam trigger pattern to the new master. The code is compiled ready to test, I have tested it on a spare mega and a simulator and seems to work.
Old Feb 25, 2024 | 10:03 AM
  #31  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

Awesome! I misread that post earlier.

I'm still going to hold off for a bit as I've been chasing the 36-2 FW issue and that misfire issue for a while, and my car is finally stable. Once I have my tune fully dialed and I need something to tinker with then I'll try it out.
Again, like I told Mike, I see no reason to stop using this trigger setup.
Old Apr 26, 2024 | 11:41 AM
  #32  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

I finished installing the turbo on my car and wiring sequential ignition. Got it running on wasted spark and pared injection. After that I tried sequential injection and ignition with the +1 cam trigger code from Mike but it only sync correctly half of the time. SimBa got it working because if you run wasted spark but sequential injection, the car will run anyway the fuel is just injected when the valves are closed on the wrong phase. As soon as the valves open the fuel is there waiting.
So I modified the decoder code to sync correctly every time on the right phase of the engine. I use the poll level method I look at the cam signal at a specific crank teeth. The miata cam trigger as one tooth larger than the other so it works very well.
You need to run the car (or crank) and take a composite log. As you can see the level of the cam trigger is different from tooth 8 to 14. So the polling can be done on tooth 8 to 14



Here are my settings, you should set the level of the first phase high if your cas has not been rotated 180°. if the car is not starting change it to low.



I attached the Xloader software to upload the compiled speeduino code (speeduino.ino.hex) to the ecu.
It is simple juste open Xloader.exe, go find speeduino.ino.hex, choose the right board, choose the COM port the ecu is on, clic upload. It will take about 45s



Please get back to this thread with the result if this is working for you, I made a pull request to Speeduino and I need feedback.
Attached Files
Old Apr 26, 2024 | 12:14 PM
  #33  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

Good work figuring that one out Adam. Is this based on the latest master firmware as of April 2024?
Old Apr 26, 2024 | 05:35 PM
  #34  
adam86's Avatar
Newb
 
Joined: May 2013
Posts: 36
Total Cats: 10
From: Quebec
Default

Thx, it was my goal to use the stock cas as a secondary trigger for the miata. I didn't want to cut a tooth from my stock trigger.
The code has been implemented on the current dev firmware.
Old Nov 16, 2024 | 05:20 PM
  #35  
Roland T.'s Avatar
Newb
 
Joined: Jun 2021
Posts: 13
Total Cats: 10
Default

Originally Posted by adam86

I attached the Xloader software to upload the compiled speeduino code (speeduino.ino.hex) to the ecu.

It is simple juste open Xloader.exe, go find speeduino.ino.hex, choose the right board, choose the COM port the ecu is on, clic upload. It will take about 45s

Please get back to this thread with the result if this is working for you, I made a pull request to Speeduino and I need feedback.
I've done a lot of reading on this and have confused myself. If I have a 36-2 crank trigger wheel and a stock intake cam gear with 3 teeth and the pickup bolted on the front of the valve cover, is this the correct firmware to use?
Old Nov 16, 2024 | 06:20 PM
  #36  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

I believe Adam's firmware would be appropriate, as would the older firmware I linked (if you're running batch ignition).
Old Nov 27, 2024 | 08:31 PM
  #37  
Roland T.'s Avatar
Newb
 
Joined: Jun 2021
Posts: 13
Total Cats: 10
Default

I can't figure out what I'm doing wrong here. I installed the 36-2 wheel and the front mounted cam sensor with proper timing belt gear. Runs great in semi-sequential but if I switch to full sequential injection it struggles to start/idle and sounds like a constant misfire but it completely goes away and runs great past 2000 rpm. Injector pulse width goes up bigly when it's doing the misfire dance below 2000 so I tried pulling fuel but it's obviously still misfiring horribly. High speed logger shows proper signal from the crank and cam sensors. It says I have no sync loss. But it also runs the same with the cam sensor unplugged and sequential selected and still says I have no sync loss. How can that be with the cam sensor unplugged?

It did this before and after switching to the modified firmware above. It's a 1994 so I should have the proper factory harness for sequential injection and I'm pretty sure I was running sequential on the stock cam sensor that mounts to the back of the intake cam.

If I wanted to grind off the cam gear teeth to turn it into a supported 1 tooth cam sensor to eliminate that variable which teeth would I grind off?
Old Nov 27, 2024 | 09:27 PM
  #38  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

Have you tried changing the trigger edges around?

I'm not sure which teeth you would cut off. I'm pretty sure people on the Speeduino Discord would be able to point you in the right direction on that though.
Old Dec 3, 2024 | 11:45 PM
  #39  
Roland T.'s Avatar
Newb
 
Joined: Jun 2021
Posts: 13
Total Cats: 10
Default

Trigger edge didn't change anything. I did more reading and decided to grind off the two teeth that are close together and switch back to the official firmware with single tooth cam selected, works perfectly now and correctly displays half sync/full sync.
Old Dec 4, 2024 | 12:43 PM
  #40  
SimBa's Avatar
Thread Starter
Elite Member
iTrader: (1)
 
Joined: Oct 2022
Posts: 1,822
Total Cats: 285
From: Idaho
Default

Sorry that didn't work for you man. I'm still surprised that hasn't been integrated into the main firmware yet. Seems like a common enough trigger pattern and the codes already there. I think if it was merged into the main branch properly it wouldn't seem as finnicky to get setup.



All times are GMT -4. The time now is 12:03 AM.