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
GSM + GPS Based Vehicle Location Tracking System
Smart Shopping Cart using RFID and NodeMCU
Build Your Own Gps Tracking System using Arduino
Sign Language to Speech Conversion using Arduino With Flex Sensor
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
RFID Based Automated Toll Collection System Using Arduino
Ultrasonic Sensor as a Counter with Arduino
Car Parking System Using Arduino
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Automatic Fan Controlled Using Temperature Sensor
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