Testing Channel

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

a2dMuxId = A2dMuxId3 ' Set A/D to convert ch 3

GOSUB A2D ' Do the conversion ch3 = a2dResult ' 8-bit result into ch3

V To test the upper limit, place the 1 kQ resistor between pin 6 (CH3) 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 6 (CH3) 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.

Once your channel testing is completed:

V Erase the 3 lines of testing code from the Main routine, and resave the program.

V Remove the 1 kQ resistor from the circuit, since we won't need it any longer in its current position.

I'm sure by now you can see that the StampPlot graphical plotting software adds considerably to your understanding of how voltages can be viewed in real-time. It's almost like having an oscilloscope to monitor the voltage readings. The difference, however, is that the StampPlot software cannot react anywhere near as fast as a conventional scope display. Nevertheless, the StampPlot software is more than adequate for our upcoming experiments. So now that we have the StampPlot software functioning along with the A/D converter, let's proceed with Experiment 1.

But before you do, just remember ...

"Try not to have a good time. This is supposed to be educational." -- Charles Schulz. Now forget it.. .you will have fun.. .we promise!

Getting Started With Solar

Getting Started With Solar

Do we really want the one thing that gives us its resources unconditionally to suffer even more than it is suffering now? Nature, is a part of our being from the earliest human days. We respect Nature and it gives us its bounty, but in the recent past greedy money hungry corporations have made us all so destructive, so wasteful.

Get My Free Ebook

Post a comment