Nisca
Newbie level 6
Basically, there are three blades attached to the hub. I'm trying to use beam breaking method i.e. a pulse is recorded when beam breaks. the steps that I want to implement in my code to achieve my goals are;
1) Measure the time (x) between 1st and 2nd cut. this would be (1/3rd) of period of one revolution. therefore, multiplying it by 3 would give period of 1 revolution.
2) Using RPM = Frequency * 60 would give me the answer in minutes.
3) I want to keep doing this in a loop forever and display it on LCD.
Does my logic makes any sense, is the relationship between RPM and Frequency true? and is it possible to measure the time between two pulses using timers in 8051?,given that the time would be in micro seconds, perhaps.
also, I just need pulses, 5volts = 1 and 0volts = 0 from sensors so I don't need ADC. So, how do I interface my IR with 8051(AT89S51)?
IM USING C language.
I'd really appreciate if anyone can sort me out..
Cheers!!!
1) Measure the time (x) between 1st and 2nd cut. this would be (1/3rd) of period of one revolution. therefore, multiplying it by 3 would give period of 1 revolution.
2) Using RPM = Frequency * 60 would give me the answer in minutes.
3) I want to keep doing this in a loop forever and display it on LCD.
Does my logic makes any sense, is the relationship between RPM and Frequency true? and is it possible to measure the time between two pulses using timers in 8051?,given that the time would be in micro seconds, perhaps.
also, I just need pulses, 5volts = 1 and 0volts = 0 from sensors so I don't need ADC. So, how do I interface my IR with 8051(AT89S51)?
IM USING C language.
I'd really appreciate if anyone can sort me out..
Cheers!!!