I am trying to create a lock that I can open using an NFC card. I was able to do all the NFC stuff, but I am kind of stuck with the lock and I hope someone can help.
I am using a NodeMCU ESP8266 board. The lock I purchased is a cheap Chinese lock, for which I was not able to get a manual, all I have is the following picture from the site I bought it, but some info is in Hungarian.
So according to the image the lock needs 3-5 volts, and as far as I know the NodeMCU can give 3.3 volts, which should be good. According to the picture, the red cable should be the power, black is the ground and blue should be the signal cable (written in Hungarian on the image).
I connected all the cables to the device, and created a very small code that gives a 10 second signal to the lock. I also tested this with an LED, and the LED light up perfectly fine. However, if I attach the lock itself, as soon as I connect the power the lock releases, so I think something is working. However, nothing happens when I give a signal through the blue cable. I also tried the yellow one, which I have no idea what it does, but no luck there.
Another interesting thing I was able to gather is that when I push the lock to a closed position by force it is released again in a couple of seconds. The NodeMCU was plugged into a computer during this test, and as soon as I push the lock to a closed position, Windows gives the "device detached" sound, like I am disconnecting the NodeMCU board. If I put the aforementioned LED in series with the lock, its brightness is decreased by a lot as soon as I force the lock to a closed position.
I am very new to electronics, and I think that maybe the lock needs more voltage? Maybe the picture is wrong, and 5 volts is needed in order for it to operate? Or am I missing something crucial? In case the lock would need 5 volts, is there an easy way to do that with a NodeMCU? I know that some Arduino boards can give 5 volts, but NodeMCU is much cheaper, and I would like to keep it cheap for now.
Thanks a lot!
