Posts

Showing posts from April, 2021

Dual Axis Mini CCTV Camera using ESP32 Cam | IOT Based Science Project / Harish Projects

Image
  Purchase Course VideoЁЯСЗ https://harishprojects.graphy.com/ Watch full Detailed VideoЁЯСЗ Project CodeЁЯСЗ #include "esp_camera.h" #include <Arduino.h> #include <WiFi.h> #include <AsyncTCP.h> #include <ESPAsyncWebServer.h> #include <iostream> #include <sstream> #include <ESP32Servo.h> #define PAN_PIN 14 #define TILT_PIN 15 Servo panServo; Servo tiltServo; struct MOTOR_PINS {   int pinEn;     int pinIN1;   int pinIN2;     } ; std::vector<MOTOR_PINS> motorPins = {   { 2 , 12 , 13 } , //RIGHT_MOTOR Pins (EnA, IN1, IN2)   { 2 , 1 , 3 } ,  //LEFT_MOTOR  Pins (EnB, IN3, IN4) } ; #define LIGHT_PIN 4 #define UP 1 #define DOWN 2 #define LEFT 3 #define RIGHT 4 #define STOP 0 #define RIGHT_MOTOR 0 #define LEFT_MOTOR 1 #define FORWARD 1 #define BACKWARD - 1 const int PWMFreq = 1000 ; /* 1 KHz */ const int PWMResolution = 8 ; const int PWMSpeedChannel = 2 ;...

Gas Leak & Smoke Alarm - Amazing Best science Project #scienceProject

Image
                                                        ...............ARDUINO CODE..................   #include <LiquidCrystal.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2);   int redLed = 10; int greenLed = 12; int buzzer = 8; int smokeA0 = A0; // Your threshold value int sensorThres = 250;   void setup() {   pinMode(redLed, OUTPUT);   pinMode(buzzer, OUTPUT);   pinMode(smokeA0, INPUT);   Serial.begin(9600);   lcd.begin(16,2); }   void loop() {   int analogSensor = analogRead(smokeA0);     Serial.print("Pin A0: ");   Serial.println(analogSensor);   lcd.print("Harish :");   lcd.print(analogSensor-250);   // Checks if it has reached the threshold value   if (analogSensor-250 > sensorThres)   {     digitalWrite(redLed, HIGH);     lcd.setCur...

Automatic watering for Plants Best Arduino Project

Image
                                                             ...........ARDUINO CODE.......... int WATERPUMP = 13; //motor pump connected to pin 13 int sensor = 8; //sensor digital pin vonnected to pin 8 int val; //This variable stores the value received from Soil moisture sensor. void setup() {      pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin   pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from Soil moisture sensor.   //Initialize serial and wait for port to open:   Serial.begin(9600); // opens serial port, sets data rate to 9600 bps   while (! Serial);// wait for serial port to connect. Needed for native USB   Serial.println("Speed 0 to 255"); } void loop()   {    if (Serial.available()) //loop to operate motor   {     int speed = Serial.parseInt(...

How to make Homemade Fridge рдШрд░ рдкрд░ рдмрдиाрдП рдордЯрдХा рд╕े рдл्рд░िрдЬ Desi Jugad

Image
                            ARDUINO CODE const int trigPin = 3;     const int echoPin = 2;     #define DCwater_pump 8     // defines pins     long duration;     int distance;     void setup()  {     pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output     pinMode(echoPin, INPUT); // Sets the echoPin as an Input     pinMode(DCwater_pump, OUTPUT);     Serial.begin(9600); // For serial communication }     void loop()  {     digitalWrite(trigPin, LOW);     delayMicroseconds(2);     digitalWrite(trigPin, HIGH);     delayMicroseconds(10);     digitalWrite(trigPin, LOW);     duration = pulseIn(echoPin, HIGH);     //Distance calculation     distance= duration*0.034/2;     // Printinng the distance on the Serial Mo...