Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Bluetooth Low Energy & Arduino or Ras pi on: January 19, 2014, 05:04:50 am
Hi Guys,

     Thank you for reading. Bluetooth 4.0: I am trying to find a CC2541 module that connects to a 3V sensor that will signal to the host.   Do you guys think this can be done?

Akash
2  Products / Arduino GSM Shield / Re: Cannot receive SMS on GSM Shield on: July 21, 2013, 08:02:20 pm
Hey I am a beginner user to the GSM shield. I have spent probably 40 hours going from store to store trying different phones to unlock the SIM card and try different sim cards and literally only one provider allowed for proper connectivity. I live in Ontario, Canada and the network may be slightly different than the GSM shield may have been designed for - But from what I've learned was that the GSM shield seemed to work for me RX and TX SMS when there actually was a pin number associated with the SIM card and the codes in the void set up addressed it. Just a tip to try out.

Akash
3  Products / Arduino GSM Shield / Re: Comparing senderNumber[20] to integer on: June 07, 2013, 05:00:54 pm
Hey !

I've tried that, but it makes it all stop working. With the other code the LED turns on, but does not turn off.

If you have any ideas, please let me know.

Thank you Dave and everyone for helping.

Thank you
4  Products / Arduino GSM Shield / Re: Comparing senderNumber[20] to integer on: May 31, 2013, 06:30:11 pm
Thank you guys for help!

David - I have a question for you regarding a topic relating to this- I have seen your posts about this:

Code:
if (received.compareTo("On")) {

  lightlight = 1;
   
  Serial.println("LED ON");
}
else if (received.compareTo("Off")) {
 
  lightlight = 0;
 

}

I have put the lightlight variable in the void loop as:

boolean lightlight;



- The LED turns on, but does not turn off after it has been texted the word "Off"

I thank you guys for the help, I appreciate it.

Akash
5  Products / Arduino GSM Shield / Re: Receive SMS example on: May 22, 2013, 07:27:39 pm
Hey guys,
   
        Thanks for your help - the service was mistakenly cut off.
Akash
6  Products / Arduino GSM Shield / Re: Comparing senderNumber[20] to integer on: May 20, 2013, 08:20:10 pm
I have tried both answers. Although it is compiling, it doesn't seem to make the right comparison. I might not have structured the code out right, but have tried putting different variables where the comparison occurs.

Code:

char myCharNumber[20] = "+12223333";
int myIntNumber = atoi(myCharNumber);


    Serial.println("\nEND OF MESSAGE");
  if (senderNumber[20] < myCharNumber[20]) {
  x=1;
  fixer = 1;
  Serial.println("X=1");
 
  }


Thank you all for the help

Akash
7  Products / Arduino GSM Shield / Comparing senderNumber[20] to integer on: May 17, 2013, 05:04:51 pm
Hey guys,

     I am attempting to compare a received number and send a message according to the number it was, but the problem persists.
Code:
if (senderNumber[20] < 40000000) {
  x=1;
  fixer = 1;

  } 

Thank you for your help guys - I appreciate it.

Akash
8  Products / Arduino GSM Shield / Re: Receive SMS example on: April 30, 2013, 09:08:35 pm
I would like to notify that I am using the mega, so would the line:
SoftwareSerial cell(2, 3);

Would be different, or no ?

Thanks guys
9  Products / Arduino GSM Shield / Re: Receive SMS example on: April 30, 2013, 07:27:27 pm
Quote
ATE1 --> Set echo ON
AT+CMGF=1 --> Establishes text mode in modem
AT+CMGL="REC UNREAD",1 --> Checks if exists unread SMS. Return OK if not exist any SMS, in other case returns a list with them (the first number of each of them are the index of each of them).
AT+CMGR=[sms_index],0 --> Read SMS with index sms_index from modem memory (ej: AT+CMGR=1,0).
AT+CMGD=[sms_index] --> Delete SMS with index sms_index from modem memory (ej: AT+CMGD=1).

I'm not sure if I understood what to do with these commands guys.

After I executed the given code, all I got was:
____
Starting modem communication...OK
Introduce your AT commands:
____

Nothing else occurred after I had texted the SIM card number either.

Thanks for the help guys - You guys are my lifeline right now!

10  Products / Arduino GSM Shield / Re: Receive SMS example on: April 30, 2013, 08:06:10 am
I could not get the codes to work, so I changed this (the 10 to 11) because of the + coming in front.

Code:
     Serial.print("%");
      Serial.print((int)incoming_char);
      Serial.print("%");
      if(incoming_char==11)
        Serial.println();
    }


So to clarify the issue - the gsm picks up the first text message coming in but not any others that comes in after unless it is reset

