count ++;
sensorstate = D5_Read;
if(sensorstate! =lastsensorstate){
//------------------ -------------------------------------------------- -----------
if(sensorstate==HIGH){
counthigh = count;
count1rev = count;
count1deg = count1rev/35;
readrpm();
Якщо (( rpm=1000)){ignitiondeg= 12; }
if ((rpm>=1000) && (rpm2351)){ ignitiondeg= -0, 00575*rpm+17, 75; }
if ((rpm>=2351) && (rpm5000)){ ignitiondeg= 17000/rpm-3; }
if (rpm>=5000){ ignitiondeg= 0, 7; }
counton = count1deg * (ignitiondeg+10); //10
countoff = counton+(count1deg * 7); //7
}
//------------------------ -------------------------------------------------- ----------------
if(sensorstate==LOW){
countlow=count; count=0;
}
lastsensorstate = sensorstate;
}
if(count==counton){
D12_Low; //Low
}
if(count==countoff){
D12_High; //High
}
Перейти до мітки;
}
void readrpm()
{
time=micros();
rpm = 30000000/(time-oldtime); //15 для 4 імпульсів на оборот, 30 для 2
oldtime = час;
}
//----------------------- -------------------------------------------------- -
if(sensorstate==HIGH){
counthigh = count;
count1rev = count;
count1deg = count1rev/35;
readrpm();
if ((rpm=1000)){ignitiondeg= 12; }
if ((rpm>=1000) && (rpm2351)){ ignitiondeg= -0, 00575*rpm+17, 75; }
if ((rpm> =2351) && (rpm5000)){ ignitiondeg= 17000/rpm-3; }
if (rpm>=5000){ ignitiondeg= 0, 7; }
counton = count1deg * (ignitiondeg+10); //10
counton = counton+(count1deg * 7); //7
}
//-------------------------------- -------------------------------------------------- ------
if(sensorstate==LOW){
countlow=count; count=0;
}
lastsensorstate = sensorstate;
}
if(count==counton){
D12_Low; //Low
}
if(count==countoff){
D12_High; //High
}
Перейти до мітки;
}
void readrpm()
{
time=micros();
rpm = 30000000/(time-oldtime); //15 для 4 імпульсів на оборот, 30 для 2
oldtime = час;
}
//----------------------- -------------------------------------------------- -
if(sensorstate==HIGH){
counthigh = count;
count1rev = count;
count1deg = count1rev/35;
readrpm();
if ((rpm=1000)){ignitiondeg= 12; }
if ((rpm>=1000) && (rpm2351)){ ignitiondeg= -0, 00575*rpm+17, 75; }
if ((rpm> =2351) && (rpm5000)){ ignitiondeg= 17000/rpm-3; }
if (rpm>=5000){ ignitiondeg= 0, 7; }
counton = count1deg * (ignitiondeg+10); //10
counton = counton+(count1deg * 7); //7
}
//-------------------------------- -------------------------------------------------- ------
if(sensorstate==LOW){
countlow=count; count=0;
}
lastsensorstate = sensorstate;
}
if(count==counton){
D12_Low; //Low
}
if(count==countoff){
D12_High; //High
}
Перейти до мітки;
}
void readrpm()
{
time=micros();
rpm = 30000000/(time-oldtime); //15 для 4 імпульсів на оборот, 30 для 2
oldtime = час;
}
counton = count1deg * (ignitiondeg+10); //10
countoff = counton+(count1deg * 7); //7
}
//------------------------ -------------------------------------------------- ----------------
if(sensorstate==LOW){
countlow=count; count=0;
}
lastsensorstate = sensorstate;
}
if(count==counton){
D12_Low; //Low
}
if(count==countoff){
D12_High; //High
}
Перейти до мітки;
}
void readrpm()
{
time=micros();
rpm = 30000000/(time-oldtime); //15 для 4 імпульсів на оборот, 30 для 2
oldtime = час;
}
counton = count1deg * (ignitiondeg+10); //10
countoff = counton+(count1deg * 7); //7
}
//------------------------ -------------------------------------------------- ----------------
if(sensorstate==LOW){
countlow=count; count=0;
}
lastsensorstate = sensorstate;
}
if(count==counton){
D12_Low; //Low
}
if(count==countoff){
D12_High; //High
}
Перейти до мітки;
}
void readrpm()
{
time=micros();
rpm = 30000000/(time-oldtime); //15 для 4 імпульсів на оборот, 30 для 2
oldtime = час;
}












Коментарі(4)
AndreyCenturionбув 2 роки тому
Їжджу на Chevrolet Lacetti 1.8 і ще 1 машина
Миколаїв, Львівська область
День добрий !на якій стадії ваш проект? якщо працездатний готовий поспілкуватися детальніше
AL-IVавторбув 3 місяці тому
Весь процес за проектом детально описаний в інших записах мого БП
Coffeeinбув 2 роки тому
Їжджу на Chery Jaggi і ще 3 машини
Харків, Харківська область
до речі, а ти на трамблері випередження запалення як то прибрав? грузики зафіксував і вакуум відключив?
AL-IVавторбув 3 місяці тому
Так, відцентровий блокований, вакуумник також буде вимкнений.