Shop OBEX P1 Docs P2 Docs Learn Events
A/D Conversion [FlexiForce Sensor] — Parallax Forums

A/D Conversion [FlexiForce Sensor]

stevetronikstevetronik Posts: 15
edited 2010-01-26 05:16 in Propeller 1
I need help with connecting the flexiforce sensor to the prop demo board, the resource provided along with the datasheet limited it to the connection to BASIC stamp, I wish to connect to the propeller instead, as well as the code's to reading the force input using prop demo board.



EDIT:

long RCValue
  
OBJ
  tv    : "vga_text"
  gr    : "graphics"
  RC    : "RCTIME"
  Num   : "Numbers"

PUB start
  tv.start(16)                 'start vga display

    'Initialize RCValue
  RCValue := 0
  RC.start(0,1,@RCValue )

  repeat
    tv.out(1)
    tv.str(string("R = "))
    tv.dec(RCValue)



The value just jump weirdly when compressed.

Advice would be greatly appreciated.

EDIT2: I'm using PIN 0, with reference to RCTime background demo.spin

Steve

Post Edited (stevetronik) : 1/26/2010 7:47:05 AM GMT
Sign In or Register to comment.