Automatic Plant Watering System

Source Code:- int rainmodule = 0; int buzzer = 1; int led = 2; int Rain = HIGH; void setup() { pinMode (rainmodule, INPUT); pinMode (buzzer, OUTPUT); pinMode (led, OUTPUT); } void loop() { Rain = digitalRead(firesensor); if (Rain== LOW) { digitalWrite(buzzer, HIGH); digitalWrite(led,HIGH); } else { digitalWrite(buzzer, LOW); digitalWrite(led,LOW); } delay(400); }  

RGB Light controoled with Mobile

Source Code:- #include <SoftwareSerial.h> SoftwareSerial BLU(0,1); #define redPin 5 #define greenPin 6 #define bluePin 7 void setup() { //Serial setup Serial.begin(9600); Serial.println(“-= HC-05 Bluetooth RGB LED =-“); BLU.begin(9600); BLU.println(“-= HC-05 Bluetooth RGB LED =-“); pinMode(4, OUTPUT); digitalWrite(4,HIGH); pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT); setColor(255, 0, 0); delay(500); setColor(0, 255, 0); delay(500); setColor(0, 0, 255); delay(500); … Read more

Arduino Obstacle Avoiding car

Arduino Source Code:- #include <AFMotor.h> #include <NewPing.h> #include <Servo.h> #define TRIG_PIN A0 #define ECHO_PIN A1 #define MAX_DISTANCE 200 #define MAX_SPEED 190 // sets speed of DC motors #define MAX_SPEED_OFFSET 20 NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE); AF_DCMotor motor1(1, MOTOR12_1KHZ); AF_DCMotor motor2(2, MOTOR12_1KHZ); AF_DCMotor motor3(3, MOTOR34_1KHZ); AF_DCMotor motor4(4, MOTOR34_1KHZ); Servo myservo; boolean goesForward=false; int distance = 100; int … Read more

Control Lights with Your Mobile | Home Automation | NodeMCU ESP8266

Source Code of Arduino :- #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> char auth[] = ” —— “; char ssid[] = ” —- “; char pass[] = ” —- “; void setup() { // Debug console Serial.begin(9600); pinMode(D1,OUTPUT); pinMode(D2,OUTPUT); pinMode(D3,OUTPUT); pinMode(D4,OUTPUT); digitalWrite(D1,HIGH); digitalWrite(D2,HIGH); digitalWrite(D3,HIGH); digitalWrite(D4,HIGH); Blynk.begin(auth, ssid, pass); } void loop() { Blynk.run(); }  

Arduino Radar Detector

Source Code of Arduino :- #include <Servo.h>. const int trigPin = 10; const int echoPin = 11; long duration; int distance; Servo myServo; void setup() { pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); Serial.begin(9600); myServo.attach(12); } void loop() { for(int i=15;i<=165;i++){ myServo.write(i); delay(30); distance = calculateDistance(); Serial.print(i); Serial.print(“,”); Serial.print(distance); Serial.print(“.”); } for(int i=165;i>15;i–){ myServo.write(i); delay(30); distance = calculateDistance(); … Read more

Chaser using Arduino | Arduino Chaser kaise banaye

Source Code:- int i; void setup() { pinMode(1,OUTPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT); } void loop() { for(i=1;i<=6;i++) { digitalWrite(i,HIGH); delay(150); } for(i=6;i<=1;i–) { digitalWrite(i,LOW); delay(150); } for(i=1;i<=6;i++) { if(i%2==0) { digitalWrite(i,HIGH); delay(150); } } for(i=1;i<=6;i++) { if(i%2!=0) { digitalWrite(i,HIGH); delay(150); } } for(i=1;i<=6;i++) { if(i%2==0) { digitalWrite(i,LOW); delay(150); } } for(i=1;i<=6;i++) { if(i%2!=0) { … Read more

Arduino Flame Detector Alarm

┬áSource Code:- int firesensor = 0; int buzzer = 1; int led = 2; int Fire = HIGH; void setup() { pinMode (firesensor, INPUT); pinMode (buzzer, OUTPUT); pinMode (led, OUTPUT); } void loop() { Fire = digitalRead(firesensor); if (Fire== LOW) { digitalWrite(buzzer, HIGH); digitalWrite(led,HIGH); } else { digitalWrite(buzzer, LOW); digitalWrite(led,LOW); } }