|
Re: Help with pots/interrupts
two things with your pot.
it has to be wired to the +5V pin on one end, gnd at the other, with the signal on the middle terminal of the pot - at the analog in connector on the RC, the wires are black= gnd, red (middle) = +5 and white = signal.
if you put a voltmeter on the center and gnd pins of the pot you should see it range from 0 to 5 VDC as you turn the pot (with the RC on)
the RC is different from wireing pots to the OI - the RC needs to see an actual voltage.
the other problem is you must use the 'get_analog_value' function to read the analog inputs - check the analog input section of the default users guide - the correct syntax is in there. (or just read Marks post for the right code cause he types faster than I do :c)
Last edited by KenWittlief : 23-02-2004 at 17:42.
|