|
Shouldn't be a problem. You don't need to digitalRead() every revolution, you just attach the sensor to an interrupt, then on each loop through the main code you check the interrupt counter and derive the rpm from that. See http://playground.arduino.cc/Main/ReadingRPM
|
# ¿ Jan 16, 2016 16:31 |
|
|
# ¿ May 14, 2024 06:16 |
|
At 12k RPM you'd need an ignition pulse every 5ms. The Arduino Uno board is a 16Mhz CPU which is still going to let you do things in the microsecond range if not better. Some of the stock Arduino functions are a bit slow (because they do a bunch of idiot-proofing checks on each call), but there are ways to work around that if needed.
|
# ¿ Jan 16, 2016 20:17 |
|
What Arduino board do you plan on using? Or I guess I should ask what AVR, since I assume you're going to make your own board down the line if it works.
|
# ¿ Jan 18, 2016 01:41 |
|
Rev. Dr. Moses P. Lester posted:I have an uno now, it looks like it'll do what I need. All I need is one digital input pin and one digital output pin, really. I'm probably not planning on replacing it with a proper board unless someone in the club cries foul on the setup. (The Arduino itself is clearly not period appropriate equipment for 1983, but the rules in this class are very short and vague) I want to be able to easily change the software map in the future if I alter the ports/exhaust/intake/piston. There are probably some people over in the Arduino thread who are much better at optimization than I am who can tell you if there are any other performance pitfalls. Collateral Damage fucked around with this message at 02:44 on Jan 18, 2016 |
# ¿ Jan 18, 2016 02:41 |
|
Rev. Dr. Moses P. Lester posted:Ugh I have to talk to Arduino nerds? I got into motorcycles specifically so I wouildn't have to do that. You can always go talk to noisymime in the DIY ECU thread that babyeatingpsychopath linked.
|
# ¿ Jan 18, 2016 15:56 |