Can someone explain this to me.
I am really noob in programming but I want to learn, btw I can understand some of the codes but a bit confuse.
This is for our project pulse oximeter. Using a
Nellcor MAX-A http://www.medical-supplies-equipment-company.com/product/ppf/id/13446/new_prod_full.asp
where the output of the pulse oximeter is inputed in the arduino decimila.
Another question: How can I change its Aref to higher voltage? just to light a LED.
Thanks in advance!
Here's the code:
int ledPin = 13;
int sensorPin = 0;
doouble alpha =0.75;
int period = 20;
double change = 0.0;
static double oldValue = 0;
static double oldChange = 0;
int rawValue = analogRead(sensorPin);
double value = alpha * oldValue + (1-alpha)*rawValue;
digitalWrite(ledPin,(change<0.0 && oldChange >0.0));
Moderator edit: [code] [/code]