Electronics Forum

Electronics Circuits & Projects discussion forum. Get help with electronics.


Need Help - Using only 1 power supply for RFID door lock

Discuss about electronic circuits here. Request help for circuits that you couldn't find anywhere else, how a circuit works etc. Discuss anything related to electronic circuits.

Moderator: pebe

Need Help - Using only 1 power supply for RFID door lock

Postby quilesbaker » Sun Jun 09, 2013 10:18 pm

I am working on an rfid door lock. I have this circuit and I need some help. It works as is. But my goal is to use only one adapter/power supply instead of two

Image

On image 1, as you can see, right now I have a 9V source that powers the relay and a 12V (1A) that powers the arduino and the door lock. The rest of the circuit is not shown because it works stand-alone.. they are just some additional things connected to the arduino (rfid reader and leds). There are two grounds, marked as 0 and 1, because of the two power supplies. And there is a ground pin in the Arduino that closes the circuit for the output at pin 2 to work, using ground 0 (the transistor acts as a switch).

Image

I tried to get rid of the relay and just use a transistor (image 2), connecting the 12VDC (1Amp) to the door lock, arduino and transistor. This seemed like a bad idea anyways, but I wasn’t sure what to try. It did not work, as I expected. So the circuit for that is on the second attached image. I tried using both the 2N3904 (from the first working circuit) and the TIP31C for it. My theory is that for the first, the 2N3904 goes into saturation and stops acting as a switch, and the TIP31C needs more current, since the power supply starts blinking and does not supply current.

I’m a little rough on my electronics since I haven’t done anything since college and would like to start again. I know that for both circuits, and even more for the second, I may be either shorting something or putting the arduino in trouble since I’m using the GND pin to close the out from pin 2 into the same ground as the power supply.
Either way, I would like your input on both circuits, if I have done a bad practice, but most importantly if there are any ideas on how to make the circuit use 1 power supply only.

Your help is appreciated.
quilesbaker
 
Posts: 2
Joined: Sun Jun 09, 2013 9:57 pm

Re: Need Help - Using only 1 power supply for RFID door lock

Postby I_Daniel » Thu Jun 13, 2013 9:53 am

You could use a 7809 IC regulator from the 12 Volt line or if you know how much current the relay draws then you can calculate the value of a resistor to drop the 12 volt to 9 volt (three volt drop) to the relay. You should also consider a spike suppressing diode across the relay coil.
I_Daniel
 
Posts: 93
Joined: Wed Sep 21, 2011 12:57 pm
Location: Pretoria

Re: Need Help - Using only 1 power supply for RFID door lock

Postby pebe » Sat Jun 15, 2013 6:57 am

You could use your circuit 2, but with an IRF510 FET in place of the TIP31C.
pebe
 
Posts: 1058
Joined: Tue Dec 09, 2003 11:12 pm
Location: Ellon, Scotland

Re: Need Help - Using only 1 power supply for RFID door lock

Postby I_Daniel » Sat Jun 15, 2013 7:13 am

I agree with Pebe. It is much simpler/economical i.e less components and will do what you want without those nasty spikes from a relay. :P
I_Daniel
 
Posts: 93
Joined: Wed Sep 21, 2011 12:57 pm
Location: Pretoria

Re: Need Help - Using only 1 power supply for RFID door lock

Postby quilesbaker » Tue Jun 18, 2013 2:12 am

Wow thanks. I was a little busy so took time to respond. I will buy both components and view the datasheets and play with that. I definitely don't want the relay anyways.. worst case I use it but yeah 1 power supply is a must.
quilesbaker
 
Posts: 2
Joined: Sun Jun 09, 2013 9:57 pm


Return to Electronic Circuits Help



Who is online

Users browsing this forum: No registered users and 15 guests



cron