Nishant_Sood:
UPDATE!I took the ICE motorcycle to Dyno 250i and the rpm was being picked up successfully from the hall effect clamp pickup. BUT,
My ideal square wave generated from TONE method starting from 30Hz to 30Khz I tested didnt work, I also tested at various voltage levels including 3v, 5v, 12v, 9v but the output from Arduino wasn't able to mimic the RPM line on the motorcycle.
If you try timing, use unsigned int values (at least twice as fast as unsigned long) to time micros?
16 bit unsigned 0 to 65535
30 Hz as integer 1000000 / 30 = 33333
30 KHz as integer 1000000 / 30000 = 33
--- Arduino micros 24, 28, 32, 36 must always be late but if the start always adds the interval (instead of set to micros()) then the late will be more consistent and your pulses should be very close in a tight running sketch.
Why not use an ARM for this? You could texture output at 30KHz with one of those. Did you use the LPCxxxx in the gesture device?
Well, AVR might be plenty good. Perhaps an ATtiny with crystal is all?
I did buy a 24MHz 1284P board that runs fine but it was made by a wizard in Slovakia (thanks Budvar!). That tells me it might be possible to get an extra 50% over stock AVR Arduino speed.