25.- Simulation of an arithmia.
p9BC_Bluetooth_ECGi.aia (12.4 KB)
Arduino sends a random level (90...100), with a random delay (400...1600)
void setup(){
Serial.begin(9600);
}
void loop(){
int nivel = random(90,100);
int ritmo = random(400,1600);
delay(ritmo);
String mensaje = (String) nivel + "," + (String) ritmo;
Serial.println(mensaje);
}
App Receives Text (98,977), gets the level (98) and draws it on a Canvas.
For a more realistic process, use the module AD8232
Here in Spanish:


