Hi. My board is Arduino UNO along with e-Health Sensor Platform V2.0. Currently I am trying to get the ECG data from my board, but failed. The data always remain in 0.3V. Below is my code
Code:
int analogPin = 0;
float sensorValue = 0.0;
void setup() {
Serial.begin(9600); // put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
sensorValue = analogRead(analogPin) 5 / 1023.0;
// print out the value you read:
Serial.println(sensorValue);
delay(10); // delay in between reads for stability
Is there anything wrong with my code? Or my board is broken?
Also, when using the program you plot on the tutorial, some errors occurred.
Quote:
In file included from C:\Users\guych\Documents\Arduino\libraries\eHealth_raspberrypi_v2.0/eHealth.h:36:0,
from C:\Users\guych\Desktop\ECGExampleSerial\ECGExampleSerial.ino:34:
C:\Users\guych\Documents\Arduino\libraries\arduPi/arduPi.h:27:24: fatal error: netinet/in.h: No such file or directory
#include <netinet/in.h>
^
compilation terminated.
exit status 1
It said that my computer does not have netinet/in.h. Is that because I am now using Windows 7?
Do I run it with Linux instead?