Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Is my Cellular Shield dead, or ? on: August 19, 2012, 12:18:36 pm
I bought a new Sparkfun Cellular Shield for SM5100B  which I want to connect to a Mega 2560.  Not very experienced with HW, I made a very simple test setup to avoid blowing up my Cellular Shield, using a Uno to simulate the Cellular Shield, connected as shown in attachment Att_1, A. The PC run the TeraTerm terminal program. The trivial sketch on the Uno sent back the characters received. This setup worked well, no problems. Characters typed on the PC were echoed by the Uno.

Next I swapped the Uno with the Cellular Shield, see Att_1, B. No reaction from the Cellular Shield when 5V was connected, except that the on-diode lit up. No reactions to AT commands either. The testing was repeated several times, restarting the PC etc. (No PIN in SIM card, which has worked well before.)

Most thankful if anybody can tell me where I have gone wrong!
2  Using Arduino / Installation & Troubleshooting / Re: Arduino 1: Problem with Alarm.delay ? on: December 18, 2011, 03:53:10 pm
Thank you spycatcher2k! Great.    It works!!!
3  Using Arduino / Installation & Troubleshooting / Re: Arduino 1: Problem with Alarm.delay ? on: December 18, 2011, 01:21:40 pm
Thanks again!  I hate to give up, and a solution cannot be very far away since it compiles on your computer. Where do I go wrong?? -  A have reinstalled Arduino-1.0 and new copies Time.h and TimeAlarms.h

In   C:\Program Files\arduino-1.0\hardware\arduino\cores\arduino
it is already a file called Arduino.h,  so I am confused. Should I really make another file with the same name? (In fact I have tried to do that also, but with 0 success).

I have also simplified my sketch down to:

#include <SoftwareSerial.h>
#include <Time.h>
#include <TimeAlarms.h>
void setup()   { }
void loop()    { }

If I comment out #include <TimeAlarms.h> it compiles OK. If I don't  I get these error message:

C:\Program Files\arduino-1.0\libraries\TimeAlarms\TimeAlarms.cpp:25:22: error: WProgram.h: No such file or directory
C:\Program Files\arduino-1.0\libraries\TimeAlarms\TimeAlarms.cpp: In member function 'void TimeAlarmsClass::delay(long unsigned int)':
C:\Program Files\arduino-1.0\libraries\TimeAlarms\TimeAlarms.cpp:256: error: 'millis' was not declared in this scope

4  Using Arduino / Installation & Troubleshooting / Re: Arduino 1: Problem with Alarm.delay ? on: December 18, 2011, 08:48:30 am
Sorry, no success.

I tried to follow your advice, but got a bunch of new errors (perhaps I did a mistake).
I also compaired ...\cores\arduino for .0023 and 1., and found that 1. does not include WProgram.h. I tried to include WProgram.h in ...\cores\arduino for 1., but it did not help.

I suppose I am to unexperienced with this type of programing to handle this problem. Do not understand properly what I am doing. -  After all .0023 does a fine job for me, and I will stick with it for now.

Thank you very much, spycatcher2k, for your advice.
5  Using Arduino / Installation & Troubleshooting / Re: Arduino 1: Problem with Alarm.delay ? on: December 18, 2011, 06:39:25 am
I get these error messages:
C:\Program Files\arduino-1.0\libraries\Time\Time.cpp:24:23: error: WProgram.h: No such file or directory
C:\Program Files\arduino-1.0\libraries\Time\Time.cpp: In function 'time_t now()':
C:\Program Files\arduino-1.0\libraries\Time\Time.cpp:240: error: 'millis' was not declared in this scope
C:\Program Files\arduino-1.0\libraries\Time\Time.cpp: In function 'void setTime(time_t)':
C:\Program Files\arduino-1.0\libraries\Time\Time.cpp:268: error: 'millis' was not declared in this scope
- - - - - -
It har probably somthing to do with Arduino 1, Release note:
* The WProgram.h file, which provides declarations for the Arduino API,
  has been renamed to Arduino.h. To create a library that will work in
  both Arduino 0022 and Arduino 1.0, you can use an #ifdef that checks
  for the ARDUINO constant, which was 22 and is now 100.  For example:
  ...

It is probably absolutely trivial for an experienced user to find the WProgram.h files and copy them them into the library, but I have not been able to do so even after a lot of searching.
6  Using Arduino / Installation & Troubleshooting / Arduino 1: Problem with Alarm.delay ? on: December 18, 2011, 04:29:17 am
I am trying to upgrade a sketch to Arduino 1, but get compilation errors.
A few of the  lines which seems to create  problems have been extracted and is listed below.
(Obviously no need for Alarm.delay(3000) here, but it examples my problem.)
Can anybody give advice? Thank you.
   -   -   -   -   -   -   -   -   -   -
#include <SoftwareSerial.h>
#include <Time.h>
#include <TimeAlarms.h>

void setup()   {
  Serial.begin(9600);
}
void loop()    {
  Alarm.delay(3000);  // <<  Cause problem (?)
  Serial.print("sec= ");
  Serial.println(second());
// . . .
}

=============================================
The solution, provided by Spycatcher2K, is:

goto >      C:\Program Files\arduino-1.0\hardware\arduino\cores\arduino
Create a file called WProgram.h
and in it type :
#include <Arduino.h>

save and restart your IDE
7  International / Scandinavia / Re: Using GSM shield in Scandinavia on: May 17, 2011, 08:11:00 am
Takk for nyttig informasjon!
I første omgang forsøkte jeg å bruke en gammel SonyEricsson K700i mobilt. Oppskriften til HULK
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1290601471/all
var et meget godt utgangspunkt, det fungerer fint. Mobilen har egen klokke som jeg benytter meg av.

Det synes som om GSM shield gir større fleksibilitet og gir en ryddigere løsning. Jeg kommer nok til å
bruke det senere.
 smiley Jorolv
8  International / Scandinavia / Using GSM shield in Scandinavia on: March 27, 2011, 07:30:12 am
USING GSM-SHIELD IN SCANDINAVIA?
I am relatively new to Arduino and does not have deep technical understanding of GSM either.  Now I am planning a small Arduino project which imply sending a few SMS messages. The simplest approach seems to be to use Gsm shield. Does anybody have  practical experience with using a GSM shield here in Scandinavia? If so, what type of GSM shield was used, and was it difficult to make it work?

I have an old SE P900 which I considered to use, but according to SE it does not have AT-commands for sending SMS, hence I have given up that approach.
(  http://s95417013.onlinehome.us/ktekx/gps%20cell%20tracker/atcommands/dg_at_p800_p900_r1a.pdf  )

Any comment would be very welcome.

Svar gjerne på dansk/svensk/norsk.
Pages: [1]