Postingan

Menampilkan postingan dari Maret, 2017

Coding SMS Arduino

#include <gprs.h> #include <softwareserial.h> #define TIMEOUT     5000 #define LED_PIN     13 #define ON LOW #define OFF HIGH const int Relay1 = 2; const int Relay2 = 3; const int Relay3 = 4; const int Relay4 = 5; int StatRelay1; int StatRelay2; int StatRelay3; int StatRelay4; GPRS gprs; void setup() {   pinMode (Relay1 , OUTPUT); digitalWrite (Relay1, HIGH);   pinMode (Relay2 , OUTPUT); digitalWrite (Relay2, HIGH);   pinMode (Relay3 , OUTPUT); digitalWrite (Relay3, HIGH);   pinMode (Relay4 , OUTPUT); digitalWrite (Relay4, HIGH);   Serial.begin(9600);   while(!Serial);   Serial.println("Starting SIM800 Auto Read SMS");   gprs.preInit();   delay(1000);   while(0 != gprs.init()) {       delay(1000);       Serial.print("init error\r\n");   }   //Set SMS mode to A...

Hobby ku

Gambar
INI ADALAH HOBBY KU SOBAT