a. Arduino UNO
b. Modul EOG
c. IC Power Supply
d. Program Arduino IDE untuk deteksi gerakan mata
//elektroda kanan pinheader atas
//elektroda kiri pinheader bawah
int dataadc;
int adcold;
int kanan;
int kiri;
int x = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
dataadc = analogRead(A0);
kanan = dataadc + 20;
kiri = dataadc - 20;
Serial.println(dataadc);
if(adcold > kanan){
//Serial.println("arah kanan ");
}
if(adcold < kiri){
//Serial.println("arah kiri");
}
if((adcold > kanan)&&(x == 0)){
x = 1;
}
if((adcold < kiri)&&(x == 1)){
x = 2;
Serial.println("kiri <=====");
}
if((adcold < kiri)&&(x == 2)){
Serial.println("kiri <=====");
x = 0;
}
if((adcold < kiri)&&(x == 0)){
x = 3;
}
if((adcold > kanan)&&(x == 3)){
Serial.println("kanan <=====");
x = 4;
}
if((adcold > kanan)&&(x == 4)){
Serial.println("kanan <=====");
x = 0;
}
adcold = dataadc;
delay(10);
}
Good afternoon, in advance I congratulate you for such excellent work, one question is that I was doing the simulation of the circuit but I see an inconsistency when designing it, in the diagram the output OUT2 of IC4 that connects to IC5, reaches a pair of 1uf series capacitors but I see that there is no power supply or any voltage reaching pin 3 of IC5 and therefore it does not perform any function. Could you clarify the connections of the IC outputs, and specify the polarity of the capacitors a little better, I know that OUT3 is the output for Arduino. Thank you again and I hope you can help me replicate your work, for educational reasons, thank you for correcting the electronic diagram. soy de colombia y si puedes a mi correo hacer llegar las correcciones se lo agradeseria, mi correo es - tecnoinfosb@gmail.com - thank you
ReplyDelete