Posts Tagged ‘Voltmeter’

One led voltmeter (Part 4)

Part 1, 2, 3, 4 A/D converter optimization… …that you could also translate in “Why make things simple, when you can them make complex” ! Here, we get rid of the analogRead() function and we will directly use A/D converter registers . It is strongly advised to read the ATMEGA datasheet in order to get […]

One led voltmeter (Part 3)

Part 1, 2, 3, 4 Playing a little bit with regsiters Let’s proceed step by step to the details of the A/D converter. Firstly, we will pay attention to the ADMUX register. The four least significant bits: MUX0, MUX1, MUX2 and MUX3 are used for setting the mux channel, which is strictly equivalent to passing […]

One led voltmeter (Part 2)

Part 1, 2, 3, 4 Auto ranging This improvement is quite easy, and it may be useful in some circumstances. Arduino contains in fact one A/D converter which is connected to an 8 ports multiplexer: 6 of them are available from the 28 DIL PDIP package, the one which is used on Arduinos. Before getting […]

One led voltmeter (Part 1)

Part 1, 2, 3, 4 This is a minimal voltmeter which reads the signal from one of the analog ports and converts its value in to a sequence of led flashes. Long flashes for volts, short flashes for tenths of volts. /* One led voltmeter or ‘the voltmeter of the poor’ Reads analog port 0 […]