My project involves counting how many times an accelerometer sensor outputs a voltage above a certain threshold in time parameters of one minute and one hour.
I am using a 555 timer circuit ANDed with the sensor output, which then feeds into a digital counter. Am I correct to use the 555 timer in monostable function?
I am wondering about the triggering. I want the timer to start when the power is connected. During the minute when the timer is outputting high voltage, the counter will count up how many times output from the AND gate is 1. But when the minute is up, I want the timer to restart and have the counter reset as well. But at the same time, say if the counter reaches 30, it will stop the timer whenever it may be, and restart it.
So I need have an auto trigger on the 555 timer to restart itself after each minute but also a trigger that allows the output from the counter to interrupt and restart the timer.
Any ideas?
Thank you!
I am using a 555 timer circuit ANDed with the sensor output, which then feeds into a digital counter. Am I correct to use the 555 timer in monostable function?
I am wondering about the triggering. I want the timer to start when the power is connected. During the minute when the timer is outputting high voltage, the counter will count up how many times output from the AND gate is 1. But when the minute is up, I want the timer to restart and have the counter reset as well. But at the same time, say if the counter reaches 30, it will stop the timer whenever it may be, and restart it.
So I need have an auto trigger on the 555 timer to restart itself after each minute but also a trigger that allows the output from the counter to interrupt and restart the timer.
Any ideas?
Thank you!