News:

Let's find out together what makes a PIC Tick!

Main Menu

Reading Rpm signal from 5 tooth gear

Started by Maxi, May 21, 2025, 09:22 AM

Previous topic - Next topic

Lavi

Hi Pepe ! thanks again , i like the way you convert segments data and digits.Your code shows real Frequency /2.

About timer1 resolution for measuring higher frequencies,no worry!

Engine Rev's    8cyl        6cyl      4cyl

       1000     66.6hz      50hz      33.3hz

       1500     100hz       75hz      50hz

       2000     133.3hz     100hz     66.6hz

       3000     200hz       150hz     100hz

       4000     266.6hz     200hz     133.3hz

       5000     333.3hz     250hz     166.6hz

       6000     400hz       300hz     200hz

       7000     466.6hz     350hz     233.3hz

       8000     533.3       400hz     266.6hz

I am still using this math RPM =   (1250000 / PERIOD )* 3 ,instead of  RPM = (500000 / PERIOD)>>3