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
Last edited by mister_e; - 8th December 2006 at 14:45.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks