Displacement variable not updating during test in Arduino project
I’m working on a project using Arduino to control a test machine for compression/tension. The displacement is calculated based on pulses from a sensor connected to a digital input. The logic for calculating the displacement works perfectly when the test is not active, but as soon as the test starts, the displacement value freezes at 0 and does not update.
Why are my arduino pins not activated after the first main loop?
Below is a description of what the Arduino should do, however I found that after the first loop in main, the pins are not activated again:
Why my arduino pins are not activated after the first main loop?
Below is a description of what the Arduino should do, however i found that after the first loop in main, the pins are not activated again: