Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


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?

Reply
 
LinkBack Thread Tools Display Modes
Old 17th November 2006, 02:45 PM   (permalink)
Default

That relay is not suitable. It can't handle mains voltage. This one would be much better;
http://www.maplin.co.uk/Module.aspx?...elay&doy=17m11

I realise that it says 6v, but I have just 'clicked' a 12v relay with 4 AA batteries.

On your second point. If the relay is a DPDT ( Double pole double throw ) type, then you can switch both live and neutral. If it's a SPST ( Single pole single throw ) then you can only switch the live. However, that's what most 'mains' switches on appliances do.

On the subject of diode. I'd use an 1N4001. All it's doing is stopping the back EMF ( Elecromotive force ) that occurs when the relay de-energises from possibly damaging the transistor. As an experiment, when you get the relay, try it on 4 AA batteries and look at the sparks you get when you disconnect it.

I'm not sure what you mean by 'Which line would you break to control the switching? +12 or -12? or both?'
House0Fwax is offline  
Old 17th November 2006, 02:59 PM   (permalink)
Default

Quote:
Originally Posted by House0Fwax
That relay is not suitable. It can't handle mains voltage. This one would be much better;
http://www.maplin.co.uk/Module.aspx?...elay&doy=17m11

I realise that it says 6v, but I have just 'clicked' a 12v relay with 4 AA batteries.

On your second point. If the relay is a DPDT ( Double pole double throw ) type, then you can switch both live and neutral. If it's a SPST ( Single pole single throw ) then you can only switch the live. However, that's what most 'mains' switches on appliances do.

On the subject of diode. I'd use an 1N4001. All it's doing is stopping the back EMF ( Elecromotive force ) that occurs when the relay de-energises from possibly damaging the transistor. As an experiment, when you get the relay, try it on 4 AA batteries and look at the sparks you get when you disconnect it.

I'm not sure what you mean by 'Which line would you break to control the switching? +12 or -12? or both?'
Hi, I'm not trying to switch mains voltage. 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. (very first post)

I think the conversation through the thread has talked about switching mains at times though.

I was going to switch the mains for the whole unit, but the adapter for the Ext HD outputs 12v so I decided just to switch that. This means I dont have to use a bulky UK 3 pin socket.

Although now you pointed out that relay I may look at doing that again.

So I guess thats where the +12v -12v came in. But you already ansered that with your great "DPDT ( Double pole double throw )" description.

I am struggling to find the transistor needed though ... any ideas?
Nemo1966 is offline  
Old 17th November 2006, 03:14 PM   (permalink)
Default

I generally use a BC109C, probably because I have loads kicking around.
Any general NPN type should do, you are only switching a relay. Although you should check that it can handle about 800ma upwards to be on the safe side.
I have jsut tried out the 'Picaxe' circuit on a breadboard using a BC109C and a 12v relay, and a 6v supply. Works fine.
And as for switching the voltage line. Always switch the positive (+) or live depending on if it's ac or dc
House0Fwax is offline  
Old 17th November 2006, 03:45 PM   (permalink)
Default

Quote:
Originally Posted by House0Fwax
I generally use a BC109C, probably because I have loads kicking around.
Any general NPN type should do, you are only switching a relay. Although you should check that it can handle about 800ma upwards to be on the safe side.
I have jsut tried out the 'Picaxe' circuit on a breadboard using a BC109C and a 12v relay, and a 6v supply. Works fine.
And as for switching the voltage line. Always switch the positive (+) or live depending on if it's ac or dc
Great thanks!!!

So is the relay I posted OK for the 12v switching?

BC109C is there a maplins equiv?

thanks again

Last edited by Nemo1966; 17th November 2006 at 03:58 PM.
Nemo1966 is offline  
Old 17th November 2006, 04:58 PM   (permalink)
Default

Isn't a BC109 in an old metal case and from about 40 years ago? I still have a few.
Just about any little NPN transistor can turn on a relay in that circuit.
__________________
Uncle $crooge
audioguru is offline  
Old 17th November 2006, 05:11 PM   (permalink)
Default

Indeed, the 5v relay will be ok. Sorry, I can't help you with the current though, I have never been good with maths and stuff like that. mind you, it's not going to be very much at all.

Any of the following transistors will be fine;
Maplin code
QF28F BFY51
QR23A 2N3053
QB38R BC141-10
VR06G BC639
QB68Y BC337-16
UM82D TIP31C <--- That one is overdoing it a bit, it's a power transistor, but if your branch of Maplin is anthing like mine, then they vary rarely have what you want. So you'd best have alternatives.
House0Fwax is offline  
Old 17th November 2006, 05:13 PM   (permalink)
Default

Quote:
Originally Posted by audioguru
Isn't a BC109 in an old metal case and from about 40 years ago? I still have a few.
Just about any little NPN transistor can turn on a relay in that circuit.
thank you.

another question, what voltage led will work on that circuit? e.g what does adding the 1.5k resistor do?
Nemo1966 is offline  
Old 17th November 2006, 05:15 PM   (permalink)
Default

