usaal
Published © CC BY-NC-SA

Advanced vehicle automation - Keyeless automation

This project is essential to people who are on the go or delivery persons. This project saves time of working people who are always on the

IntermediateProtip769
Advanced vehicle automation - Keyeless automation

Things used in this project

Hardware components

ESP32 Camera Module Development Board
M5Stack ESP32 Camera Module Development Board
×1
Relay (generic)
×1
Geared DC Motor, 12 V
Geared DC Motor, 12 V
×1
Thermopile IR Sensor, TS105-10L5.5mm
Thermopile IR Sensor, TS105-10L5.5mm
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

circuit diagram

Do the connections as shown

Code

Code

C/C++
#include <ESP8266WiFi.h>

//Name of the wifi network whom we are supposed to track
const char *SSID = "mr_lazy_boei";
const char *pass = "usalusal";

WiFiClient client;

// Relay pin number
int relay=0;
int relay3=12;



for (int network = 0; network < available_networks; network++) {
if (WiFi.SSID(network).compareTo(target_ssid) == 0) { //stringOne.compareTo 1(stringTwo) < 0
return WiFi.RSSI(network);
}

}
return 0;
}

void setup() {
Serial.begin(115200);
delay(10);

Serial.println("Connecting to ");
Serial.println(SSID);

WiFi.begin(SSID,pass);
while(WiFi.status() !=WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
int32_t rssi = getRSSI(SSID);

// For debugging purpose only
Serial.print("Signal strength: ");
Serial.print(rssi);
Serial.println("dBm");

pinMode(relay, OUTPUT); // Initialize the relay pin as an output.
pinMode(relay3,OUTPUT);


}
void loop(){

int32_t rssi = getRSSI(SSID);

// For debugging purpose only
Serial.print("Signal strength: ");
Serial.print(rssi);
Serial.println("dBm");

if (rssi > (-65) && rssi != 0) // if rssi is greater then -70 dbm or it’s 0 dbm, then the light will turn
{
digitalWrite(relay3, LOW);
Serial.println("ON");

}
if (rssi < (-65) && rssi != 0)

{
digitalWrite(relay3,HIGH);
Serial.println("OFF");
ESP.restart();
}
if (rssi < (-100) && rssi != 0)
{
  ESP.restart();
}

}

Credits

usaal
0 projects • 2 followers
Contact

Comments

Please log in or sign up to comment.