Go Down

Topic: Fingerprint sensor operated SERVO MOTOR (Read 1 time) previous topic - next topic

vishwam_17

hello guys,

i am making bio metric door lock for my home. i am using fingerprint(adafruit R307) sensor and sg90 servo moto.

WHAT I WANT TO DO- when i put my finger to sensor, motor should go to 0 to 90 degree and again i put my same finger to sensor it should go to 90 to 0 degree.

PROBLEM- myservo motor work like sweep and some time it stop at 90 degree.
 

senderene


vishwam_17

i am using this code.



{ {do{myservo.write(20);
  if(pos=0)
  break;}
  while(FINGERPRINT_OK);
  }

 Serial.println( myservo.read());}


 { {do{myservo.write(0);
  if(pos=20)
  break;}
  while(FINGERPRINT_OK);
  }}
 

ballscrewbob

The WHOLE sketch may be better but before you post it please take a little time with the two links below.


Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.



It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

senderene

I found this link:
https://learn.adafruit.com/adafruit-optical-fingerprint-sensor/overview
there is also a video there with some instructions.

Also there are some examples after you install the library.
I also found examples on GitHub:
https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library/tree/master/examples/fingerprint

I've never worked with the sensor, but I would start from there.

Hope it helps.

ballscrewbob

@vishwam_17

I warned you about duplicate posts Please take the next 7 days to read the links I provided earlier !

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up