I appreciate the help guys.
11  Products / Arduino GSM Shield / Re: Receive SMS example on: April 30, 2013, 07:38:11 am
I live in Canada and the SIM card that was provided did not work here. So I am using a Fido/Rogers SIM card. I will try this code out now.
12  Products / Arduino GSM Shield / Receive SMS example on: April 30, 2013, 12:55:24 am
Hey guys,

     I noticed on the Receive gsm text for the shield that multiple msgs cannot be received. The coding is only detecting the first msg and stop detecting until it is reset.

Code:
/*
 SMS receiver
 
 This sketch, for the Arduino GSM shield, waits for a SMS message
 and displays it through the Serial port.
 
 Circuit:
 * GSM shield attached to and Arduino
 * SIM card that can receive SMS messages
 
 created 25 Feb 2012
 by Javier Zorzano / TD
 
 This example is in the public domain.
 
 http://arduino.cc/en/Tutorial/GSMExamplesReceiveSMS
 
*/

// include the GSM library
#include <GSM.h>

// PIN Number for the SIM
#define PINNUMBER "1111"

// initialize the library instances
GSM gsmAccess;
GSM_SMS sms;

// Array to hold the number a SMS is retreived from
char senderNumber[20]; 

void setup()
{
  // initialize serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  Serial.println("SMS Messages Receiver");
   
  // connection state
  boolean notConnected = true;
 
  // Start GSM connection
  while(notConnected)
  {
    if(gsmAccess.begin(PINNUMBER)==GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }
 
  Serial.println("GSM initialized");
  Serial.println("Waiting for messages");
}

void loop()
{
  char c;
 
  // If there are any SMSs available() 
  if (sms.available())
  {
    Serial.println("Message received from:");
   
    // Get remote number
    sms.remoteNumber(senderNumber, 20);
    Serial.println(senderNumber);

    // An example of message disposal   
    // Any messages starting with # should be discarded
    if(sms.peek()=='#')
    {
      Serial.println("Discarded SMS");
      sms.flush();
    }
   
    // Read message bytes and print them
    while(c=sms.read())
      Serial.print(c);
     
    Serial.println("\nEND OF MESSAGE");
   
    // Delete message from modem memory
    sms.flush();
    Serial.println("MESSAGE DELETED");
  }

  delay(1000);

}



Thank you, in advance.
13  Using Arduino / General Electronics / Re: Picking Capacitor Size and datasheet clarity on: March 29, 2013, 04:45:47 pm
Okay, that sounds good.

There is this 5V 4A AC DC power supply I can connect to the arduino which will give off 4A in the 5V output pin. Would having this too many amps in the circuit? Or too many amps going into the solenoids creating too much wattage? Or would it work out?

The AC DC adapter
http://www.ebay.com/itm/5V-4A-AC-DC-Adapter-Power-Supply-Replacement-Center-/190565150966

Thank you for the quick response Mike
14  Using Arduino / General Electronics / Picking Capacitor Size and datasheet clarity on: March 29, 2013, 04:14:16 pm
Hey guys,

     We are doing a project with 5 solenoids rated at 5V. The datasheet for the solenoid isn't in English and googling the part number results in attaining the same data sheet. From what we understand, for fast movement we require 700mA..
The datasheet is here: http://www.robotshop.com/content/PDF/datasheet-rob-11015.pdf

And there will be 2 fans that are 5V with 200mA.

So, 700mA*5 + 400mA = 3.9A

The arduino can only provide 650mA, thus we would like to add a capacitor to raise the 650mA to aprox. 3.9A. The capacitor will not be part of the circuit unless all of these conditions are true using a solid state relay with the arduino if that would be a problem.

Thank you for your help guys
We appreciate it
15  Using Arduino / Sensors / Re: DHT11 Temperature Humidity Sensor on: February 26, 2013, 12:19:56 am
I`m looking at this and it seems that the instructions:


This is an example C++ library for Arduino 0004+, based on one created by
Nicholas Zambetti for Wiring 0006+

Installation
--------------------------------------------------------------------------------

To install this library, just place this entire folder as a subfolder in your
Arduino/lib/targets/libraries folder.

When installed, this library should look like:

Arduino/lib/targets/libraries/Test              (this library's folder)
Arduino/lib/targets/libraries/Test/Test.cpp     (the library implementation file)
Arduino/lib/targets/libraries/Test/Test.h       (the library description file)
Arduino/lib/targets/libraries/Test/keywords.txt (the syntax coloring file)
Arduino/lib/targets/libraries/Test/examples     (the examples in the "open" menu)
Arduino/lib/targets/libraries/Test/readme.txt   (this file)


from http://www.arduino.cc/en/Hacking/Libraries

have told me to put the files into lib/targets, but that subfolder 'target' is not in my arduino files

Thanks for the help
Pages: [1] 2