Show Posts
Pages: [1] 2 3 ... 54
1  Using Arduino / LEDs and Multiplexing / Re: How to send the state of an LED via SMS on: Today at 03:21:58 am
Sorry, you do have them set, I missed it. It's still rather early!

You could try declare the pins as INPUT or OUTPUT first, then do the digital writes.

Code:
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  pinMode(led13, OUTPUT);
  pinMode(Relay_1, OUTPUT);   
  pinMode(Relay_2, OUTPUT); 
  pinMode(Relay_3, OUTPUT); 
  pinMode(Relay_4, OUTPUT); 

  //-------( Initialize Pins so relays are inactive at reset)----
 
  digitalWrite(led, LOW);  // Set led to LOW
  digitalWrite(led13, LOW);  // Set led to LOW
 
  digitalWrite(Relay_1, RELAY_OFF);
  digitalWrite(Relay_2, RELAY_OFF);
  digitalWrite(Relay_3, RELAY_OFF);
  digitalWrite(Relay_4, RELAY_OFF);
2  Using Arduino / Project Guidance / Re: Battery operated Weather GPRS station report once per day on: Today at 02:55:23 am
Many SIM900 shields can be turned on and off by software, no need for any other components. Once it's awake wait until you have a signal before transmitting. Then shut it down again.
3  Using Arduino / LEDs and Multiplexing / Re: How to send the state of an LED via SMS on: Today at 02:39:09 am
You could try initialising the pins before writing to them?

And if we are going for consistency, you don't appear to initialise pins 'led' or 'led13'.
4  Community / Website and Forum / Re: Website problems 25-29 Sept 2014 - authorization problem? on: September 30, 2014, 03:58:43 am
Don't bank on it - I've noticed that some user names aren't appearing again!

Your first date coincides with the release of the exhibitors list at Maker Faire Rome. I wonder if the forum shares servers with the Maker Faire site?
5  Using Arduino / Programming Questions / Re: Power up GSM Shield with Software on: September 29, 2014, 03:26:39 am
You need to bridge the two pads with a blob of solder.

Do not modify the power key. The unit requires a pulse to turn it on or off, not a constant state.
6  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 12:41:55 pm
All you really needed to do was merge the two pieces of code you have, and listen for the modem talking, not Serial Monitor:

Code:
#include <SoftwareSerial.h>
SoftwareSerial gsmSerial(2,3);
char gsm_sms = 0;

void setup(){
  pinMode(13, OUTPUT);
  gsmSerial.begin(9600);
  Serial.begin(9600);
  delay(20000); // give time to log on to network.
  gsmSerial.print("AT+CMGF=1\r");
  delay(100);
  gsmSerial.print("AT+CNMI=2,2,0,0,0\r");
  delay(100);
  Serial.println("Ready...");
}

void loop(){
  if(gsmSerial.available()) {
    gsm_sms=gsmSerial.read();
    if (gsm_sms == 'A'){
      digitalWrite(13,HIGH);
    }
    else if (gsm_sms == 'a'){
      digitalWrite(13,LOW);
    }
  }
}

I've compiled it but not tested it as I don't have a modem to hand. You might want to display the contents of gsm_sms on Serial Monitor so you can see what, if anything, is happening.
7  Using Arduino / Programming Questions / Re: Module sim900A initialize testing... on: September 28, 2014, 12:29:09 pm
I can't see any code.
8  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 12:25:10 pm
Not even OK?
9  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 12:15:01 pm
And then what happens if you type AT, and press return?
10  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 12:02:02 pm
Nothing?
11  Using Arduino / Networking, Protocols, and Devices / Re: Recieve data from gps. on: September 28, 2014, 11:36:27 am
In that case I have no more ideas I'm afraid.

It has nothing to do with functionality but you could reduce the main loop:

Code:
void loop()
{
  if(gps.available())
  {
    Serial.write(gps.read());
  }
}
12  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 11:27:28 am
That means it is responding but you have echo turned off.

Try replacing  void setup() with:

Code:
void setup()
{
  GPRS.begin(19200);
  GPRS.print("ATE1\r");  // Echo on
  Serial.begin(19200);
}

13  Using Arduino / Networking, Protocols, and Devices / Re: Receive sms with gsm module on: September 28, 2014, 07:30:18 am
Look at the link in my signature. It's all standard instructions that should work on most modems.
14  Using Arduino / Networking, Protocols, and Devices / Re: Recieve data from gps. on: September 28, 2014, 07:09:18 am
Post your current version of your code?
15  Using Arduino / Networking, Protocols, and Devices / Re: DS1307 intermittent starting on: September 28, 2014, 07:08:14 am
I've not downloaded your code as I don't want to mess up what I'm working on at the moment. However, if it's of any assistance, the message is derived from checking the status of the CH (clock halt) bit in one of the registers.

Code:
Bit 7 of Register 0 is the clock halt (CH) bit. When this bit is set to 1, the oscillator
is disabled. When cleared to 0, the oscillator is enabled. On first application of power
to the device the time and date registers are typically reset to 01/01/00 01 00:00:00
(MM/DD/YY DOW HH:MM:SS). The CH bit in the seconds register will be set to a 1. The clock
can be halted whenever the timekeeping functions are not required, which minimizes
current (IBATDR).
Pages: [1] 2 3 ... 54