Hi All,
I have constructed an LED button switch reaction time measurement game from the project hub Measure your reaction time © GPL3+ instruction, link below. I have it working and I want to replace the button switch with the shock sensor module.
From looking at the oscilloscope, I believe the problem is that the shock module produces a spike signal. Whereas, the button produces a square-like signal. To test my hypothesis I used a tilt module sensor which produces a signal more like the push button and it works.
If this is the issue it may be due to the trigger setting in the code? I have attached it please have a look or if anything else comes to mind please let me know.
This is my first Arduino project so thank you for your time!
Many thanks,
Rob
(Measure your reaction time © GPL3+ - https://create.arduino.cc/projecthub/Blue_jack/measure-your-reaction-time-d68f90)
MyReflexgame.ino (5.9 KB)