Arduino + Virtual Terminal in Proteus

In this tutorial, i will show you how to interface a Virtual Terminal in Proteus with Arduino Uno, for Arduino simulation in Proteus you need to Update the Library of Proteus  Click Here and Learn How to Update! I Declared the 9 and 10 pin as Tx Rx  Pins in the code the Rest of the Code is very Simple.
CODE For interfacing of Virtual Terminal in Proteus:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);

void setup()
{
mySerial.begin(9600);   //set baud rate of Virtual terminal
Serial.begin(9600);
delay(500);
}
int a = 0;
void loop()
{
a ++;
if(a > 0 && a < 4 )
mySerial.println(“Hi Hello Electronics Lovers”);    //Text you want to send
delay(2000);
if(a > 0 && a < 4 )
mySerial.println(“www.Electronicslovers.com”);
delay(2000);

}

 

Related posts

Arduino Opta PLC Pros & Cons

Breakthrough of Ardino-Pro Opta: Micro-PLC with industrial IoT proficiency

Top Arduino sensors – the ultimate list 2021

2 comments

Ravi Singh May 28, 2018 - 1:15 pm

I am trying to give input to terminal but it is automatically assuming the value to be zero
To get input I have use

while(Serial.available ()==0){}
abc = Serial.parseInt()

chris November 19, 2021 - 5:43 am

exit status 1
Error compiling for board Arduino Uno.

Add Comment