Shop OBEX P1 Docs P2 Docs Learn Events
Does anyone know how to connect RS linear position sensor to basic stamp? — Parallax Forums

Does anyone know how to connect RS linear position sensor to basic stamp?

alwynthalwynth Posts: 1
edited 2012-05-07 19:50 in General Discussion
i am not good at basic stamp but

i am carrying a project with this sensor
http://il.rsdelivers.com/product/rs/lm10-3m295k0m-to-es-aw/linear-position-resistive-sensor-5kohm/0317780.aspx

how can I connect it to the basic stamp?
i have no idea to construct it and the programming...

Is the program in the following website work for my sensor for dectecting the distance...

http://www.parallax.com/dl/docs/prod/acc/SharpGP2D12Snrs.pdf


Thanks..:smile:

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-05-07 19:50
    Your sensor is, at its heart, a simple potentiometer (variable resistor) and you could use the RCTIME statement to read its value. Look in the Basic Stamp Syntax and Reference Manual in the chapter on the RCTIME statement for a discussion and examples. This Manual should be in the help files of the Stamp Editor or you can download it from Parallax's Downloads webpage under Stamp Documentation. Another good source for information is the "app-notes" link on this webpage.
Sign In or Register to comment.