Week Two

Week two was when I started the challenge of coding my system. Below is the flow chart I came up with to code my Arduino:

alg pic

I chose 100 ms as the limit due to previous testing in the fall. I found that the shortest duration of a person’s impact was about 270 ms compared to a balls longest duration of impact was about 20 ms. Therefore, 100 ms seemed like a good cutoff. But, the code will be tested with the prototype later to ensure that this is a good number.

After creating my flow chart, I started looking up previous codes online that timed digital input signals. A common command used was millis(). Looking into next week I hope to finalize my code as well as choose and order my Arduino.