Hi,
I want to time the flyback voltage of an inductor.
I want to use an analog comparator and a timer.
Basically, on the upswing the timer begins and on the down leg the timer stops.
Is this possible with arduino?
Hi,
I want to time the flyback voltage of an inductor.
I want to use an analog comparator and a timer.
Basically, on the upswing the timer begins and on the down leg the timer stops.
Is this possible with arduino?
Yes you can. With Aduino you can do almost anything. The prob is pogramming the thing.
It all sounds like an RL circuit time constant calculation. Study that first.
The Arduino has an analog comparator built in. This page describes a way of using it:
Also a page on interrupts: http://www.gammon.com.au/interrupts
If you set the analog comparator to fire on change (both up and down) you should be able to use something like micros() to find the time between up and down.
The voltage on the analog pin would need to be in the range 0 to 5V or you would need some sort of voltage divider or buffer.
Is this possible with arduino?
Depends on what you meant by "upswing" and "down leg".
Of the flyback, the up and down parts of the signal.
Cheers for the links, will start reading ASAP