Hi all,
I have built an ADC based on the above diagram however scaled to 8,12 & 24 comparators, please note that the diagram includes two mistakes which were corrected in the construction of the actual circuit:
- Pictured are XNOR gates, they should be ordinary XOR Gates.
- The top most pin of the topmost XOR gate is tied to ground, it should be tied to high.
Mysteriously when the XOR gate (4070) outputs a logic 0 it is actually outputting approximately 1V. Ordinarily this would not be a problem however the multiplexer I am using (74LS151) to encode the signal is reading this voltage as a ā1ā and causing mayhem.
The strangest part is that probing with an oscilloscope on the input of the diodes (1N4004) / output of the XOR gates every single diode is either obviously on (+5V) or obviously off (0V) and somehow this small voltage is mysteriously appearing.
For reference I tested the multiplexer on its own by manually shorting the inputs to ground and found it to be working perfectly.
Before anyone comments that it is likely a soldering mistake or other similarly silly error I have two independent PCBās exhibiting the same behavior.
I expect to solve I either need to remove this mysterious voltage or somehow change the threshold where the multiplexer reads a voltage as either a 0 or 1 to be slightly higher.
Although I doubt it will be helpful but below are the three relevant PCB schematics:
ADC: Both chips are LM339
ADC Encoder: Both Chips are 4070
The ADC and ADC encoder are connected externally by wires their respective inputs and outputs being below the pull up resistor on the ADC and on the left side of the ADC encoder.
Multiplexer: A & B are 74LS151 And C is 74LS157
This schematic will take three ADCās as inputs to plugs on the bottom of the diagram, the ADC above is connected to the rightmost set of inputs. The other ADCās have been omitted as they are near identical to the one shown.
Thanks in advance for any help you are able to offer, Jem.