Use Arduino GSM/GPRS shield to send data to from my web service to arduino and display it on Dot matrix Display -
i want ask how control dot matrix display (dmd) via web service created using gprs shield v2.0 , arduino uno r3,,,
example: filled out information on domain (mydomain.com/set?string = hello word) , appear in dmd
than possible if data twitter too?? can receive data 2 source, there mydomain.com , twitter.com
i have:
- gprs shield v2.0 bought seeedstudio.com
- using arduino uno r3
- dmd 16x32 bought freetronics
hope works :)
#include <softwareserial.h> softwareserial gprsserial(7, 8); void setup() { gprsserial.begin(19200); serial.begin(19200); serial.println("config sim900..."); delay(2000); serial.println("done!..."); gprsserial.flush(); serial.flush(); // attach or detach gprs service gprsserial.println("at+cgatt?"); delay(100); toserial(); // bearer settings gprsserial.println("at+sapbr=3,1,\"contype\",\"gprs\""); delay(2000); toserial(); // bearer settings gprsserial.println("at+sapbr=3,1,\"apn\",\"epc.tmobile.com\""); delay(2000); toserial(); // bearer settings gprsserial.println("at+sapbr=1,1"); delay(2000); toserial(); } void loop() { // initialize http service gprsserial.println("at+httpinit"); delay(2000); toserial(); // set http param value gprsserial.println("at+httppara=\"url\",\"http://your.domain.com/rest/receivesensordata?sensorval1=blah&sensorval2=blah\""); delay(2000); toserial(); // set http action type 0 = get, 1 = post, 2 = head gprsserial.println("at+httpaction=0"); delay(6000); toserial(); // read server response gprsserial.println("at+httpread"); delay(1000); toserial(); gprsserial.println(""); gprsserial.println("at+httpterm"); toserial(); delay(300); gprsserial.println(""); delay(10000); } void toserial() { while(gprsserial.available()!=0) { serial.write(gprsserial.read()); }
}
Comments
Post a Comment