Shop OBEX P1 Docs P2 Docs Learn Events
Flex sensor — Parallax Forums

Flex sensor

frosliefroslie Posts: 67
edited 2007-11-12 13:55 in General Discussion
I'm planning to connect a flex sensor to a Stamp for use in a data glove. I understand the sensor has a maximum resistance: 30k ohms to 40k ohms, proportional to the degree of flexing or bending.

Anyone have a good suggestion on the look of the code for something like this? -Or- any ideas as to where I can find information..

Thanks!

Comments

  • D FaustD Faust Posts: 608
    edited 2007-11-11 16:57
    You could use the RCTIME command.· For a schematic look at the analog photoresistor section of the boe-bot manual (light sensing)· All you have to do is replace the photoresistor with the flex sensor.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust
  • frosliefroslie Posts: 67
    edited 2007-11-11 17:01
    Great, thank you.
  • D FaustD Faust Posts: 608
    edited 2007-11-11 19:53
    It looks like the whole path you took is in there (did you search for "adc" by any chance?)

    ·

    BTW if you use an adc, put a pulldown resistor of a very large value to the pin otherwise you will always get the highest value.




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust

    Post Edited (D Faust) : 11/12/2007 1:53:20 PM GMT
  • D FaustD Faust Posts: 608
    edited 2007-11-12 13:55
    I think I messed up the color in my previous post. I can read it (I have the black background setting), but when I log off (white background) I can't. Whoops.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust
Sign In or Register to comment.