Voltmeter on ATtiny10

Status
Not open for further replies.

rickyjar

Member level 2
Joined
Oct 20, 2009
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,032


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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…