This is a demo project for the Pmod DPOT and the Pmod LS1 made by Digilent. The Pmod DPOT is a digitally controlled potentiometer, and in this application it will be used as a voltage divider. To control the Pmods and to display data, an Arduino UNO is used.
The Pmod DPOT is controlled through the SPI interface, the accepted input values are between 0 and 255, so in this case the, if the voltage between the A and B pins is 5V, the voltage at the W pin is x*5V/256 = x*19.5mV, where x is the input number.
The Pmod LS1 contains four analog comparators, with selectable sensitivity, which measure analog voltage, and compare it to a threshold. The output of the comparators are logic values.