Show Posts
Pages: [1] 2 3
1  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: January 30, 2014, 04:02:10 am
1-nice timing ;P
2-not bought it off ebay.
3-its all about AT codes
4-both shields now completely stopped to respond :/ no matter what library im using.
2  Using Arduino / Microcontrollers / Re: Need Help with Bootloader. avrdude: stk500_getsync(): not in sync: resp=0x00 on: September 14, 2013, 06:55:33 am
thanks for replay. now that makes sense...
and today I've followed the same instruction as I posted and now everything works...


(sitting till 3am does not pays. :/)
3  Using Arduino / Microcontrollers / Need Help with Bootloader. avrdude: stk500_getsync(): not in sync: resp=0x00 on: September 14, 2013, 05:25:21 am
Helo,
I've got from prototype on the breadboard to the point that I want to put everything into more permanent state.
I own Arduino Mega 2560 and Arduino UNO.
for my project I decided to use Atmega328P-PU because in order to program it, i could just prototype it on UNO,
then just remove it from the UNO and solder it into my project.
So I've ordered a couple of those, along with the IC sockets so removing 328 from UNO will be simlpy solution.

But then I've got to the point that I had to burn bootloader to the fresh 328 in order for it to accept the code from UNO.

everything worked about right... well almost...
I think i was able to upload bootloader, and code (code works after uploading this way)
by using this directions http://muziol.com/wp-content/uploads/2013/09/ISP1.png
and then code works. But it does not let me upload the code only by using UNO, (like with original 328)
I have to "Upload Using Programmer" from My Mega...

My ports are set correctly, board is set correctly as well,
and everything work, with original 328 that was in my UNO,
but when I switch to "fresh" IC, it does not let me upload to UNO anything.

I've spent whole day yesterday researching, issue, tried countless connection schematics, and nothing.
Hope you guys will help me.

Thank you.
4  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: June 15, 2013, 06:22:02 pm
"Progress" so far...
I'm still not getting "w" on default GSM library while receiving SMS, since im not so "fluent" in libraries enough to fix it by myself.
I've found different library, and after tweaking ports, it started to work, (http://www.ebay.co.uk/itm/GSM-GPRS-Shield-For-Arduino-/230911052682?pt=LH_DefaultDomain_0&hash=item35c35f0b8a)

