I would like to use a ps/2 keyboard to send text messages form An Arduino.
I would like some help with this As I have no programming Experiance.
please Look at the link below from the old forum.
I would like to use a ps/2 keyboard to send text messages form An Arduino.
I would like some help with this As I have no programming Experiance.
please Look at the link below from the old forum.
Here is a code snippet from my Ardunio-based temperature monitor. Once a day it sends me the previous 24 hour high and low termperature:
digitalWrite(4, HIGH); //pulse turn-on for GSM modem
delay(2000); //must be held high minimum of 1 second per Telit spec; we'll do 2
digitalWrite(4, LOW);
delay(20000); // allow GSM modem to get on the air
Serial.println("AT+CMEE=2"); //set verbose mode
delay(2000);
Serial.println("AT+CMGF=1"); //set text mode
delay(2000);
Serial.println("AT+CMGS=1925xxxxxxx,129"); //phone number to txt
delay(500);
Serial.print("High Temp = "); Serial.print(hightemp, DEC);
Serial.print(" Low Temp = "); Serial.print(lowtemp, DEC);
Serial.println(26,BYTE); //cntl-Z terminator
Serial.print("AT#SHDN"); // shutdown GSM modem
Now, what you would have to do set up an array to gather the PS2 input text. Once the "enter" key is pressed, that would indicate the end of the text string. Serial.print the text string, then Serial.println(26,BYTE) to indicate to the GSM modem to send the txt. Note, this example hard codes in the phone number in the sketch.