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
Arduino & GSM Based Electronic Notice Board
Just Do Electronics
March 28, 2021
Code And Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #include
LiquidCrystal_I2C lcd(0x27, 16, 2); int led = 13; int temp = 0, i = 0, x = 0, k = 0; char str[100], msg[32]; void setup() { lcd.init(); lcd.backlight(); Serial.begin(9600); pinMode(led, OUTPUT); digitalWrite(led, HIGH); lcd.print("GSM Initilizing..."); gsm_init(); lcd.setCursor(0, 0); lcd.print("Wireless Notice"); lcd.setCursor(0, 1); lcd.print(" Board "); delay(2000); lcd.clear(); lcd.print(" Prateek"); delay(1000); lcd.setCursor(0, 1); lcd.print("System Ready"); Serial.println("AT+CNMI=2,2,0,0,0"); delay(500); Serial.println("AT+CMGF=1"); delay(1000); digitalWrite(led, LOW); } void loop() { for (unsigned int t = 0; t < 60000; t++) { serialEvent(); if (temp == 1) { x = 0, k = 0, temp = 0; while (x < i) { while (str[x] == '#') { x++; while (str[x] != '*') { msg[k++] = str[x++]; } } x++; } msg[k] = '\0'; lcd.clear(); lcd.print(msg); delay(1000); temp = 0; i = 0; x = 0; k = 0; } } lcd.scrollDisplayLeft(); } void serialEvent() { while (Serial.available()) { char ch = (char)Serial.read(); str[i++] = ch; if (ch == '*') { temp = 1; lcd.clear(); lcd.print("Message Received"); delay(500); } } } void gsm_init() { lcd.clear(); lcd.print("Finding Module.."); boolean at_flag = 1; while (at_flag) { Serial.println("AT"); while (Serial.available() > 0) { if (Serial.find("OK")) at_flag = 0; } delay(1000); } lcd.clear(); lcd.print("Module Connected.."); delay(1000); lcd.clear(); lcd.print("justdoelectronic"); boolean echo_flag = 1; while (echo_flag) { Serial.println("ATE0"); while (Serial.available() > 0) { if (Serial.find("OK")) echo_flag = 0; } delay(2000); } lcd.clear(); lcd.print("www.prateeks.in"); delay(2000); lcd.clear(); lcd.print("Finding Network.."); boolean net_flag = 1; while (net_flag) { Serial.println("AT+CPIN?"); while (Serial.available() > 0) { if (Serial.find("+CPIN: READY")) net_flag = 0; } delay(1000); } lcd.clear(); lcd.print("Network Found.."); delay(1000); lcd.clear(); }
.
Video :-
PHOTOS
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
Smart Street Light Using Arduino
ESP32 Led Blink With Push Button
EM-18 Interface With Arduino Nano
Ultrasonic Sensor as a Counter with Arduino
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Measure CO2 Level in Air Using Arduino
IoT Based Patient Health Monitoring System Using Blynk App
Em-18 Interfacing With Esp32
Nodemcu Interfacing With Em-18
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