and in this one "w"-s are showing up IF it receives SMS...
I'm completely out of ideas...
5  Using Arduino / Networking, Protocols, and Devices / Re: GSM Shield - does it meet the European Radio Directive? on: June 05, 2013, 11:35:28 am
I think GSM shield is considered a prototyping device and/or submodule that cant work standalone, and as such does not require "CE",
However, your device will have to be certified, once it is put together as whole, not its internal components separately.
http://en.wikipedia.org/wiki/CE_marking
6  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: June 05, 2013, 01:14:08 am
I went with default example rates
7  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: May 27, 2013, 06:07:54 pm
So the lower case w is missing from the text or replaced with a space or something else like a question mark? Are you sending English or non-English characters?
lowercase "w" is missing completlely from the text (for ex. if I'll sent "it_works!" I'll get "it_orks!" and yes, I'm sending only English characters.
http://youtu.be/8X4Ki2DD8jY

(at this moment the only posibility to test it i have from online text service, since my prepaid stopped working, though it looked the same)
8  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: May 25, 2013, 07:37:23 am
I've checked it on another mega 2560, on a freshly loaded arduino IDE 1.0.4 on completely different computer, and on the example sms_receive.
issue still there,
while receiveng text message, it displays all letters but lowercase "w"

Can somebody run that on theirs and verify if library is ok?
9  Using Arduino / Networking, Protocols, and Devices / Re: Out of PINS with SIM900 GPRS shield on: May 21, 2013, 11:31:47 am
in my case it could be 5v and gnd on outside pins of LM35, middle pin of LM35 would go to any of the free pins, 14 to 51 (52 i have already taken)
10  Using Arduino / Networking, Protocols, and Devices / Re: Out of PINS with SIM900 GPRS shield on: May 20, 2013, 05:10:57 pm
i've used DHT11 for both, temperature and humidity,
http://muziol.com/dht11-and-bluetooth/

basically for LM35: outside pins 5V and gnd, middle pin on LM35 gives you temp.

http://pscmpf.blogspot.com/2008/12/arduino-lm35-sensor.html

11  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: May 20, 2013, 03:22:49 pm
do you have a link to the GSM library used?
the library I'm using is that one attached to he arduino 1.0.4
so really nothing fancy :/

http://arduino.cc/en/Reference/GSM
12  Using Arduino / Networking, Protocols, and Devices / Re: Out of PINS with SIM900 GPRS shield on: May 20, 2013, 03:18:32 pm
on my mega those are pins 9-13 PWM Digital (do not now what arduino you have),no way to have only TX/RX, there is also control pin for auto on/off if i remember correctly,

and one very important thing, you have to have another power source for this shield,

outmost swich is reset, middle switch is power for the board (press it for about 2 seconds to power it on), last switch is shield reset.
13  Using Arduino / Networking, Protocols, and Devices / Re: Out of PINS with SIM900 GPRS shield on: May 20, 2013, 12:05:26 pm
have the same one, though i have Mega so plenty of pins there,
are you using nokia lcd? that socket can be used, though 3 pins you have to count out, there is gnd, aref and 3,3v on it.so you can use those, depending of what type of sensors, and how many you have them, you may want to use shift registers.
(Btw, I was hoping that you can verify my issue I'm having in this thread: http://forum.arduino.cc/index.php?topic=167284.0 but ou can use just example SMS_RECEIVE from GSM library)
14  Using Arduino / Networking, Protocols, and Devices / Re: GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: May 20, 2013, 09:39:22 am
a good way to tackle these kind of bugs is to minimize the sketch step by step to see when the problem (dis)appears.


I've verified it on the "sms_receive" example from GSM library, (stock, without modificaions) and it does the same thing.
no "w" (lowercase) letter in incoming messages, while "W" (uppercase) is there. not surre how much more I can cut the example to still have it working.
15  Using Arduino / Networking, Protocols, and Devices / GSM library is eating my w's SIM900/Mega2560/DHT11/Nokia5110_lcd on: May 19, 2013, 07:10:20 pm
yup, GSM library is eating my "w" whenever I'll receive an SMS it is not displayed neither on my LCD nor through the serial console.
Though "W" are displayed... :/ (capitol ones)
and I'm completely out of ideas... not even know where to look...
im using Adafruit's Nokia 5110 LCD library (not my fav, but it has contrast option)
dht11 for temp, and sim900 sheild from elecfreaks

only modification was in the GSM3SoftSerial.cpp I've set value of "#define __RXPIN__  " under "mega" section to 52 for RX pin.

code is modified example, and there it is:

Code:

/*
 SMS receiver
*/
#include <dht11.h>

dht11 DHT111;
dht11 DHT112;
dht11 DHT113;

#define DHT11PIN1 16
#define DHT11PIN2 17
#define DHT11PIN3 18

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

#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>

// pin 9 - Serial clock out (SCLK)
// pin 10 - Serial data out (DIN)
// pin 11 - Data/Command select (D/C)
// pin 12 - LCD chip select (CS)
// pin 13 - LCD reset (RST)
Adafruit_PCD8544 display = Adafruit_PCD8544(9, 10, 11, 12, 13);



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

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

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

void setup()
{
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
 
  display.begin();
  display.setContrast(40);
  //display.display(); // show splashscreen
  delay(100);
  display.clearDisplay();
  display.setTextSize(1);
  display.setTextColor(BLACK);
  display.setCursor(0,0);
  display.println("SMS Receiver");
  display.display();
  delay(500);
  display.clearDisplay();
 
 
  readout();
 
 
  // initialize serial communications and wait for port to open:


  Serial.println("SMS Receiver");
  display.setCursor(0,0);
  display.println("SMS Receiver"); 
  // connection state
  boolean notConnected = true;
 
  // Start GSM connection
  while(notConnected)
  {
    if(gsmAccess.begin(PINNUMBER)==GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
   
      display.clearDisplay();     
      display.setCursor(0,0);
      display.println("Not connected");
   
      delay(1000);
    }
  }
      display.clearDisplay();     
      display.setCursor(0,0);
      display.println("Start GSM");
      display.println("Waiting for SMS");
      display.display();
  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:");

    display.clearDisplay();
    display.setCursor(0,0);
    display.println("SMS from:");

    // Get remote number
    sms.remoteNumber(senderNumber, 20);
    Serial.println(senderNumber);
    display.println(senderNumber);
    display.display();
   

    // 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())
       {   
      display.print(c);
      Serial.print(c);
       }
      //display.clearDisplay();
      //display.println(".\n");
      display.display();
    Serial.println("\nEND OF MESSAGE");
   
    // Delete message from modem memory
    sms.flush();
    Serial.println("MESSAGE DELETED");
  }

  delay(1000);

}

void readout()
{
  display.setTextSize(1);
  display.setTextColor(BLACK);
  display.setCursor(0,0);
   
  int chk1 = DHT111.read(DHT11PIN1);
  switch (chk1)
  {
    case DHTLIB_OK:
                  Serial.println("Sensor#1: OK");
                  Serial.print("Tmp#1:");
                  Serial.print((float)DHT111.temperature, 2);
                  Serial.print("\tH#1(%):");
                  Serial.println((float)DHT111.humidity, 2);
                  display.print("Temp #1:");
                  display.println((float)DHT111.temperature, 0);
                  display.print("Hum #1:");
                  display.println((float)DHT111.humidity, 0);
                 
                  break;
    default:
                Serial.println("Error");
                break;
  }
  int chk2 = DHT112.read(DHT11PIN2);
  switch (chk2)
  {
    case DHTLIB_OK:
                Serial.println("Sensor#2: OK");
                  Serial.print("Tmp#2:");
                  Serial.print((float)DHT112.temperature, 2);
                  Serial.print("\tH#2(%):");
                  Serial.println((float)DHT112.humidity, 2);
                  display.print("Temp #2:");
                  display.println((float)DHT112.temperature, 0);
                  display.print("Hum #2:");
                  display.println((float)(DHT112.humidity+2), 0);               
                break;
    default:
                Serial.println("Error");
                break;
  }

  int chk3 = DHT113.read(DHT11PIN3);
  switch (chk3)
  {
    case DHTLIB_OK:
                Serial.println("Sensor#3: OK");
                  Serial.print("Tmp#3:");
                  Serial.print((float)DHT113.temperature, 2);
                  Serial.print("\tH#3(%):");
                  Serial.println((float)DHT113.humidity, 2);
                  display.print("Temp #3:");
                  display.println((float)DHT113.temperature, 0);
                  display.print("Hum #3:");
                  display.println((float)DHT111.humidity, 0);
                break;
    default:
                Serial.println("Error");
                break;
  } 
  display.display();
  delay(500);
  display.clearDisplay();
 
}

Pages: [1] 2 3