Thursday 9 June 2011

Read engine speed.

بِسْــــــــــــــــــــــمِ اﷲِارَّحْمَنِ ارَّحيم

An engine produces speed in range of 0-13,000 rpm. By using single Hall sensor, the engine generates one pulse per revolution. A microcontroller PIC16F877A be used to count the number of pulses each second and calculate rpm value. Rpm means Revolutions Per Minute. The engine speed on each second produce a maximum value at 216.667 rps or minimum value at 0.0167 rps (Revolutions Per Second).

MAX = 216.667;
MIN = 0.0167;

float;
pulse_count = (read_1);


rps = rpm / 60;

RPM = [ (rps x 60) / 64 ] x 64;
RPM = rps x 60;



1.60 60
2.60 120
3.60 180
4.60 240
5.60 300
6.60 360
7.60 420
8.60 480
9.60 540
10.60 600
11.60 660
12.60 720
13.60 780
14.60 840
15.60 900
16.60 960
17.60 1020
18.60 1060
40.60 2400

No comments:

Post a Comment