Week 10 - Troubleshooting
As we have trouble with setting the Arduino such that it will count the number of pulses every second ONLY , we spent the week reading up on timers, attachinterrupt, rising & falling edges, but to no avail, as we could not understand the timer features. We used a simple push switch to generate the pulses whereby each press will be recorded as one pulse. The code we have used is as shown below: *Note: The code is inaccurate as the previous reading is added to the current and will keep accumulating, as we did not add in the timer feature to make the Arduino count the number of pulses of every second ONLY . Sensor Values Actual 1st reading: A 1st reading: A 2nd reading: B 2nd readin...