Show Posts
Pages: 1 [2] 3 4 ... 8
16  Using Arduino / General Electronics / Solar Charger Required for Arduino Breadboard Implementation on: August 22, 2012, 02:21:14 am
Hi,

I am using a bread board implementation of Arduino. I want to charge it via a solar powered batteries. I am looking for a commercial solution in which I have some reserve battery such as 2000 mAH or more and a automatic functionality that whenver solar power is available,it uses that for power and when it is not then it uses that battery to power the system.

Can you please suggest any commerical products available for this. I want to have a compact one solution for this. Dont want to get in to separate solar panels and other stuff.

BR,
Vik
17  Using Arduino / Project Guidance / Solar Batteries for Arduino on: July 01, 2012, 05:48:43 am
Hi,

I want to setup a system in which I want to use battery power for the Ardunio. Moreover, I want to use solar powered battery. Can any body suggest a solar device or any other battery system or solar power market product which I can use to power up my Arduino.

Thanks,

BR,
Vik
18  Using Arduino / Project Guidance / Re: HTTP/1.1 400 Bad Request from Cosm website on: June 13, 2012, 06:35:08 am
If i send a string of characters and a float number, then how should i check the value for content length. I mean how many characters does the float variable represent ?

Secondly I want to make a graph that counts the time a particular feed is received. But I am unable to find a way to count the feed and plot the graph. Can u give me any link to a tutorial or provide any clue ?

Thanks a lot for the help.

Do you know how to get the volts value out of the feed and use it in the graph
19  Using Arduino / Project Guidance / Re: HTTP/1.1 400 Bad Request from Cosm website on: June 13, 2012, 06:17:47 am
I have been able to post the some data on the cosm. I changed the text given in the previous post "This is a post" to "Awake    ," and it started to post the data. I am not sure but i guess it has something to do with the content length.

Can you please elaborate to me how this content length works and if i need to send the variable such as float or double after the string what I need to do.

Plus i checked out your solar charger feed and its really cool. You have done a great job. I need to post some voltage data. How have you drawn the graphs. Is there a way to fetch variable data from the string or data that is being posted.
20  Using Arduino / Project Guidance / HTTP/1.1 400 Bad Request from Cosm website on: June 13, 2012, 03:10:28 am
i have been trying to post data on my cosm feed but i keep getting the below mentioned error. I have given below the commands that I am sending. Does any body has an idea whats the thing wrong in my line of commands ?

And my guess was that the user agent is the device name we give in cosm. when i added this, i started getting the bad request error. Before this, without adding the user agent part, i was getting the unauthorized error.

Please help


> PUT /v2/feeds/62521.csv HTTP/1.1
Host: api.cosm.com
X-ApiKey: 4HaJl25MfMGEb9g2khkjhujhk9leaSAKxCNl
User-Agent: Arduino
Content-Length: 12
Connection: close

This is a post



SEND OK
HTTP/1.1 400 Bad Request
21  Using Arduino / Project Guidance / Re: Measuring the power or charge available in the battery on: June 11, 2012, 09:13:54 am
Any Help guys ?

22  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 11, 2012, 03:20:21 am
Any guesses why the data is appearing slow on the serial interface
23  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 08:15:35 am
I have been able to use software serial to send commands to SIM900 and then see the output on the serial terminal. However, the commands and there output comes very slowly on the terminal. I dont know whats the reason. My be the slowness of the serial interface ?

BR,
Vik
24  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 04:05:54 am
When i run the code in putty it does not allow me to send anything.

Should i put a loop such that once the serial input is available only then it should provide the data to the software serial ?

BR,
Vik
25  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 03:32:15 am
I have used the serial output function given in the GPRS code with this code of yours and the output for the first AT commands is as follows


13|65|84|43|67|77|71|70|61|49|13|13|10|79|75|13|10|

Again i have added the line to just check each char recieved. Can you tell me any other way I can see the actual characters being returned from the SIM900 module so that I can make out where the error is coming. I guess that would solve the issue for me.

BR,
Vik
26  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 02:56:03 am
The code is working with the same baud rate for the SMS code. I have recieved the sms ! What do you think what can be the issue in the other code ?

BR,
27  Using Arduino / Project Guidance / Re: Measuring the power or charge available in the battery on: June 08, 2012, 02:36:12 am
Well I am a newbie to this whole setup and therefore cant understand some of the comments and logic.

the code works and gives out the voltages.

My questions is, if in any case, the voltage and the current drop due to discharge of the battery, the volt measured by this code would also drop ?

and can u please explain a machanism..like what I need to plug in and what to read from where to check for the current and charge ?

