Have a look at this one for Basic Stamp
http://www.robot-electronics.co.uk/htm/cmps2bs2.shtml
http://www.robot-electronics.co.uk/htm/cmpsatom.shtml
I don't think your software is the main problem.. double check your hardware first
And probably you need to calibrate it first...
http://www.robot-electronics.co.uk/htm/cmps_cal.shtml
EDIT: AHHHH F***You used a Word sized Variable... it must be a BYTE sized variable for this specific register


You used a Word sized Variable... it must be a BYTE sized variable for this specific register


Bookmarks