Tag Archives: attiny

ATTiny Analog Comparator – Checking Voltage Level

To read a voltage we usually need analogue input. Unfortunately, the ATtiny4313 doesn’t have any analog input, which could have made reading voltage so much simpler. I was almost giving up on this feature, until I realize there are analogue comparator on the ATTiny4313 and 2313, which I could use for simple voltage level checking. The comparator in the ATtiny2313 is used to compare a changing voltage with a fixed reference voltage. The comparator pins are 13 (AIN0) and 14 (AIN1).

Read More