What's the best way to detect noise on a DC circuit and convert it to a binary value (on/off)? The goal is to turn a circuit on when noise on a DC supply is detected, and off when the noise goes away. The use case is to be able to turn a device on only when an engine is running by detecting noise on the 12V battery line. The delay between noise/no-noise and on/off can be relatively long (many seconds). There are many ways to detect a running engine, but for this particular case being able to detect it from the DC power line is ideal. The device cannot have any input wires other than V+ and V-, and vibrations cannot be used because the motor may be transported often while not running.
An IC to quantify the noise would be ideal (~0 noise, >0 noise). My second thought is using an OpAmp to compare the output of a simple RC integrator connected to the V+ line, and the raw V+ line. The output from the OpAmp can be averaged to get the on/off signal. But maybe the RC integrator input would need amplification since the noise duration is so short (see screen shots below).. Or I could use a frequency counter as anything above 0 would indicate the motor is running. Any other suggestions or opinions on these methods would be appreciated!
Here are some snapshots of what the noise on the DC V+ line looks like at idle. Basically very short ~5Vpp spikes (+3V, -2V relative the DC). The spike durations are below 100ns in duration, so pretty short. There does appear to be some much lower level ripple on it, maybe I need to tease that out with the scope a bit more to see if it's significant enough to use..


An IC to quantify the noise would be ideal (~0 noise, >0 noise). My second thought is using an OpAmp to compare the output of a simple RC integrator connected to the V+ line, and the raw V+ line. The output from the OpAmp can be averaged to get the on/off signal. But maybe the RC integrator input would need amplification since the noise duration is so short (see screen shots below).. Or I could use a frequency counter as anything above 0 would indicate the motor is running. Any other suggestions or opinions on these methods would be appreciated!
Here are some snapshots of what the noise on the DC V+ line looks like at idle. Basically very short ~5Vpp spikes (+3V, -2V relative the DC). The spike durations are below 100ns in duration, so pretty short. There does appear to be some much lower level ripple on it, maybe I need to tease that out with the scope a bit more to see if it's significant enough to use..