Quote:
Originally Posted by House0Fwax
Indeed, the 5v relay will be ok. Sorry, I can't help you with the current though, I have never been good with maths and stuff like that. mind you, it's not going to be very much at all.

Any of the following transistors will be fine;
Maplin code
QF28F BFY51
QR23A 2N3053
QB38R BC141-10
VR06G BC639
QB68Y BC337-16
UM82D TIP31C <--- That one is overdoing it a bit, it's a power transistor, but if your branch of Maplin is anthing like mine, then they vary rarely have what you want. So you'd best have alternatives.
woooohoooo my shopping list is almost complete ... thanks very much guys for the help. Mucho mucho appreciated.

Now all I need is an LED (see above post)

thanks
Nemo1966 is offline  
Old 17th November 2006, 05:17 PM   (permalink)
Default

Uncle $crooge: It is indeed in a metal can. I bought a bag of about 50 many years ago and still use them. I used some about a week ago pic multiplexing project. Old and new components on one board. Teriffic.
House0Fwax is offline  
Old 17th November 2006, 05:23 PM   (permalink)
Default

Any standard led will work, choose your favourite colour. The resistor is there to limit the current.
Some have built in resistors.
Yesterday I bought some nice blue ones from a £1 shop that you mount in your car. ( not that I have one ) However, 3 5mm blue high brightness leds for a £1, yes please.
House0Fwax is offline  
Old 17th November 2006, 05:27 PM   (permalink)
Default

An LED is a diode that has a small fixed voltage drop. If you connect it directly to a power supply that has a voltage higher than the voltage rating of the LED then the LED will draw an extremely high current and will burn out. Most ordinary LEDs have a max continuous current rating of 30mA. They are recommended to operate at 20mA.

A red LED is about 2.0V so with a 12V supply, 10V will be across the 1.5k current-limiting resistor and Ohm's Law calculates the current to be 10V/1.5k= 6.7mA which is not very bright. For 20mA then use R= 10V/20mA= 500 ohms which isn't a standard value so use 510 ohms.

A blue or white LED is about 3.5V so the current-limiting resistor will have 12V-3.5V= 8.5V across it. The value of a current-limiting resistor for 20mA is R= 8.5V/20mA= 425 ohms which isn't a standard value so use 430 ohms.
__________________
Uncle $crooge
audioguru is offline  
Old 18th November 2006, 12:36 AM   (permalink)
Default

Uncle $crooge: Oh yes. Totally. However, I have never gotten to grips with all the maths stuff ( as I posted earlier ) though through the years, I have learned what works and what dies a horrible, yet short life.
Where leds are concerned, I without doubt start with a 1K resistor and work from there... Though I never make anything that gets further than a prototype board, ( well,,, very rarely ), I just play with things, adapt stuff, think 'see what I did there ?' Then move onto something else.
House0Fwax is offline  
Old 19th November 2006, 02:04 PM   (permalink)
Default

Hi guys, I've built the circuit...

Is this how it should be connected?




Thanks in advance

Last edited by Nemo1966; 19th November 2006 at 02:59 PM.
Nemo1966 is offline  
Old 19th November 2006, 05:57 PM   (permalink)
Default

The relay must have a 5V coil to work with the 5V supply.

You are using a darlington transistor instead of a normal transistor. It has two transistors connected to make its input very sensitive.

The darlington might turn on by itself if the computer is turned off, so add another 10k resistor from its base to 0V to turn it off when it should be off.
__________________
Uncle $crooge
audioguru is offline  
Old 19th November 2006, 06:41 PM   (permalink)
Default

From what I have learned of the ULN2803 (never heard of it before today), which is the chip on the Velleman board. It can only 'sink' current ( ie. ground it ), throughout this thread, I have assumed that the board could 'source' ( ie. supply it. ) My fault entirely. Mind you, not to worry. From what I can gather;
Whatever is present on one of the 8 screw terminals on the velleman board will be connected to the 'clamp' terminal when you click the mouse on the appropriate bit of software.
As I see it, you have the two red horizontal ( nearly ) lines the wrong way around.

Believe me, If my local Maplin branch had one of these things in stock, I'd have bought it about 3 days ago and made it, tested it and sent you exact details, diagrams, pictures, video, video in 3-D...etc

Don't worry, you wont melt your PC.

Though, thoroughly check that your relay board works first.
House0Fwax is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Turn 'off' a relay using alarm clock...(help) bd13 Electronic Projects Design/Ideas/Reviews 3 1st September 2004 01:02 AM
Relay Control Via Transistor Problem iso9001 General Electronics Chat 9 31st August 2004 01:26 PM
Relay Connections Johnson777717 General Electronics Chat 2 7th July 2004 10:45 PM
MCU controlling relay (or a way to simulate a SPDT relay?) LiquidKernel Electronic Projects Design/Ideas/Reviews 5 25th March 2004 04:10 PM
Incubator Relay Circuit Plip Electronic Projects Design/Ideas/Reviews 2 26th November 2003 01:36 PM



All times are GMT. The time now is 01:04 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker