Hi, I'm new to electronics so I don't understand the entire circuit you provided in the video. Therefore, I would like to know if you can attach the entire electrical connection.
Another excellent demonstration. I was just thinking have you ever tried to measure rotation speed (RPM) from a variable reluctance sensor? I was applying a similar technique to measure crankshaft RPM with 12-3 tooth reluctor/timing wheel and VR sensor. The idea I used was to count teeth. Measure time between tooth 1 and 3 to work out the time difference and calculate RPM. Restart tooth count after 9th tooth is captured. I was getting some funny results where the frequency would jump from say 400 measured to say 3800 and back again every so often. I couldn't explain it but now after seeing your demonstrations, I think I can improve my implementation. Thank you once again.
I believe your calculation could be slightly simpler by factoring out one 65536. timer1Counts = C2 - C1 + (ovfCountC2 - ovfCountC1) * 65536; This also makes a lot more sense to me, since the calculation represents that we take the difference of the 2nd and 1st pulses, and then simply add the number of overflow counts as well. Another option is to reset the overflow count to 0 upon capturing C1, increment it in the overflow ISR, and then record the number that occurred when capturing C2 or in the main loop.
What for in your program is instruction: analogReference(INTERNAL) ???
Hi, I'm new to electronics so I don't understand the entire circuit you provided in the video. Therefore, I would like to know if you can attach the entire electrical connection.
Hello Anas, how can we calculate the pulse width time instead of the time difference between two rising pulses?
excellent explaination but i could not the formula that use for calculating total number of count
Another excellent demonstration. I was just thinking have you ever tried to measure rotation speed (RPM) from a variable reluctance sensor? I was applying a similar technique to measure crankshaft RPM with 12-3 tooth reluctor/timing wheel and VR sensor. The idea I used was to count teeth. Measure time between tooth 1 and 3 to work out the time difference and calculate RPM. Restart tooth count after 9th tooth is captured. I was getting some funny results where the frequency would jump from say 400 measured to say 3800 and back again every so often. I couldn't explain it but now after seeing your demonstrations, I think I can improve my implementation. Thank you once again.
The best thing for me is getting useful feedbacks. Thanks you.
I believe your calculation could be slightly simpler by factoring out one 65536.
timer1Counts = C2 - C1 + (ovfCountC2 - ovfCountC1) * 65536;
This also makes a lot more sense to me, since the calculation represents that we take the difference of the 2nd and 1st pulses, and then simply add the number of overflow counts as well.
Another option is to reset the overflow count to 0 upon capturing C1, increment it in the overflow ISR, and then record the number that occurred when capturing C2 or in the main loop.
Thanks for the info
Great series of videos. Do you have link to the code?
I’ll add the code as soon as I can. Thanks for your feedback
CooL