So I have a 99 miata, with diypnp I built myself.
About a month ago I was driving to work, lost all power and had 0 rpm. I pulled over, opened turner studio. Acting like I knew what I was looking at... I didn't see anything in the diagnostics tab with the ignition... Fuel pump was coming on, but injectors weren't firing, and had no spark. So I "checked" my cam sensor. (how does on actually check a cam sensor?) I had no 12v to it on any pins... weird. One of the wonderful benefits of working at a car dealership, we happen to have another 2000 miata. So I take my cam sensor with me. Put it in the other miata, and it started right up... Fast forward, I end up driving other miata home, as a parts car incase I need something. I jump in my car, starts right up.. Out of curiosity I check cam for 12 volts. It has 12 now. I took apart the ms, all my jumpers are okay, so I just try to forget about it.
TL;DR, randomly died, no fuel/spark. no 12volts to cam sensor. connect to m/s just fine. come back a few hours later and starts right up.
Then.. it happens again! I check the cam sensor again no 12 volts. No time to diagnose anything.. I shake ms, thinking a bad connection maybe nothing. So I leave it. come back 7 hours later, starts right up! AHHHHH
From wiring diagrams I've tried to lookup, the cam sensor gets its 12v from the ecu. If my ecu has power, then it might be a problem with the ms itself? Is there anything I can check on the ms that could be going bad?
tl;dr;tl;dr;tl;dr. died while driving twice, problem seems to be coming from no 12 volts to cam sensor. Megasquirt has power and connects to laptop. Leave car for a few hours, and starts when I come back.
If you help me I will give you