Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Collect data from a button push or opening a switch

$
0
0
I want to create a simple 2D Data capture rig. I have the X and Y axes counting using some simple rotary encoders. I have a switch attached to a pole and want to whenever the switch is initially pressed (like a RISING or FALLING Edge trigger) to capture the position data from the X and Y. I want to use an interrupt routine (like below) so it only works the instance the switch is pressing and so the X Y position is still being updated in real time.
View attachment 183567

One issue i...

Collect data from a button push or opening a switch

Viewing all articles
Browse latest Browse all 4923

Trending Articles