UKHeliBob:
But still you are not using [code] [/code] tags when posting code
CrossRoads:
Read analog input, create a digital high output ("digital reading of HIGH" is not correct terminology) when the analog reading is > 300:if (analogRead(A0)>300){
digitalWrite(pin2, HIGH);
// or someVariable = 1;
}
else {
digitalWrite (pin2, LOW);
// or someVariable = 0;
}
CrossRoads:
Read analog input, create a digital high output ("digital reading of HIGH" is not correct terminology) when the analog reading is > 300:if (analogRead(A0)>300){
digitalWrite(pin2, HIGH);
// or someVariable = 1;
}
else {
digitalWrite (pin2, LOW);
// or someVariable = 0;
}
CrossRoads:
Read analog input, create a digital high output ("digital reading of HIGH" is not correct terminology) when the analog reading is > 300:if (analogRead(A0)>300){
digitalWrite(pin2, HIGH);
// or someVariable = 1;
}
else {
digitalWrite (pin2, LOW);
// or someVariable = 0;
}
Hello Mr cross roads. You have sent me a working code. but what if i want an analog signal above 300 as substitute for the on state?