Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help Connecting Device with Proteus

Status
Not open for further replies.

brian25

Member level 2
Joined
Feb 18, 2013
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,601
how's the connection between this device? and i want to use Proteus to simulate my program..

i do this connection and i try swapping rx and tx but still cannot communicate with each devices

usb-uart -------- GSM Shield
RX -------------- RX(Pin 3)
TX -------------- TX(Pin2)
Gnd -------------- Gnd

Proteus
Compim ---------- MCU
RX -------------- RX
TX -------------- TX


http://www.e-gizmo.com/KIT/USB.htm

http://www.e-gizmo.com/KIT/gsm%20shield.html
 

up.............................

- - - Updated - - -

up.............................

i used the softwareserial tx(2)-rx(3) in GSMLib of arduino and still don't work i cannot get any message in virtual terminal of Proteus. then i try to change the Softwareserial tx(1) - rx(0) the default state but still have no characters in message in virtual terminal..

Code:
#include <SoftwareSerial.h>
 
SoftwareSerial mySerial(0, 1); // RX, TX pins
 
void setup() {
 
pinMode(13, OUTPUT); // Initialize pin 13 as digital out (LED)
pinMode(8, INPUT); // Our button pin
mySerial.begin(4800); // Open serial connection at baud rate of 4800
 
}
 
void loop(){
 
if (digitalRead(8) == HIGH){ // On button press
digitalWrite(13, HIGH); // Turn LED on.
mySerial.println("AT"); // Sends AT command to wake up cell phone
delay(500);
mySerial.println("AT+CMGF=1"); // Puts phone into SMS mode
delay(1000); // Wait a second
mySerial.println("AT+CMGW=\"+09983944911\""); // YOUR NUMBER HERE; Creates new message to number
delay(1000);
mySerial.print("Sent from my Arduino."); // Message contents
delay(1000);
mySerial.write(byte(26)); // (signals end of message)
delay(1000);
mySerial.println("AT+CMSS=1"); // Sends message at index of 1
digitalWrite(13, LOW); // Turn LED off
delay(250);
digitalWrite(13, HIGH); // Turn LED on.
delay(10000); // Give the phone time to send the SMS
mySerial.println("AT+CMGD=1"); // Deletes message at index of 1
digitalWrite(13, LOW); // Turn LED off.
delay(250);
}
 
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top