I used below attach Ciruit for inductive pickup coil but a problem is coming to measure the rpm.when i start my motorcycle then arduino does not measure the pulses and it become a blind, does not work..when i keep the inductive coil far from the sparkplug wire then it takes the pulses.
please help me what i do for it.
I used below attach Ciruit for inductive pickup coil but a problem is coming to measure the rpm.when i start my motorcycle then arduino does not measure the pulses and it become a blind, does not work..when i keep the inductive coil far from the sparkplug wire then it takes the pulses.
please help me what i do for it.
int rpmcount =0;int rpm =0;unsignedlong lastmillis =0;void setup(){
Serial.begin(9600);
attachInterrupt(0, rpm_fan, FALLING);}void loop(){if(millis()- lastmillis ==1000){//Uptade every one second, this will be equal to reading frecuency (Hz).
detachInterrupt(0);//Disable interrupt when calculating
rpm = rpmcount *60;// Convert frecuency to RPM, note: this works for one interruption per full rotation. For two interrups per full rotation use rpmcount * 30.
Serial.print("RPM =\t");//print the word "RPM" and tab.
Serial.print(rpm);// print the rpm value.
Serial.print("\t Hz=\t");//print the word "Hz".
Serial.println(rpmcount);//print revolutions per second or Hz. And print new line or enter.
rpmcount =0;// Restart the RPM counter
lastmillis = millis();// Uptade lasmillis
attachInterrupt(0, rpm_fan, FALLING);//enable interrupt}}// this code will be executed every time the interrupt 0 (pin2) gets low.void rpm_fan(){
rpmcount++;}
i used this program to take inputs from the inductive pickup coil..but i am so much worry.. arduino measues automaticaly values when i start the motorcycle without keeping the inductive coil on sparkplug...but i kept the coil on sparkplug then arduino does not work.it blind
- - - Updated - - -
this is hardware of inductive pickup sensor i have mad
I don't about ur areduino to much & inductive pick up coil also.With coil if u kept ur hardware near spark plug then also display show blank. if this is case than u should kept away from spark plug & check display.
I don't about ur areduino to much & inductive pick up coil also.With coil if u kept ur hardware near spark plug then also display show blank. if this is case than u should kept away from spark plug & check display.
yes u are right.when i kept away coil from the spark plug then comes output...in this way my sensor will get values of the other nearby running bikes...i want i round the coil on spark plug then it takes only values of my motorcycle........
give me the solution