Комментарии:
detachInterrupt() syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101
ОтветитьIt is cool
ОтветитьI need this and rpm counter in one
ОтветитьThe schematic indicates the IR sensor is going into digital 2 and your interrupt in the code indicates pin 0 so I don't think that code will work.
ОтветитьThank's
ОтветитьSir how can we this code for a flat disk wheel???what modification are needed??
Ответить10892 rpm??? Really???
ОтветитьHow to I get the library for IR speed sensor?
ОтветитьMake a mini atm or piggy bank fully automatic plzz using aurdino
Ответитьdo you have the same code but not for lcd
Ответитьrpm = (rev/times)*60000/3 ; how did 60000 ?
Ответитьnice, can this be used as a trigger switch to activate the brakes for a wind turbine?
Ответитьnice, can this be used as a trigger switch to activate the brakes for a wind turbine?
ОтветитьSir, please tell me can I eat relays from speed rpm?
ОтветитьKindly post a same project with Hall sensor
ОтветитьWhy fan is not takeoff on 12000rpm.
😆😆😆😆😆😆😆😆
CODE IS SHIT, shows random numbers
Ответитьitu ndak salah baca ya? khawatirnya kalau baling2nya kipas ada 3, sensor baca rpmnya 3x lbh banyak
Ответитьthanks! Is it possible to calculate fan cycles instead of speed in this example using Arduino
Ответитьhow to get the input voltage?
Ответитьwould this be able to be supplied from a 9v battery or 12/24v supply aswell?
ОтветитьHi. How would this be done without using microcontrollers?
ОтветитьYou should not use detachInterrupt(), but instead use noInterrupts() and interrupts() to disable/enable interrupts
Ответитьbro i just want to count the totol number of revolution not RPM, what changes should i make?
ОтветитьHow to fix alarm if the rpm is zero
Ответитьhow to display it in serial monitor?
i change the code to display it in serial monitor, but it does not work.
CODE:
//to display on serial monitor code:
float value = 0;
float rev = 0;
int rpm;
int oldtime = 0;
int time;
void isr() //interrupt service routine
{
rev++;
}
void setup()
{
Serial.begin("Initializing");
attachInterrupt(0,isr,RISING); //attaching the interrupt
}
void loop()
{
delay(1000);
detachInterrupt(0); //detaches the interrupt
time = millis() - oldtime; //finds the time
rpm = (rev/time) * 60000 * 3; //calculates rpm for blades
oldtime = millis(); //saves the current time
rev = 0;
Serial.println("TACHOMETER");
Serial.print( rpm);
Serial.print(" RPM");
Serial.print(" ");
attachInterrupt(0,isr,RISING);
}
thanks , but i think you have error in your code which is
rpm = (rev/times)*60000/3 ;
it should be :
rpm = (rev/(times/3))*60000 ;
Sir how to made airgun pellet speed chronograph plz make one video
ОтветитьCan this sensor use in NodeMcu?
Ответитьhello sir ... im follow your instruction .... but my lcd doesnt write anything .... its appear something but in square pixel ... n make me confusing... pls help me sir...
Ответитьgreat !!!
ОтветитьSeems like a nice project, but there is no way that fan is running at 12,000rpm. At that speed it would take off like a helicopter :)
ОтветитьPlease make a incubater
ОтветитьGood project bro
ОтветитьNice project 👍
ОтветитьGood job sir
Ответить