Thursday, 16 April 2020

SMS Monitor || P10 LED Scrolling Text Display || Arduino || SIM800L


PROJECT VIDEO LINK:

Pin diagram:




PROJECT BLOCK DIAGRAM:
android app LINK:


SAMPLE SOFTWARE CODE:
----------------------

#include <SPI.h> #include <DMD.h> #include <TimerOne.h> #include "SystemFont5x7.h" #include "Arial_black_16.h" #define ROW_MODULE 2 #define COLUMN_MODULE 1 DMD p10(ROW_MODULE, COLUMN_MODULE); char message[200]; char char_read; byte pos_index = 0; int i; char welcome_screen[] = "Arduino Based Moving Message Display Using GSM-SMS"; void p10scan() { p10.scanDisplayBySPI(); } void setup() { Serial.begin(9600); pinMode(led, OUTPUT); ////BUZZ OUT PUT digitalWrite(led,HIGH);///BUZZER LOW OFF Timer1.initialize(2000); Timer1.attachInterrupt(scan_module); led_module.clearScreen( true ); Serial.println("AT");delay(500); Serial.println("AT+CMGF=1");delay(500); Serial.println("AT+CMGD=1,4");delay(1000); Serial.println("ATE0");delay(500); Serial.println("AT+CNMI=2,2,0,0,0");delay(500); Serial.println("AT&W");delay(500); digitalWrite(led, LOW); strcpy(message,welcome_screen); } void loop() { if(Serial.available()) { for(i=0; i<199; i++) { message[i] = '\0'; Serial.print(message[i]); } pos_index=0; } while(Serial.available() > 0) { p10.clearScreen( true ); if(pos_index < (199)) { char_read = Serial.read(); message[pos_index] = char_read; pos_index++; } } p10.selectFont(Arial_Black_16); p10.drawMarquee(message ,200,(32*ROW_MODULE)-1,0); long start=millis(); long timer_start=start; boolean flag=false; while(!flag) { if ((timer_start+30) < millis()) { flag=p10.stepMarquee(-1,0); timer_start=millis(); } } }




No comments:

Post a comment