Relative Content

Tag Archive for carduino-uno

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.