Electronic – Zero or low-current voltage divider for switch identification

transistorsvoltage divider

Is it possible to design a voltage divider circuit with switches that uses zero current, or very low current? Would it work to use a transistor to connect/disconnect the end of resistor string from ground?

Background

The circuit will do two things. Each switch in the circuit will wake up a IC (ATMEGA328P) by using a transistor to send an interrupt pin LOW. Once the IC wakes up, the ADC will sample the voltages coming from the circuit, allowing the IC to know which button was pressed.

The entire project will be battery operated, and having this voltage divider may significantly impact battery life.

The project will 1) read files from an SD card, 2) go to sleep, 3) wake and play sounds when one of 16 buttons is pressed, and 4) go to sleep and repeat process starting at #3 on button press. I anticipate that when it is running it have a significant current draw.

Existing Voltage Divider Circuit

enter image description here

Possible Transistor Solution

Placing a transistor between the end of the resistor string and ground, and having the button press activate the transistor, connects the end of the voltage string to ground. This will result in an initial voltage reading of 5V, and once the transistor is on, the actual read voltage will be the intended voltage. I have no idea if this will work.

possible voltage divider circuit with transistor

Other Solutions

Per question 28897 I could use high values of resistors such as 10 MOhm. But this will still have a current draw of hundreds of nA. I'd prefer zero.

Best Answer

New answer

Your approach can work. But, your 2nd schematic has a bug, I think. The ADC will always see Vbe of the transistor, which is always 0.7V or so.

This variation shouldn't have this problem, because there's a resistor R39 between base and ADC.

enter image description here

Old answer, which wasn't an answer

The divider can be switched with a transistor to save the battery. However, it has to be a high side switch. If you switch at the ground, then the battery voltage will appear on the A/D pin, which could damage the input.

(Originally, the schematic was posted in this thread.)