I need to design a circuit that counts the number of times an event occurs in a certain time frame.
Basically, my project will involve accelerometers that are measuring human movement. The output from the accelerometers will be voltage (analog signal). I would like to count the number of times the output from the accelerometers is at or above a certain threshold voltage. For instance, the counter needs to count the number of times the accelerometer is outputting a voltage higher than 1.5V in a time frame of a minute. My timing parameters are to have 30 events (>1.5V) per minute (defined as "success"). When the event is recognized as successful, I want to activate an LED to signify the event and some alarm (like a DC motor for a vibrational alarm?)
I'm confused as to how to make this counter. What do I use? And what is the output signal of the counter, so I can activate the LED and alarm?
Basically, my project will involve accelerometers that are measuring human movement. The output from the accelerometers will be voltage (analog signal). I would like to count the number of times the output from the accelerometers is at or above a certain threshold voltage. For instance, the counter needs to count the number of times the accelerometer is outputting a voltage higher than 1.5V in a time frame of a minute. My timing parameters are to have 30 events (>1.5V) per minute (defined as "success"). When the event is recognized as successful, I want to activate an LED to signify the event and some alarm (like a DC motor for a vibrational alarm?)
I'm confused as to how to make this counter. What do I use? And what is the output signal of the counter, so I can activate the LED and alarm?