Projects › Projects › how to interface strip froce sensing resistor with microcontroller 8051 › Hi, The strip force is like
March 18, 2013 at 9:30 am
#9339
Teh Choo Chin
Participant
Hi,
The strip force is like normal resistor. It connect with LED then when press the strip the LED will light up. My strip force range is 10g-1kg. Now the problem is when i step on the strip, the LED still will light up. Below is my program:
ORG 0000H
MOV R1, #00000000B
TEST: ORL P3, #0FFH
JNB P3.0, CASE1
AJMP TEST
CASE1: MOV A, R1
MOV P1, A
XRL A, #00001111B
MOV P1, A
AJMP TEST
END