phrbob93
Member level 1
- Joined
- Mar 28, 2014
- Messages
- 38
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Location
- Jalandhar, punjab
- Activity points
- 343
i have tried interfacing of gsm 900 module with Arduino uno
after reading some tutorial on the internet i found that sending "AT" as an AT command will give OK as a Result by the GSM Module
so i tried to send AT serially But I did not received any OK
heres my code
i did noticed that something is received as LED on pin 8 glows once
but why the recieved character cant be seened on lcd or either on the serial monitor screen????
after reading some tutorial on the internet i found that sending "AT" as an AT command will give OK as a Result by the GSM Module
so i tried to send AT serially But I did not received any OK
heres my code
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 #include <LiquidCrystal.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); int led = 8; // incoming serial byte int inByte; void setup() { lcd.begin(16, 2); // initialize the led pin as an output. pinMode(led, OUTPUT); // start serial port at 9600 bps Serial.begin(9600); // wait for a while till the serial port is ready delay(100); // send the initial data once // Serial.print(" AT"); } } void loop() { // if we get a valid byte, read analog ins: if(Serial.available()) { // get incoming byte: inByte= Serial.read(); Serial.write(inByte); lcd.print(inByte); // send the same character back to serial port // blink the LED once // digitalWrite(led, LOW); delay(100); } else digitalWrite(led, HIGH); while(1); }
i did noticed that something is received as LED on pin 8 glows once
but why the recieved character cant be seened on lcd or either on the serial monitor screen????
Last edited by a moderator: