MARAMING SALAMAT SA MGA NAG REPLY AT TUMULONG...@onehitcombo@RagnaroksSun@ionik3SALAMAT.. nagawa ko na mga idol... no1
@ionik3, panu sir pahabain ung ittxt pra mga on ung ilaw? kc tnxt ko 1 letter lng, o = on.. dba dahil sa char inchar; un?
^ di mo kailangan nang 3 A supply/regulator. 7805 is sufficient na.it only needed a large capacitor after the regulator. for transmit bursts,
sir, read the specs of Sim900D gsm module, 5V and minimum of 1.5 A, the 7805 regulator is only 1A, gamit ka sir ng LM323 which has 3 A. para mapagana yung gsm Module mo. hope nakatulongoh di kaya bili ka na lang sa e-gizmo nang supply para sa sim900D o GSM module.
#include <stdio.h>#include <NewSoftSerial.h>#define powerOn 4char filter[10];NewSoftSerial gsmRxTx (2, 3); //(rxpin, txpin) declaration of new rx/tx pinvoid setup(){ Serial.begin(9600); gsmRxTx.begin(9600); digitalWrite(powerOn, HIGH); //connect powerOn of gsm module to pin 4. this will open gsm module kahit na di mo pindutin yung power button. delay(1500); digitalWrite(powerOn, LOW); delay(5000); startUp();}void startUp(){int i; gsmRxTx.print("AT\r\n"); //send AT serially, expect OK as gsm response delay(1000); if (gsmRxTx.available()){ //check if there's any available in serial port Serial.println("pass"); for (i<10;i=0;i++){ filter[i] = gsmRxTx.read(); Serial.println(filter[i]); } }}void loop(){ Serial.println("halo"); delay(1000);}
digitalWrite(powerOn, HIGH); //connect powerOn of gsm module to pin 4. this will open gsm module kahit na di mo pindutin yung power button. delay(1500); digitalWrite(powerOn, LOW); delay(5000);[code]dpat ay ilagay nio sa digitalWrite imber na "powerOn" ay ung number ng digital pin na ginamit nio..paxenxa na ngaun ko lang napancn.. ngaun ko lang dn kasi na test ng maaus eh..;D ;D ;D
RagnaroksSunSir nasuplayan mu n lhat ng board un arduino at GSM? gumamit k rin ng arduino Sir?.