I think @Utakarsha wants to connect a mobile with the Proteus circuit simulator program via Bluetooth. In the simulator he has put an Arduino and a Bluetooth module.
It is necessary that the laptop has Bluetooth or a PC with a Bluetooth dongle, in my case I have used a PC-Desktop with a Bluetooth dongle.
I have made this connection:
In the Arduino of the simulator I have loaded this sketch:
// Juan A. Villalpando
// Resumen de códigos Bluetooth. Enviar. Recibir.
#define Pin12 12
#define Pin13 13
char caracter;
void setup() {
Serial.begin(9600);
pinMode(Pin12, OUTPUT);
pinMode(Pin13, OUTPUT);
}
void loop() {
if(Serial.available()) {
caracter = Serial.read();
if(caracter == 'a'){ digitalWrite(Pin12, HIGH);}
if(caracter == 'b'){ digitalWrite(Pin12, LOW);}
if(caracter == 'c'){ digitalWrite(Pin13, HIGH);}
if(caracter == 'd'){ digitalWrite(Pin13, LOW);}
}
}
In App Inventor I have used this code:
-
From my mobile I can turn on and off the LEDs of the Proteus circuit.
-
The application is the same as example 1 of:
Bluetooth HC-06. Arduino. Send. Receive. Send text file. Multitouch. Image -
It is necessary to vinculate the Bluetooth of the PC with the Bluetooth of the mobile.
-
The COM must be properly configured.
- Device Manager.




