serbar
Automotive
- Oct 1, 2012
- 37
Hi.
I installed an external inductive sensor atacched to the crankshaft of a car with a tooth wheel with a two teeth gap to detect top dead center.
I converted the sine output from sensor to square wave with the atacched squematic using a LM 393. I am monitoring it with an arduino mega 2560.
Everything works fine except when i turn off the engine the arduino breaks and the routine is interrupted.
I went to see with an oscilloscope whats the cause and the problem is a very high frequency wave that overflows the arduino and it freezes and does nothing. I hope you guys to give a look and point me in some direction to eliminate this high frequency noise (i think its noise).
Thanks.
PS: I think its note related to ems noise in engine compartement. Before instaled in the car i tried the sensor with a small electric motor from a car toy in my room and it did the same.
The engine/motor are standing still for minutes and the lm393 output is sending this noise to the arduino, i observed with osciloscope.
I installed an external inductive sensor atacched to the crankshaft of a car with a tooth wheel with a two teeth gap to detect top dead center.
I converted the sine output from sensor to square wave with the atacched squematic using a LM 393. I am monitoring it with an arduino mega 2560.
Everything works fine except when i turn off the engine the arduino breaks and the routine is interrupted.
I went to see with an oscilloscope whats the cause and the problem is a very high frequency wave that overflows the arduino and it freezes and does nothing. I hope you guys to give a look and point me in some direction to eliminate this high frequency noise (i think its noise).
Thanks.
PS: I think its note related to ems noise in engine compartement. Before instaled in the car i tried the sensor with a small electric motor from a car toy in my room and it did the same.
The engine/motor are standing still for minutes and the lm393 output is sending this noise to the arduino, i observed with osciloscope.