float InputPin = A0; // Analog input pin from output of op amp float sensorVoltage = 0; float sensorCurrent = 0; float LEDCurrentRed = 0; float AbsorbanceRed = 0; float LEDCurrentIR = 0; float AbsorbanceIR = 0; float CalculatedRatio; float bloodOx = 0; int LEDRed=3; int LEDIR=2; #include LiquidCrystal.h> LiquidCrystal lcd(8, 9, 4, 5, 6, 7); void setup() { Serial.begin(9600); pinMode(LEDRed, OUTPUT); pinMode(LEDIR, OUTPUT); lcd.begin(16, 2); } void loop() { for (int index = 0; index < 10; index++){ digitalWrite(LEDIR, LOW); digitalWrite(LEDRed HIGH); delay(3000); sensorVoltage = analogRead(InputPin); sensorCurrent = -(sensorVoltage*5/(25000000*1023))*1000000; //250000000 is resistance LEDCurrentRed=0.005; // Ohm’s Law with 5V source and 1000 ohm resistor AbsorbanceRed = log10(sensorCurrent/LEDCurrentRed); digitalWrite(LEDRed, LOW); digitalWrite(LEDIR, HIGH); delay(3000); sensorVoltage = analogRead(InputPin); sensorCurrent = -(sensorVoltage*5/(25000000*1023))*1000000; LEDCurrentIR=0.005; // Ohm’s Law with 5V source and 1000 ohm resistor AbsorbanceIR = log10(sensorCurrent/LEDCurrentIR); CalculatedRatio=AbsorbanceRed/(AbsorbanceIR + AbsorbanceRed); bloodOx = -30.667*CalculatedRatio*CalculatedRatio+10*CalculatedRatio+102.67; Serial.print("Blood Ox % = " ); Serial.println(bloodOx); // Turn on the display: lcd.display(); delay(500); lcd.clear(); lcd.setCursor(0,0); lcd.print("Blood ox % = "); lcd.setCursor(0,1); lcd.print(bloodOx); } } kodu bu şekilde yükledikten sonra sürekli hata alıyorum. Nerde yanlış yaptığımı ise birtürlü bulamadım yardımcı olursanız çok sevinirim Arduino:1.6.0 (Windows 7), Kart:“Intel® Galileo” Pulse_Oximetry.ino: In function ‘void loop()’: Pulse_Oximetry.ino:25:47: error: expected ‘)’ before numeric constant Pulse_Oximetry.ino:25:51: error: too few arguments to function ‘void digitalWrite(uint8_t, uint8_t)’ In file included from C:\Users\eren ayhan\Desktop\Dersler\galileo\hardware\intel\i586-uclibc\variants\galileo_fab_d/variant.h:27:0, from C:\Users\eren ayhan\Desktop\Dersler\galileo\hardware\intel\i586-uclibc\cores\arduino/Arduino.h:33, from Pulse_Oximetry.ino:1: C:\Users\eren ayhan\Desktop\Dersler\galileo\hardware\intel\i586-uclibc\cores\arduino/wiring_digital.h:125:6: note: declared here Derleme sırasında hata oluştu. Rapor daha fazla veri içermeli “Derleme sırasında ayrıntılı çıktı göster” Dosya > Tercihler’de etkinleştirilmiş.
aldığınız hata kodu şu Pulse_Oximetry.ino:25:47: error: expected ‘)’ before numeric constant 25. satırda hata olduğunu söylüyor.