BR,
Vik
28  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 01:40:33 am
I put the | sign just to distinguish the output from the serial interface

29  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 08, 2012, 12:55:16 am
Hi,

I am able to successfully send the text message from the code mentioned on the Wiki Website. I have also tried to run the GPRS code given on that link. You can see it there because if i past it here, it would exceed the limit for the characters. I am pasting the code for the text message.

For the GPRS code, i get the following output. I have modified the code just not to use the sensor header files and send a random variable value to b e posted on the internet.

Here is the output i get. The output is in ASCII i guess and that why I can make out what is the responce of the commands. Either they are getting accepted or not. Do you think this is actual responce or just some garbage dump coming out of the software serial

"Turn on GPRS Modem and wait for 1 minute.
and then press a key
Press c for power on configuration
press any other key for uploading
Executing AT Commands for one time power on configuration
ATE0   Sent
Received:0|0|152|24|30|255|AT+CIPMUX=0   Sent
Received:0|126|134|24|128|96|254|128|248|134|134|24|248|AT+CIPMODE=0    Sent!
Received:0|248|158|96|134|128|248|158|158|0|158|152|248|AT+CGDCONT=1,"IP","inter                                                                                        net"
Received:0|248|158|24|230|24|254|120|230|128|126|25|121|15|24|102|25|3|51|126|10                                                                                        2|96|207|230|24|152|102|152|30|255|AT+CSTT="INTERNET"   Sent!
Received:0|248|158|24|230|0|6|134|158|158|230|126|159|126|6|102|51|204|15|AT+CIP                                                                                        SHUT  Sent!
Received:0|248|158|96|134|96|152|254|6|24|7|255|Press a key to read temperature                                                                                         and upload it
TMP102 Temperature = Trial Version going on
AT+CIPSTART="TCP","api.cosm.com","80"  Sent!
Received:0|126|134|96|134|96|152|0|126|255|158|128|0|24|128|152|134|158|120|6|103|207|120|231|102|230|134|134|126|135|102|30|121|60|240|51|230|248|AT+CIPSEND  Sent!
Received:0|248|158|96|134|96|248|128|120|128|120|248|PUT /v2/feeds/62521.csv HTTP/1.1  Sent!
Host: api.cosm.com  Sent!
X-PachubeApiKey: 4HaJl25MfMGEb9g2OuR9A0j9leaSAKxCNllDMHRqVFVXND0g  Sent!
Content-Length: 12  Sent!Connection: close  Sent!Received:0|0|126|230|102|254|102|224|128|230|152|230|230|254|230|158|230|120|158|126|255|134|128|0|6|159|102|134|126|230|248|24|254|102|224|126|224|96|224|120|254|102|254|102|248|126|230|126|248|24|158|24|248|0|102|248|96|230|96|128|96|248|30|AT+CIPSHUT  Sent!
Received:0|248|158|96|134|96|152|254|6|24|7|255|"

Code:
void setup()
{
  Serial.begin(19200);  //Default serial port setting for the GPRS modem is 19200bps 8-N-1
  Serial.print("\r");
  delay(1000);                    //Wait for a second while the modem sends an "OK"
  Serial.print("AT+CMGF=1\r");    //Because we want to send the SMS in text mode
  delay(1000);
 
  //Serial.print("AT+CSCA=\" +919032055002\"\r");  //Setting for the SMS Message center number, 
  //delay(1000);                                  //uncomment only if required and replace with
                                                  //the message center number obtained from
                                                  //your GSM service provider.
                                                  //Note that when specifying a tring of characters
                                                  // " is entered as \"
 
  Serial.print("AT+CMGS=\"+918446043032\"\r");    //Start accepting the text for the message
                                                  //to be sent to the number specified.
                                                  //Replace this number with the target mobile number.
  delay(1000);
  Serial.print("SIM900 and Arduino say Hi!\r");   //The text for the message
  delay(1000);
  //Serial.print(26,BYTE);  //Equivalent to sending Ctrl+Z
  Serial.write(26); //June 2nd 2012: I replaced Serial.print(26,BYTE) by Serial.write(26) because the first command did not work in my case; Serial.write worked fine; please verify. -Ardutinker-
}
 
void loop()
{
      //We just want to send the SMS only once, so there is nothing in this loop.
      //If we put the code for SMS here, it will be sent again and again and cost us a lot.
}
[\code]

30  Using Arduino / Programming Questions / Re: Problems with Software Serial of GPRS Shield on: June 07, 2012, 07:00:29 am
I am extreemly sorry I posted the wrong code in the begining. I am using the same code that you pasted above.

My apologies for the mistake smiley
Pages: 1 [2] 3 4 ... 8