help

Hi,
making an arduino fingerprint scanner of moving a servo when a correct pingerprint is introduced.
The problem is that it moves the servo a certain degrees while I would like it to move 180 degrees. it is also programmed to move servo 2 seconds and then move to start position.
it is a very quick edit but i have no idea.
please can someone change the code so the servo moves from 0 degrees to 180 degrees 60 seconds and then return.
miguelchocano@yahoo.es
Any question about the project contact me as well.
cheers

Any question about the project contact me as well.

Yes, we could change the code IF WE COULD SEE IT!

shit sorry
here it is
cheers

fingerprint.ino (2.9 KB)

The problem is that it moves the servo a certain degrees while I would like it to move 180 degrees.

Your code tells it to go from 0 to 180 degrees, pause 2 seconds, then go from 179 to 0.

If that is not what the servo is doing, it is not a coding problem. Add some Serial.print() statements in the 2 for loops.

If the Serial Monitor shows changing values while the servo is not moving, the problem is with the hardware.

yeah i know,
but does anybody know how to change the number of seconds it stays at 180?
cheers

Moderator: A better title in your first post would attract more people ...

mixch:
yeah i know,
but does anybody know how to change the number of seconds it stays at 180?
cheers

Edit this line:

    delay(2000);

Maybe make that 86400000UL so it stays open all day.