Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 14
61  Forum 2005-2010 (read only) / Interfacing / Re: How to send a sms with a Sony Ericsson phone on: January 10, 2011, 10:59:38 pm
By the way you need to do some type of serial.read in the loop when not using the software serial library.
Remember to avoid using serial.print to display status text as it will confuse the phone, it can only understand a AT command.
62  Forum 2005-2010 (read only) / Interfacing / Re: How to send a sms with a Sony Ericsson phone on: January 10, 2011, 08:15:02 pm
Let me suggest to connect direct to pins 0 and 1 instead.
Then try below code and see if you get a reply OK from the phone.
Code:


void setup() {

  Serial.begin(9600);
  delay(3000);

}

void loop() {

  Serial.println("AT"); //Asking the phone if the connection is working
  delay(3000);

  if (phone.available()) {
      Serial.print((char)phone.read());
  }
  if (Serial.available()) {
      phone.print((char)Serial.read());
  }
}
63  Forum 2005-2010 (read only) / Interfacing / Re: How to send a sms with a Sony Ericsson phone on: January 09, 2011, 10:42:48 pm
I suggest that you try try to connect your phone to the computer by the usb and then use a hyper terminal. Try to type just "AT" , you should get a "OK" back. Remember to set the baud rate to 9600.
If that works then you need to check your connections with the Arduino.
Maybe switch around TX and RX.
I assume that you have connected both the Arduino and the phone to the same grounding point otherwise it will not work.


64  Forum 2005-2010 (read only) / Interfacing / Re: How to send a sms with a Sony Ericsson phone on: December 30, 2010, 11:17:47 am
Sorry, do not know the pinout of the T250i.
I googled it and found below picture, if it is correct or not i can not say, you need to search for it on the internet.
Yes, you need to remove the usb connector and connect the cables to Arduino.

65  Forum 2005-2010 (read only) / Interfacing / How to send a sms with a Sony Ericsson phone on: November 24, 2010, 07:24:31 am
I have until now not found any good description on how to send a sms with a Sony Ericsson here on Arduino.cc .
Below i share my gathered knowledge and ask other to fill in if they have something to share.
First of i would say that connecting a newer modell of a SonyEricsson phone direct to the TX/RX pins will not work.
It seems as new Sony Ericsson phones need a TX/RX voltage of somewhere about 2,6V to get it working. If you use one of the listed older phones you should get it working with the 5V TX/RX from the Arduino.

T series :
T39, T68, T68i, T230, T250, T610, T630, T650i

K series:
K300, K310, K320i, K500, K510i , K530, K550i, K750i

W Series:
W200, W300, W550, W580, W600, W610, W660, W700, W710, W800, W810, W830, W850, W880, W900, W910

Z Series:
Z250, Z310, Z320, Z500, Z520, Z525, Z530, Z550, Z558, Z600, Z610, Z710, Z750, Z800, Z1010



To understand how to send a sms you need to check this link:
http://www.dreamfabric.com/sms/

For easy conversion of septets into octets use below link, it will save you a lot of time:
http://www.twit88.com/home/utility/sms-pdu-encode-decode
Use 00 for SMSC and then input your number in the receiver area.

Coding example is provided below, reason to why you need to wait 3 seconds between AT commands is that otherwise you will overflow the serial communication and the phone will ignore the commands.

Code:
     Serial.println("AT+CMGF=0"); // Set PDU mode
      delay(3000);
      Serial.println("AT+CMGS=19"); // Number of octets
      delay(3000);
      Serial.print("0011000B916407172132F30000AA05C8329BFD06"); // Sends "Hello" to "00 46707112233"
      delay(3000);
      Serial.write(26);
      delay(3000);


More AT commands can be found here: http://developer.sonyericsson.com/cws/download/1/707/466/1277362028/DW-65054-dg_at_2006--10_r17a.pdf

Have fun  smiley-grin
66  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: September 14, 2009, 03:15:15 pm
Thanks Nachtwind, it works great.
Did not think that would work but maybe test before asking next time...  smiley-grin
67  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: September 14, 2009, 02:33:25 pm
I am building a remote controll with a touch screen and a kso1o8 lcd.
To save battery i am looking for a way to switch off the lcd and back on when needed, is that possible with command?
If yes, will the lcd when turned on display the old graphics or do i need to initiate it again with the graphics that where on before it was switched off?
Actually i am sure that the lcd will not draw a high amount from the battery current (10mA) but the lcd light will do so but that is easy to controll (350mA).
68  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: November 04, 2008, 01:52:16 pm
Anybody know what the maximum cable lenght between the panel and Arduino is?
Are we talking about 30-50cm or just 10cm, at some point the cable lenght has to disturb the signals.

I am sure i can test this myself but hopefully somebody of you have that experience allready  smiley
69  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: November 01, 2008, 03:23:07 am
Argo,

If this is a KS0108 panel i am sure you will get to work.

Have you tested to add more "nop\n\t" to the ks0108.cpp file, any diffrence?

I had some trouble with one of my panels as you can read in this thread and in the end i got it working using a new updated KS0108 library.
If you wait for couple of days i am sure that mem will realese this updated version so it can be downloaded and used.
He is working on it right now and have improved it so it will adjust according to your panel hardware speed.

But then i am not the one to say what mem will do and not   smiley .
I am sure he will jump in this thread soon and give us all more news on the updated version.

70  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 24, 2008, 11:33:00 am
hmmm, could it be the ports that i am using
//bits 0-7 assigned to sanguino pins 0-7
71  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 24, 2008, 11:14:35 am
Intresting.
After some more testing i got the lcd to work with following settings:
FPS = 2
#define DELAY_EN_ON  15
#define DELAY_EN_OFF 0

