Fingerprint and 4x4 kepad to EM lock

Greetings,

I am new to building, programming Arduino projects as I assume many of us are. Glad to find a place to find information and exchange ideas. I have decided my first project build is a lock operated by a keypad and thumbprint scanner for redundancy. I am using an Uno r3 and I have built some of the circuits on breadboards first; then soldered on to silicon. That seemed like the most straightforward part. My first problem has come with programming the sensor, I am unsure how to program the sensor to send an out put to the lock that I assume is a hi or low to deactivate it. I have loaded the correct libraries for the sensor of course, and used the enroll sketch to capture a print that I confirmed with an LED and the serial monitor. Of course once I get pat that I can work on the keypad. My question would be does anyone have a direction they could send me for how to program the outputs of these. Is it a simple Output pin high or low command after a positive match per se?

Thank you.

I am using a sainsmart thumbprint sensor

http://www.amazon.com/gp/product/B00J99C6D2?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00

This 4x4 membrane

http://www.amazon.com/gp/product/B0087ZEGUA?psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s01

Edit Lock

https://www.adafruit.com/products/1512

You want to know what signal to send the lock to open and close it?

If so, don't you think the type of lock would be a key piece of information?

Isn't that the same as the adafruit finger print sensor?

https://www.adafruit.com/products/751

There is code and more. You should take a look.

Delta_G: You want to know what signal to send the lock to open and close it?

If so, don't you think the type of lock would be a key piece of information?

Added that up top, apologies that would help yes.

https://www.adafruit.com/products/1512

liudr: Isn't that the same as the adafruit finger print sensor?

https://www.adafruit.com/products/751

There is code and more. You should take a look.

Thanks for the quick replies. I believe it is similar or a knockoff of that sensor. I have used the enroll/light test sketch examples in the library successfully, I am just unsure how to proceed editing. Say for example if to edit the sample for light test, would one write it to say when LED lights up lock opens? How would I do that?

I am having trouble finding an example to follow or how to write the lock into the code to do just that. My logic tells me I am to declare a pin an output and it needs a high or low state to activate the lock after providing the lock with the correct power and circuit, and a positive match on the sensor. I have built the example circuit on the lock page and soldered it correctly so that is good to go. I also directly tested the lock from a power source, it works. Again I am brand new to this, just figuring out code. I hope this is the correct forum and thanks again for your replies.

Did you read the link you just linked. It says:

When 9-12VDC is applied, the slug pulls in so it doesn't stick out anymore and the door can be opened.

So you'll need a 9 to 12V power supply for the lock and a transistor or MOSFET so Arduino can switch it. Then it's just a matter of writing HIGH or LOW to the pin. If you made it light a LED when you hit the right finger then you already got the code. Whether HIGH or LOW locks or unlocks it depends on how you wire up the transistor to drive the circuit. If you use a low side driver like most people would then HIGH opens the door and LOW locks it.

You will need some basic arduino training. Sounds like you should start from square 1, not a project like this.

Delta_G: Did you read the link you just linked. It says:

So you'll need a 9 to 12V power supply for the lock and a transistor or MOSFET so Arduino can switch it. Then it's just a matter of writing HIGH or LOW to the pin. If you made it light a LED when you hit the right finger then you already got the code. Whether HIGH or LOW locks or unlocks it depends on how you wire up the transistor to drive the circuit. If you use a low side driver like most people would then HIGH opens the door and LOW locks it.

Great to hear. I hooked it up to one of those 6.3x6.3xgrnd power sources and she hummed and clicked on and off, and wiring the circuit was pretty straight forward with an npn. Thank you for the clarification on HIGH and LOW, that is always helpful and I appreciate the direction on the code. Seemed like that was pretty straightforward. I'll test it out tomorrow in the lab. Then on to the keypad.