whkang07
Newbie level 2
I beg for answer from anyone of you all here for my silly question
I am wonder how is a limit switch works. with microcontroller.
Lets say i connect the limit switch with NC condition. when i (press + release) the limit switch, it return 1 to the pin?
for the second time i (press + release), it will return "0" or "1" to the pin?
it is like
(press + release) - 1
(press + release) - 1
(press + release) - 1
(press + release) - 1
or
(press + release) - 1
(press + release) - 0
(press + release) - 1
(press + release) -0
????????????
what if i only (press) but (not release) the limit switch? or it returns 1 when it is pressed and will returns 0 when it is released?
I beg for answer. thx anyone that could share with me~
I am wonder how is a limit switch works. with microcontroller.
Lets say i connect the limit switch with NC condition. when i (press + release) the limit switch, it return 1 to the pin?
for the second time i (press + release), it will return "0" or "1" to the pin?
it is like
(press + release) - 1
(press + release) - 1
(press + release) - 1
(press + release) - 1
or
(press + release) - 1
(press + release) - 0
(press + release) - 1
(press + release) -0
????????????
what if i only (press) but (not release) the limit switch? or it returns 1 when it is pressed and will returns 0 when it is released?
I beg for answer. thx anyone that could share with me~