User “Klima” presents another toy made using ATtiny10. As it is known, the circuit has six pins, 2 of which are used to supply power.
The circuit is simple - 3 outputs are connected to the glowing diodes, one input is dedicated to measure external voltage. ATtiny10 does not have an internal source of reference voltage; supply voltage is taken as Uref for ADC, hence there is the necessity to use a voltage regulator to 3.3V.
Manner of displaying (dot/bar), voltage of full scale and supply voltage are presented at the stage of compilation of charge. In this case range 0-200mV was assumed. 6 thresholds, equally distant from each other, are determined within this range. There is no obstacle to arrange the thresholds in other way than linear in the program, thereby any characteristic can be achieved (linear, logarithmic, exponential). Accuracy of readings is sufficient.
Below there are the obverse and reverse of the board and a short video. In the video, the voltmeter is adjusted to the range of 300 mV. As it can be seen, the LEDs light more or less every 30-35 mV.
Link to original thread -
Wskaźnik napięcia na ATtiny10