![]() |
![]() |
![]() |
|
|
|||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi,
I am trying to build a circuit that will turn on (and off) a 12v 2.0A (max output 24W) device using a 5v control line. The 5v control is from a USB interface connected to my PC. I have been trying to search for and answer and *think* I may need a 12v Relay (5v control) and perhaps a diode to stop feedback through the 5v line??? However I am not fully sure hence asking for help here. I have a Maplins book but there are a lot of relays in there of different types and I am also unsure of what exactly which one I would need. Any help would be greatly appreciated Regards nemo PS this is the second post of this item, the first one didn't *seem* to get published. |
|
|
|
|
|
|
(permalink) |
|
A solid state relay should do the job. They are generally triggered by a 3 to 32 volt DC level. If you are in the US I can help you with a selection from some of the US distributors. I assume you are turning on a 12V DC device. If it is 12V AC we can still do it.
__________________
The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best. Show me a different way. I have an open mind. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
AC or DC mmmmm good one. The power supply shows "Output 12V" and under the 12v is a single black line with a dotted line under it... is that ac or dc? |
||
|
|
|
|
|
(permalink) |
|
You'd want a 5v relay, a 12v one requires 12v at the coil to switch and will not be able to switch with 5v from the USB. You are correct about the diode, use a rectifier (1N4001 etc). You'll need to use on with a low coil current requirement since USB can't supply much safely.
I'd be tempted to use a logic level MOSFET for this. It should be cheaper and silent but the computer and load will need to share a ground to do it. This should be suitable for a relay, the coil requires 50mA (5v model) which should be permissable providing you don't have too many devices connected: http://www.maplin.co.uk/Module.aspx?...ELAYS&doy=4m11 However, I re-read your post and it sounds like the 5v from the USB is not the power line, but a signal line? If that is the case you will need to use a MOSFET to switch or a transistor/MOSFET to switch the relay since a signal line cannot supply the current for a relay coil directly. Logic level MOSFET's don't appear to be available from Maplin. Have a look here; http://www.rapidonline.com/productin...moduleno=66265 VNP7N04 should do. It'll need to be used as low side switch since it is N-Channel though. What is the device to be switched? Remember, if the grounds need to be isolated you'll need a MOSFET (small one though) AND a relay.
__________________
Angry!? I'm absolutely electrolytic! Will have to make do with myspace now I guess... |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Hope this helps Last edited by Nemo1966; 4th November 2006 at 03:10 PM. |
||
|
|
|
|
|
(permalink) |
|
I assume your using one of the "8 digital open collector output switches" for it? It specifies 100ma max, so it can pass the current for the relay. I reckon the neatest way would be to use the USB power line and switch it with the interface output switches. The relay I originally suggested is suitable. Alternatively, you could use a small plug in power supply to power the relay coil.
__________________
Angry!? I'm absolutely electrolytic! Will have to make do with myspace now I guess... |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Ok, for simplicity mabye we'd better go with using a plug in supply for the relay coil. From here:
http://www.rapidonline.com/productin...moduleno=71060 the AC/DC UNREG PLUGTOP PSU 12V DC 300MA RC code 85-2913 is fine for 12v relays such as: http://www.rapidonline.com/productin...moduleno=71047 32.21 12V DC MINIATURE SPDT 6A RELAY RC code 60-4087 You then use the switch output from that board to switch the current from the plug in supply into the relay coil. This will close it's contacts and, with the external drive connected through them, switch it on. This shows how to connect up the relay. It is a PCB model and will need to be soldered. If that is an issue, you could use one of these with push on connection: http://www.maplin.co.uk/Module.aspx?...ELAYS&doy=4m11 Anyhow, this shows how to connect up the PCB relay: http://www.findernet.com/comuni/pdf/S32EN.pdf I attached a diagram which should help. The only thing i'm not sure on is that board and how it's outputs work, so this may not be everything
__________________
Angry!? I'm absolutely electrolytic! Will have to make do with myspace now I guess... |
|
|
|
|
|
|
(permalink) |
|
wow!!! thats brilliant!! thanks very much for your time.
However The reason I have this idea is here: http://www.flickr.com/photos/simples...7594160190785/ This guy seems to be switch 120/240v with 5v from USB, so I guess the question is... why can't I? I'm not trying to be argumentative *honest* I just really want to understand. thanks again Nemo |
|
|
|
|
|
|
(permalink) |
|
Interesting. Yeah, that is a solid state low voltage relay (bit expensive) and that could probably be switched by a USB signal alone. The thing is with that board is i'm not sure it actually outputs a signal voltage, rather it's output is a switch? The analogue outputs may work, since they can go to 5v. If you programmed one of them to change to 5v it may have enough current to switch a 5v solid state relay like in that project; it says 1.5k output impedance so you'd need to check.
__________________
Angry!? I'm absolutely electrolytic! Will have to make do with myspace now I guess... |
|
|
|
|
|
|
(permalink) |
|
Hi I've found a diagram (on ebay of all places) and was wondering if you would cast you eye over it and see if its viable. The parts are a lot cheaper than a solid state device as you mentioned.
![]() thanks in advance. Last edited by Nemo1966; 16th November 2006 at 09:04 AM. |
|
|
|
|
|
|
(permalink) |
|
I would do it via a 4N35 or equivalent opto isolator,
Drive the input via the USB, and the open collector output can drive via a driver transistor the relay, to have a safety barrier between the USB and the relay as well as the mains in case something fails. For the sake of a little more work, it is a lot cheaper to do it this way then blowing up your PC in case something goes wrong.
__________________
There are more ways to get to Rome. Electricity, Electric clocks, Meters and Trains are great. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
I'm not an electronic type person as you can probably tell from my earlier posts in this thread. Having said that if I have a circiut I can usually build it. e.g I've built plenty of PIC circuits. Any chance you could should me on the diagram what you mean? thanks PS I am fairly technically minded, Im a programmer by Profession. Last edited by Nemo1966; 16th November 2006 at 09:18 AM. |
||
|
|
|
|
|
(permalink) |
|
All images deleted and link removed --- sad smutty loser - go play elsewhere !
Yours, the Moderators Mechie Last edited by mechie; 16th November 2006 at 12:32 PM. |
|
|
|
|
|
|
(permalink) |
|
frbigblmov: The morons who are responsible for posting crap like this should be hunted down and have their fingers cut off.
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Turn 'off' a relay using alarm clock...(help) | bd13 | Electronic Projects Design/Ideas/Reviews | 3 | 1st September 2004 12:01 AM |
| Relay Control Via Transistor Problem | iso9001 | General Electronics Chat | 9 | 31st August 2004 12:26 PM |
| Relay Connections | Johnson777717 | General Electronics Chat | 2 | 7th July 2004 09:44 PM |
| MCU controlling relay (or a way to simulate a SPDT relay?) | LiquidKernel | Electronic Projects Design/Ideas/Reviews | 5 | 25th March 2004 03:10 PM |
| Incubator Relay Circuit | Plip | Electronic Projects Design/Ideas/Reviews | 2 | 26th November 2003 12:35 PM |