Testing Channel

V Click on the Disconnect button in StampPlot.

V In the BASIC Stamp Editor, update the three lines of code in the Main routine to test channel l, as shown below.

a2dMuxId = A2dMuxId1

GOSUB A2D

ch1 = a2dResult

Set A/D to convert ch 1 Do the conversion 8-bit result into ch1

V To test the upper limit, place the 1 kQ resistor between pin 4 (CH1) and pin 1 (Vdd) of the ADC0834,

V Download the modified code, and then close the Debug Terminal.

V Bring up StampPlot, and click on the Connect button to verify the voltage on the graph, then click on Disconnect again.

V To test the lower limit, modify the circuit by moving the 1 kQ resistor so it connects pin 4 (CH1) and pin 7 (Vss) of the ADC0834.

V Re-run the modified code, and then close the Debug Terminal.

V Bring up StampPlot, click on the Connect button to view the voltage graph again, and then click on Disconnect.

Solar Power

Solar Power

Start Saving On Your Electricity Bills Using The Power of the Sun And Other Natural Resources!

Get My Free Ebook


Post a comment