setup(){attachInterrupt(digitalPinToInterrupt(2), RpmISR());}void RpmISR(){RPMcounter++;}void Timer2routine(){//fires every 20-50ms and recalculates the position calculateRPM();}void calculateRPM(){//do the work here to calculate the RPM.. take the timer interval, figure out how many revs have happened since the last one}

I'm posting my current code in my life, my coding thread for the nitty gritty stuff.. there'll be a lot of things unfamiliar to you, I definitely go about my controls differently than you do.. I have a TPS which makes a big difference.

More than what's on the board will have to be for later. I can't add more pins to the header without moving it for more room, then it won't be on the same side with the USB which I'm not okay with lol.

A big black box, definitely but I'm not there yet

But definitely moved the spare pin to D2 (int 0)

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

I was wondering also what you're using the 4th analog input for on the header... I haven't made any decisions or deep philosophical thought on it yet, but I was thinking of putting a 20V->5V analog stepdown in there somewhere.. perhaps on a micro-pot to sense battery or other voltages.I'm just kinda thinking out loud

Lol, it needs to be in a box. I'm sure once it's a complete product it'll gain more interest. I need to find a wire manufacturer to make the main header connection... *rolls eyes* that's been the bane of my existence.

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

The Megasquirt I used had a 25 pin D sub connector.. For most things (signals, not high power) that would be plenty, and then you could just have a 2 row header with a ribbon cable to connect to it.. would make mounting in the box a little simpler, and be easy to disconnect if you needed to.

Dsub is waaay too big for what I needed. I could drop down to a VGA-15 but then again not in the wire gauges I would want this thing in.

I have hope I'll find someone, there's got to be a company, you know like those guys that do radios... etcThe parrot bluetooth I got, used a very similar header, with custom colors and tags on the wires.. just need to know who made that! haha

Added a switch, +50cents, but worth just opening the box, and switching CANH and CANL than maybe getting screwed putting the wires wrong on the other end.

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.