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 ;...

How to make Phone control RC car using Arduino #phoneControlCar

                                    https://www.youtube.com/watch?v=EYlIB1PQ8R0&t=131s




                                                   ......................ARDUINO CODE.................


char  t;
 
void setup() {
pinMode(13,OUTPUT);   //left motors forward
pinMode(12,OUTPUT);   //left motors reverse
pinMode(11,OUTPUT);   //right motors forward
pinMode(10,OUTPUT);   //right motors reverse
pinMode(9,OUTPUT);   //Led
Serial.begin(9600);
 
}
 
void loop() {
if(Serial.available()){
  t = Serial.read();
  Serial.println(t);
}
 
if(t == 'F'){            //move forward(all motors rotate in forward direction)
  digitalWrite(13,HIGH);
  digitalWrite(11,HIGH);
}
 
else if(t == 'B'){      //move reverse (all motors rotate in reverse direction)
  digitalWrite(12,HIGH);
  digitalWrite(10,HIGH);
}
 
else if(t == 'L'){      //turn right (left side motors rotate in forward direction, right side motors doesn't rotate)
  digitalWrite(11,HIGH);
}
 
else if(t == 'R'){      //turn left (right side motors rotate in forward direction, left side motors doesn't rotate)
  digitalWrite(13,HIGH);
}

else if(t == 'W'){    //turn led on or off)
  digitalWrite(9,HIGH);
}
else if(t == 'w'){
  digitalWrite(9,LOW);
}
 
else if(t == 'S'){      //STOP (all motors stop)
  digitalWrite(13,LOW);
  digitalWrite(12,LOW);
  digitalWrite(11,LOW);
  digitalWrite(10,LOW);
}
delay(100);
}

Comments

Unknown said…
I am in great problem you helped in that thank you bhaiya
Ajay said…
How to pair hc5 with phone&app name please
Unknown said…
I'm unable to find circuit drawing of river cleaner boat.
User said…
I can't find the code for river cleaning boat
sachin said…
I want purchase
Give u r number
lufi said…
Hi bhai,
I copy and paste but the tools is hide the port what i can do next step? pls guide me thanks.asap
luffy-san said…
bhaiya i am not getting the appliction of the app jrobot aurdino rc control.....plz help me
luffy-san said…
char t;

void setup() {
pinMode(13,OUTPUT); //left motors forward
pinMode(12,OUTPUT); //left motors reverse
pinMode(11,OUTPUT); //right motors forward
pinMode(10,OUTPUT); //right motors reverse
pinMode(9,OUTPUT); //Led
Serial.begin(9600);

}

void loop() {
if(Serial.available()){
t = Serial.read();
Serial.println(t);
}

if(t == 'F'){ //move forward(all motors rotate in forward direction)
digitalWrite(13,HIGH);
digitalWrite(11,HIGH);
}

else if(t == 'B'){ //move reverse (all motors rotate in reverse direction)
digitalWrite(12,HIGH);
digitalWrite(10,HIGH);
}

else if(t == 'L'){ //turn right (left side motors rotate in forward direction, right side motors doesn't rotate)
digitalWrite(11,HIGH);
}

else if(t == 'R'){ //turn left (right side motors rotate in forward direction, left side motors doesn't rotate)
digitalWrite(13,HIGH);
}

else if(t == 'W'){ //turn led on or off)
digitalWrite(9,HIGH);
}
else if(t == 'w'){
digitalWrite(9,LOW);
}

else if(t == 'S'){ //STOP (all motors stop)
digitalWrite(13,LOW);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
}
delay(100);
}

Popular posts from this blog

Smart Bridge - Automatic Hight increase when flooding | Best science Project

How to make Wifi Talking robot with arduino codes and Diagram best science project