Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Home Automation using GSM Module
Just Do Electronics
April 10, 2021
Circuit Diagram
:-
Code :-
//Prateek //www.prateeks.in #define Start #define Stop #define Relay 10 #define Yellow 9 #define Green 8 int temp = 0, i = 0; int led = 13; char str[15]; void setup() { Serial.begin(9600); pinMode(led, OUTPUT); pinMode(Relay, OUTPUT); pinMode(Yellow, OUTPUT); pinMode(Green, OUTPUT); Serial.println("AT+CNMI=2,2,0,0,0"); delay(400); Serial.println("AT+CMGF=1"); delay(400); } void loop() { if (temp == 1) { check(); temp = 0; i = 0; delay(1000); } } void serialEvent() { while (Serial.available()) { if (Serial.find("#A.")) { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, LOW); while (Serial.available()) { char inChar = Serial.read(); str[i++] = inChar; if (inChar == '*') { temp = 1; return; } } } } } void check() { if (!(strncmp(str, "start", 5))) { digitalWrite(Relay, LOW); digitalWrite(Green, HIGH); } else if (!(strncmp(str, "stop", 4))) { digitalWrite(Relay, LOW); digitalWrite(Yellow, HIGH); } }
Video :-
0 Comments
Newer
Older
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Build Your Own Gps Tracking System using Arduino
Ultrasonic Sensor as a Counter with Arduino
OTP Based Door Lock Using Arduino And SIM800L
How To Make RFID & Keypad Based Door Lock
IoT Based Patient Health Monitoring System Using Blynk App
Esp32 Cam Based Face Unlock
IoT Weight Scale using Load Cell HX711 & ESP8266
Arduino Based Ventilator
ESP32 Led Blink With Push Button
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments