In this example http://www.gammon.com.au/forum/?id=11916 , it is using a voltage divider for ref & input, whereas the component i am using is a thermal based divider. Were (f) is an etched, fixed resistance value & (v) is a silicon oxide variable resistor.
Therefore this would negate a second stage divider, but my real question is , when using the ACSR, would using such a device as a reference voltage be a problem as its (mv_output) may fluctuate?
Grumpy_Mike:
You can not use a referance voltage of less than 1V on an arduino.
I'm not convinced that limit applies to the analog comparator.
Trying a small test:
ISR (ANALOG_COMP_vect)
{
PIND = _BV (2); // toggle D2
}
void setup ()
{
ADCSRB = 0; // (Disable) ACME: Analog Comparator Multiplexer Enable
ACSR = _BV (ACI) // (Clear) Analog Comparator Interrupt Flag
| _BV (ACIE); // Analog Comparator Interrupt Enable
pinMode (2, OUTPUT);
} // end of setup
void loop () { }
With a pot on D7 to adjust the reference voltage I got it down to around 100 mV, and still the output pin (D2, yellow trace) toggled which means the analog comparator got a match: