Hello:)
I'm using HC-06 + AD8232(ecg sensor) + app inventor.
I want to show the value received from hc-06 as a graph.
But I have some problem TT.
Could somebody help me?
--------------- This is my arduino code ------------------
#include <SoftwareSerial.h>
SoftwareSerial A(2, 3); //(Tx, Rx)
void setup() {
Serial.begin(9600); // 시리얼 통신 시작
A.begin(9600); // 블루투스 통신 시작
pinMode(10, INPUT);
pinMode(11, INPUT);
}
// #1
void loop() {
if((digitalRead(10) == 1) || (digitalRead(11) == 1)){
Serial.println('!');
}
else{
Serial.println(analogRead(A0));
A.println(analogRead(A0));
}
// delay(1100);
}
----- What is the problem -----
#1 When there is no delay();
#2 When there is delay(1100);
I really want to solve this problem but I cant
Please help me