Yeah, i just forgot to change that!
Anyway, i cant seem to get the strike working:(
Here is arduino's code:
int doorPin = 4;
void setup() {
Serial.begin(9600);
Serial.write("READY");
pinMode(doorPin, OUTPUT);digitalWrite(doorPin, LOW);
}void loop() {
while(Serial.available() > 0){
char c = Serial.read();
if (c=='1') {
digitalWrite(doorPin, HIGH);
Serial.write("ABERTA");
delay(4000);
digitalWrite(doorPin, LOW);
}
}
}
If someone could help me doing a breadboard schematic, cause i've tried two different ways and no luck .
Thanks for your help !!