
Fredrick_sa

I am trying to connect my arduino uno to a electric lock, using a 12v relay.
I have already done it with a 5v relay and it works, but with a 12v relay it is not working.
I have connected a 12v dc supply to the lock and i have cut the wire from the power supply so that it will connect to the relay COM and NO.
And connected the other side to the arduino and uploaded the code. The led light turns on indicating that the relay is working but when the signal is sent from the arduino the lock doesnt turn on.
If i connect the lock to the COM and NC then it works, but it stays on.
Are the connections ok?
https://synthiam.com/Products/ARC
And once you get it working - it'll be neat to control the lock to open when it sees your face on the camera or something: https://synthiam.com/Products/Controls/Camera/Camera-Device-16120
This is the code:
I really appreciate it that you are trying to help me
I will try to update it first, and then I will also test the relay from the link you have provided me.
theres a good tutorial on that firmware page as well. Once you get it setup, it’ll be a lot easier than writing all that Arduino code
I'll have a look at it.
Thank you!