Show Posts
Pages: 1 ... 4 5 [6] 7 8 ... 30
76  Using Arduino / Project Guidance / Re: Help with first project. Code sketch on: March 11, 2014, 04:24:40 pm
Is the fact that you have eight sensors and the bit pattern is eight characters long any way connected?
77  General Category / General Discussion / Re: Arduino Tinkerkit on: March 11, 2014, 04:08:47 pm
As far as I can tell it is the same kit as this one:

http://store.arduino.cc/index.php?main_page=product_info&cPath=2_23&products_id=133

But blimey, that seems expensive!

Again as far as I can tell you will also need an Arduino Uno to go with the kit.

78  Community / Bar Sport / Re: Your latest purchase on: March 10, 2014, 05:03:19 pm
I think some of the branded development kits you can buy actually have an even older board inside, the one where you have to select the power source. I suspect that they bought a load but they didn't sell as quickly as they would have hoped?

And on another, unrelated topic, http://www.bbc.co.uk/news/uk-england-derbyshire-26495922
79  Using Arduino / Installation & Troubleshooting / Re: Not Uploading Sketch: SIM908 GPRS/GPS shield attached to my Arduino UNO on: March 10, 2014, 03:44:16 pm
Just a guess without looking up the spec of the unit (hint, hint), but try uploading without the shield attached.
80  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 05:28:23 pm
If that's where the link you provided in reply #9 takes you then, in the words of the people in Dragons Den, "I'm out."
81  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 05:11:59 pm
Got to the link you provided in reply #9.

Search for the text 'GPRS communicate with arduino by hardware serial'. That is how they need to be set.
82  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 05:03:52 pm
I think you need to get an Uno. Trying to debug what the problem is 'blind' is not going to happen.

I tested my code before I posted it. It works. If yours doesn't then either you haven't followed the instructions (you did change the jumpers - both of them - next to the aerial connector didn't you?), or you have a problem with the hardware.
83  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 04:53:05 pm
I asked you to put the SIM card into a phone to see if the messages had been received.
84  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 04:38:07 pm
And when you check the SIM card? The message should be on there, unless you have deleted it. If not then you have a network problem.
85  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 04:26:48 pm
In my code it is commented out. No point destroying any evidence!
86  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 04:19:20 pm
Change the code I gave you from

Code:
  // set up the digital pins to control
  pinMode(led1, OUTPUT);
  digitalWrite(led1, LOW);

to

Code:
  // set up the digital pins to control
  pinMode(led1, OUTPUT);
  digitalWrite(led1, HIGH);

As previous, load the program into the Mega without the shield, or anything else, attached.

Then connect it all up. This time the LED should light up to start with. Send a text to turn it off. If it fails to do so after a reasonable length of time then once again check the SIM card in a 'phone.

I am assuming that you are getting a network connection - the status LED is blinking slowly, every three seconds or so.
87  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 03:34:33 pm
The program I posted works. No need for SoftwareSerial.

Assuming that the LED is wired the correct way round then I would start by taking the SIM card out and putting it in a phone to see if any messages are on it.
88  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 06:26:36 am
And if you are going to persist in trying to use SoftwareSerial all you are proving is that the quote in reply #8 is correct. You cannot use pins 7 or 8 for RX. So from your results you can talk to the SIM900 (Transmit) but not listen (Receive).

Also if you insist on using the Mega instead of the Uno then you will have to use pins 0 & 1 to talk to the SIM900. The trouble with this is that you will be flying blind - you cannot talk to two devices on one serial connection, so you cannot use the Serial monitor to help debug what is going on.

The following code works (I've just chopped up what you posted.). Upload it to the Mega without anything connected, on the SIM900 board move the two jumpers across as I suggested earlier and plug it into the Mega. Then connect your LED and suitable power supply (I use two, a 9V one for the Arduino and a 5V one for the SIM900 board. If you do then make sure you don't mix them up. ) and move the power switch into the appropriate position.

Send a text #a1 to turn the LED on pin 10 on, #a0 to turn it off.

Code:
char inchar; // Will hold the incoming character from the GSM shield

int led1 = 10;

void setup()
{
  // set up the digital pins to control
  pinMode(led1, OUTPUT);
  digitalWrite(led1, LOW);

  // wake up the GSM shield
  SIM900power();
  Serial.begin(19200);
  delay(20000);  // give time to log on to network.
  Serial.print("AT+CMGF=1\r");  // set SMS mode to text
  delay(100);
  Serial.print("AT+CNMI=2,2,0,0,0\r");
  // blurt out contents of new SMS upon receipt to the GSM shield's serial out
  delay(100);
}

void SIM900power()
// software equivalent of pressing the GSM shield "power" button
{
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(7000);
}

void loop()
{
  //If a character comes in from the cellular module...
  if(Serial.available() >0)
  {
    inchar=Serial.read();
    if (inchar=='#')
    {
      delay(10);

      inchar=Serial.read();
      if (inchar=='a')
      {
        delay(10);
        inchar=Serial.read();
        if (inchar=='0')
        {
          digitalWrite(led1, LOW);
        }
        else if (inchar=='1')
        {
          digitalWrite(led1, HIGH);
        }
        delay(10);
        //  SIM900.println("AT+CMGD=1,4"); // delete all SMS
      }
    }
  }
}

89  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 09, 2014, 05:54:06 am
First of all you cannot run the SIM900 from the USB power supply. It draws, at peak, about 2amps, you can only get 500mA from the USB connection.
90  Using Arduino / Programming Questions / Re: Questions on a Seeed studio gprs shield v1.4 11A12 on: March 08, 2014, 05:37:00 pm
The first version sent a message? Using a Mega?

Can you post a photo of your setup?
Pages: 1 ... 4 5 [6] 7 8 ... 30