Fingerprint servo

Hi

I have this code which opens a solenoid when the correct fingerprint is placed on fingerprint sensor

is it possible instead of a solenoid opening that it moves the servo 90 degrees holds for 5 seconds then goes back to the original position.

Thanks

fingerprint.ino (4.08 KB)

Please just post your code

is it possible instead of a solenoid opening that it moves the servo 90 degrees holds for 5 seconds then goes back to the original position.

Yes. It's even easy. Trivial, almost.

thanks for answering. Do you know how i could do that

enzosaudi: thanks for answering. Do you know how i could do that

  if (getFingerprintIDez() >= 0)
  {
    moveServo();
  }

You can base the moveServo() function on the Servo sweep example in the IDE. If the program does nothing but read fingerprints and move the servo you can use the delay() function to achieve the 5 second hold.