How to Create OFF Delay Timer in Arduino ||OFF Delay timer without disturbing program Urdu||Hindi

preview_player
Показать описание
In this video i will show you how to create off delay timer in arduino. An Off-delay timer a special timer that is ready to accept the trigger when the input voltage is applied. An output is energized by applying the trigger, which must be removed for the time delay to start. An output is de-energized at the end of the time delay period.
Рекомендации по теме
Комментарии
Автор

Thanks for this important timer design.

topraksiztarimleduygulamal
Автор

It's very nice. Thank u for it.
But sir I need in thise little bit change....
I want when button released second will be zero but timer will start without button released.

santidebroy
Автор

This what exactly I was looking but instead of press button I want use digital read, like if the water level reached high the buzzer will on for 10 seconds plz tell me what changes I hv to do

dawoodips
Автор

اسلام علیکم
محب الرحمان بھائی آپ کی ویڑیوز سے ہم نے بہت کچھ سیکھا - جزاک اللہ
اس پرو جیکٹ کے بارے میں بات پوچھنی ہے کہ اگر سیکنڈ کاونٹ کے دوران بٹن پریس کرے تو ٹائمر ریسیٹ ہوگا یا چلتا رہے گا؟

dreamstudiodslr
Автор

Sir below is my code for automatically water level indicator using ultrasonic sensor but I want to add buzzer if the water reaches full tank for 10 seconds then it the buzzer should stop

const int trigPin = 2;
const int echoPin = 3;
int ledA = 13;
int ledB = 12;
int ledC = 11;
int ledD = 10;
int ledE = 9;
int buzzer = 8;
int A = 20;
int B = 16;
int C = 12;
int D = 8;
int E = 5;
int max_distance = 200;
void setup() {
Serial.begin(9600);
pinMode (ledA, OUTPUT);
pinMode (ledB, OUTPUT);
pinMode (ledC, OUTPUT);
pinMode (ledD, OUTPUT);
pinMode (ledE, OUTPUT);
pinMode (buzzer, OUTPUT);
digitalWrite(ledA, LOW);
digitalWrite(ledB, LOW);
digitalWrite(ledC, LOW);
digitalWrite(ledD, LOW);
digitalWrite(ledE, LOW);
digitalWrite(buzzer, LOW);
}
void loop() {
long duration, inches, cm;
pinMode(trigPin, OUTPUT);
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
cm = ( duration / 29 ) / 2;
inches = cm * 0.393701;
inches =
cm =

if (inches < max_distance) {
Serial.print(inches);
Serial.print("in");
Serial.print(cm);
Serial.print("cm");
Serial.println();
delay(100);
digitalWrite (ledA, HIGH);
}
if (inches >= A) {
digitalWrite (ledA, HIGH);
digitalWrite (ledB, LOW);
digitalWrite (ledC, LOW);
digitalWrite (ledD, LOW);
digitalWrite (ledE, LOW);
}
else if (inches >= B) {
digitalWrite (ledA, LOW);
digitalWrite (ledB, HIGH);
digitalWrite (ledC, LOW);
digitalWrite (ledD, LOW);
digitalWrite (ledE, LOW);
}
else if (inches >= C) {
digitalWrite (ledA, LOW);
digitalWrite (ledB, LOW);
digitalWrite (ledC, HIGH);
digitalWrite (ledD, LOW);
digitalWrite (ledE, LOW);
}
else if (inches >= D) {
digitalWrite (ledA, LOW);
digitalWrite (ledB, LOW);
digitalWrite (ledC, LOW);
digitalWrite (ledD, HIGH);
digitalWrite (ledE, LOW);
}
else if (inches >= E) {
digitalWrite (ledA, LOW);
digitalWrite (ledB, LOW);
digitalWrite (ledC, LOW);
digitalWrite (ledD, LOW);
digitalWrite (ledE, HIGH);
}
else {
digitalWrite (ledA, HIGH);
digitalWrite (ledB, HIGH);
digitalWrite (ledC, HIGH);
digitalWrite (ledD, HIGH);
digitalWrite (ledE, HIGH);
}

}

long microsecondsToInches(long microseconds) {
return (microseconds / 74) / 2;
}
long microseconds) {
return (microseconds / 29) / 2;
}

dawoodips
Автор

sir please give the 4 channel different delay timer set custom timing for Arduino uno r3

Divineknp
Автор

Hi dear what will the code if button is pressed or high and LED will be high again this LED will off while switch is on ,

ObaidullahKakar