My coding group is trying to code something that counts how many times the velocity of an accelerometer reaches 0. And then code a buzzer to sound when it reaches a specific number. We know we need to imbed the equation for velocity in our loop and have coded the buzzer but are trouble shooting the counting mechanism. If anyone knows or has done something similar to this, help would be very appreciated!
metro_thingy.zip (7.2 KB)