Reading the Sharp Distance Sensor 2D120X

Hi!

i'm trying to read the distance to this sensor of sharp: Sharp Distance Sensor 2D120X But the values seem to spike randomly. Please, help me in the Code.

fardox: Hi!

i'm trying to read the distance to this sensor of sharp: Sharp Distance Sensor 2D120X But the values seem to spike randomly. Please, help me in the Code.

What code, I don't see any code.

Sorry but nobody can help if they can't see the code.

(mumble mumble mumble)…
what that you say?
(mumble mumble mumble)…
yes, I agree - there’s a better sub-forum for this posting than here…

G.

Worked on another SHARP distance sensor - see http://arduino.cc/playground/Main/MultiMap - don't know if the 2D120X works the same. At least you need to calibrate the multimap() tables.

Hopes this helps.