FPS = 2
#define DELAY_EN_ON  0  
#define DELAY_EN_OFF 15

FPS = 1
#define DELAY_EN_ON  0  
#define DELAY_EN_OFF 0

Strange thing is that this was tested by seeedstudio but with ATMega 168 i assume and FPS was 6.
I will do some more testing with my ATMega644 and maybe also connect it to a ATMega 168 to check.
72  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 23, 2008, 03:39:15 pm
Mem,

I have tested my new KS0108 LCD from Seeedstudio and can say that it works good with the Library.
So you could add it as a tested unit in the playground area.
I am not really sure what the brand is but i think Eric at seeedstudio could provide us with an seeedstudio artical number that can be used or point out the product name.
Could it be called the bluemoon lcd ?
Datasheet i have is found here: http://www.bluemoon-lcd.com/english/pdf/G12864C.pdf

I am runnig the following setup for smooth displaying:
#define DELAY_EN_ON  0  
#define DELAY_EN_OFF 15

My other one from http://www.fractronics.com/12864b_full.pdf had to be set as you know to as slow as:
#define DELAY_EN_ON  0  
#define DELAY_EN_OFF 27

Eric, at what settings did you manage to run the same lcd before shipping to me?

The green one from ebay that we have Mem is running at:
#define DELAY_EN_ON  4
#define DELAY_EN_OFF 6
I do ask my self why the above two have to be slowed down to a big enable off value but not on the enable on value.

Maybe something that will be solved when and if there will be an automized set up of speed in your library?

73  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 09, 2008, 05:54:07 am
Mem,

I will check during the weekend and give you feedback.

74  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 04, 2008, 12:43:13 pm
Quote
Quote:
Using digital pins 8-11 would be a problem due to tx and rx being pin 8 and 9...
I think i need to make sure that it is not me that is doing something wrong before posting the sanguino compatibility...
I think the sanguino guys are much better positioned to answer your question than me, I really have no idea how to map pins on the ATMega 644 chip for use with arduino software.

I hope the following helps you phrase your questions to them:

A specific question is: given that this arduino library uses thirteen of the twenty arduino defined digital pins, eight accessed through direct port io, five through arduino digital pin mappings, should this code work unchanged on the sanguino, if not, where can guidelines be found for running arduino code to the sanguino

This question expressed more generally is:
What are the issues with arduino software (such as different mappings to ports and/or resources) using digital pins 0-19 on the ATmega644, either with digitalWrite or using direct port access?  

As I mentioned above, I think this discussion is better placed in a thread on sanguino and/or ATmega644 compatibility. I will be happy to post any conclusions here that relate to the  GLCD library, but the issue you raise is how to get a chip that claims arduino compatibility working with arduino code, and I think this is an interesting and potentially involved discussion that doesn't belong in a thread dedicated to the Graphics LCD library.

Moved this issue to:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1223141170/0#0
75  Forum 2005-2010 (read only) / Interfacing / Re: Graphic LCD (KS0108) library now available on: October 04, 2008, 03:09:32 am
Mem,

I did connect the LCD Ks0108 pinout type B to the ATMega 644 as follows:
Digital pins 0-7 and analog pins 0-4 to pins 31-27 and therefore i updated the header to:
Code:
#define CSEL1                        31            // CS1 Bit   // swap pin assignments with CSEL2 if left/right image is reversed
#define CSEL2                        30            // CS2 Bit
#define R_W                              29            // R/W Bit
#define D_I                              28            // D/I Bit
#define EN                              27            // EN Bit

/* Arduino pins used for LCD Data
 * un-comment ONE of the following pin options that corresponds to the wiring of data bits 0-3
 */
//#define dataPins8to11   // bits 0-3 assigned to arduino pins 8-11, bits 4-7 assigned to arduino pins 4-7
//#define dataPins14to17 //bits 0-3 assigned to arduino pins 14-17, bits 4-7 assigned to arduino pins 4-7. (note command pins must be changed)
#define dataPins0to3  // bits 0-3 assigned to arduino pins 0-3 , bits 4-7 assigned to arduino pins

Using digital pins 8-11 would be a problem due to tx and rx being pin 8 and 9.
But what you are saying is that if i try it may work? Should i keep the analog pins 27-31 or use the default 18-15?
So the code should be exactlly:
Code:
#define CSEL1                        15            // CS1 Bit   // swap pin assignments with CSEL2 if left/right image is reversed
#define CSEL2                        14            // CS2 Bit
#define R_W                           16            // R/W Bit
#define D_I                            17            // D/I Bit  
#define EN                              18            // EN Bit

/* Arduino pins used for LCD Data
 * un-comment ONE of the following pin options that corresponds to the wiring of data bits 0-3
 */
#define dataPins8to11   // bits 0-3 assigned to arduino pins 8-11, bits 4-7 assigned to arduino pins 4-7
//#define dataPins14to17 //bits 0-3 assigned to arduino pins 14-17, bits 4-7 assigned to arduino pins 4-7. (note command pins must be changed)
//#define dataPins0to3  // bits 0-3 assigned to arduino pins 0-3 , bits 4-7 assigned to arduino pins 4-7, this is marginally  the fastest option but  its only available on runtime board without hardware rs232.

I think i need to make sure that it is not me that is doing something wrong before posting the sanguino compatibility...
Pages: 1 ... 3 4 [5] 6 7 ... 14