Pages: [1]   Go Down
Author Topic: ADH8066 GSM Module  (Read 2251 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to send AT commands from my Arduino Uno to the ADH8066 GSM module I purchased from Sparkfun. I am looking for help in all categories (wiring and programming). If anyone has any experience I would appreciate any help. 

Currently I have the TX pin of the Arduino connected to the RX0 pin on the ADH8066 and the RX pin of the Arduino to the TX0 pin of the ADH8066. I have the digital pin 13 on the Arduino connected to the ONKEY pin of the ADH8066 in order to power the GSM Module on. With my code I am not receiving any thing from the GSM Module.

Code:
#include <string.h>
#include <ctype.h>

int PWON = 13; // the pin to switch on the module (without press on button)
int rxPin = 0;                    // RX PIN
int txPin = 1;                    // TX TX

String inputString = "";
char inChar;
int inByte = 0;

void setup()
{
  Serial.begin(115200);
  inputString.reserve(200);
  pinMode(PWON, OUTPUT);      // sets the digital pin as output
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  PowerModuleOn();
  delay(3000);
  InitializeGSM();
}

void loop()
{
 
}

void PowerModuleOn()
{
  digitalWrite(PWON, LOW); //Pull PWON low
  delay(300);  //Delay 300 ms
  digitalWrite(PWON, HIGH);  // Pull PWON high, Powers up GSM Module
}

void InitializeGSM()
{
  Serial.write("AT");
  Serial.write(0x0D); //carriage
  delay(2000);
  if(Serial.available() > 0)
  {
    Serial.println("Data Available");
    //int inByte = Serial.read();
    //Serial.println(inByte);
    char c = (char) Serial.read();
    inputString += c;
    Serial.println(inputString);
  }else{
    Serial.println("No data coming from GSM Module");
  }
 
 
  delay(10000);
  //Serial.print(0x0d,HEX);
  Serial.println("AT+CPIN?");
  Serial.print(0x0d);
  if(Serial.available() > 0)
  {
    char c = (char) Serial.read();
    inputString += c;
    Serial.println(inputString);
  }
 
}

Any help is appreciated.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to do the same thing, but with a cell phone as the modem.

If you figure this out, tell me, ok?
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 615
Posts: 49415
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have the digital pin 13 on the Arduino connected to the ONKEY pin of the ADH8066 in order to power the GSM Module on.
Which is likely not providing anywhere near enough current to run the module.

The datasheet says that the device needs 250mA in talk mode and 350mA in GPRS mode. The digital pin can supply 40mA.
Logged

Abq NM
Offline Offline
Newbie
*
Karma: 1
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am getting this module to send and receive text messages using a uno clone.


I just set it up with this schematic http://dlnmh9ip6v2uc.cloudfront.net/datasheets/BreakoutBoards/ADH8066BreakoutBoardWiringCircuitUpdate.pdf

I have pin A3(17) for the off and on portion just using the pin in place of the switch No resistor.

Big thing I found to get it to work was setting the serial on the module to 9600, so the clone got all of the message prior to that it would only get a little bit of the incoming text.

Glenn
Logged

"Some cause happiness wherever they go;
others, whenever they go.." - Oscar Wilde

Offline Offline
Sr. Member
****
Karma: 0
Posts: 399
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear Tmidthun,

Did you had chance to make your project working?

I would like to know how you powered the ADH8066 because it seams to work in 4V and Arduino Mini provide 5V.
How did you make 4V from Arduino?

Could you send at command?
Could you let me know how you did it?

Thank
Cheers
Logged

Il ne suffit pas de tout savoir, la persévérance, c'est déjà presque tout!

Pages: [1]   Go Up
Jump to: