Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 13th May 2008, 09:15 PM   (permalink)
Default Power supply for microcontroller relay

I would like to build a temperature sensor that switches on and off a mains supply to keep what I am heating at a set temperature. However, I am wondering where to get power for my micro (a PIC).

I have two main questions:

1) I have seen these fairly cheap: http://www.clairtronic.com/2.htm but can't work them out (I'm assuming that's AC-AC), could this sort of thing work? Or is there a better approach? I'd rather not use batteries or another DC supply if possible, if I already have mains power through the circuit!

2) Would a relay or TRIAC & opto-isolator be best? The book I am reading suggests a TRIAC which doesn't appear to need a separate DC power supply, other posts online seem to suggest that is desirable for a relay. I will be switching a maximum of 60W, the heat mat I have now is 18W.

Thanks.
edeca is offline   Reply With Quote
Old 15th May 2008, 10:39 AM   (permalink)
Default

Hi edeca

The link with the product shows just normal print transformers (and that is AC to AC) you still have to rectify and stabilize the power in order to give it to a IC

a opto coupler and triac is a good solution for swiching AC loads

but a relais does the same but is mechanical and does consumes more energy

How many Watts is the heater element?

Robert-Jan
rjvh is offline   Reply With Quote
Old 15th May 2008, 10:48 AM   (permalink)
Default

I'd use a relay on the output & to power up the micro circuit I'll definitely use a small transformer.Everything is isolated.

To make it compact I'll use a capacitive TX less power supply for micro & driving a TRIAC output with no any isolation.

Looks like you are building a temperature controlled soldering station
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 15th May 2008 at 10:54 AM.
Gayan Soyza is offline   Reply With Quote
Old 15th May 2008, 08:29 PM   (permalink)
Default

I have just made something similar, using one of those transformers.

You have to rectify the AC output to DC. The best way is to use 4 diodes or a bridge rectifier (which is just 4 diodes in one box)

You then need to smooth with a capacitor. That keeps the PIC going when the mains voltage drops to zero 100 times each second.

Then you need to regulate with a voltage regulator, such as a 78L05 if you want 5V.

With those little transformers, they have a lot of internal resistance, so the output of the rectifier can be quite large with no load. I found it better to use a full bridge with 4 diodes, rather than half-wave rectifying the two secondary windings, to reduce the voltage drop caused by the internal resistance.
Diver300 is offline   Reply With Quote
Old 15th May 2008, 10:04 PM   (permalink)
Default

Thanks for all the replies. I'm not building a temperature controlled soldering station

The heater I am using is an 18W heat mat, designed for reptiles. I am using it to heat a small enclosure that (fortunately) doesn't contain reptiles. Instead of buying the expensive heat controller, I thought I would look into how to build one. In future I might build a larger enclosure with a larger heater, the biggest is around 60W.

I have found a diagram of what Diver300 recommends here: http://www.kpsec.freeuk.com/powersup.htm#trsr

Diver300's post and that diagram explains it very nicely. I have built 7805 supplies before for DC-DC so am quite happy with that. However I have two further questions if anybody can help:

1) The transformer specification sheet shows 4 connections on the 'stepped down' side, 0 SEC 0 SEC. Which are connected to the bridge rectifier? Why are there two 0 connections?

2) I am assuming that a 50V 1 or 2A bridge rectifier will do, something like http://tinyurl.com/6x4nx7 ? I am unsure here though. I assume 50V because that's the minimum and I'll be using a 12V transformer to step down. Power requirements are quite low and the 7805 only does 1A from memory.
edeca is offline   Reply With Quote
Old 15th May 2008, 11:32 PM   (permalink)
Default

Quote:
Originally Posted by edeca
1) The transformer specification sheet shows 4 connections on the 'stepped down' side, 0 SEC 0 SEC. Which are connected to the bridge rectifier? Why are there two 0 connections?
There are two separate secondary windings. They are isolated and can be connected in series or parallel. The direction is important.

http://www.tpub.com/neets/book7/27b.htm shows a rectification circuit that I have often used. It has the advantage of only having one diode drop but the disadvantage that the more current flows in the windings for less time, giving more voltage drop, especially on small transformers.

Quote:
Originally Posted by edeca
2) I am assuming that a 50V 1 or 2A bridge rectifier will do, something like http://tinyurl.com/6x4nx7 ? I am unsure here though. I assume 50V because that's the minimum and I'll be using a 12V transformer to step down. Power requirements are quite low and the 7805 only does 1A from memory.
That rectifier would be fine. It is bigger than you need but you won't find anything else much cheaper. You won't even need 1A. The biggest load will be the relay that switches the heater.

12Vac is too big. You want a 6V transformer, parallel the outputs (connect 0 to 0 and sec to sec). That will give you something like 8Vdc loaded, maybe 12Vdc with no load, so there is plenty for the regulator to work with. If you fit a larger voltage of transformer, you just throw away more power in the regulator and then you may need a heat sink for it.
Diver300 is offline   Reply With Quote
Old 16th May 2008, 06:39 AM   (permalink)
Default

Quote:
Originally Posted by edeca View Post
Thanks for all the replies. I'm not building a temperature controlled soldering station

The heater I am using is an 18W heat mat, designed for reptiles. I am using it to heat a small enclosure that (fortunately) doesn't contain reptiles. Instead of buying the expensive heat controller, I thought I would look into how to build one. In future I might build a larger enclosure with a larger heater, the biggest is around 60W.

I have found a diagram of what Diver300 recommends here: Power Supplies

Diver300's post and that diagram explains it very nicely. I have built 7805 supplies before for DC-DC so am quite happy with that. However I have two further questions if anybody can help:

1) The transformer specification sheet shows 4 connections on the 'stepped down' side, 0 SEC 0 SEC. Which are connected to the bridge rectifier? Why are there two 0 connections?

2) I am assuming that a 50V 1 or 2A bridge rectifier will do, something like MULTICOMP | 2KBP02M. | Diodes | Components & Spares | CPC ? I am unsure here though. I assume 50V because that's the minimum and I'll be using a 12V transformer to step down. Power requirements are quite low and the 7805 only does 1A from memory.

Hi Edeca,

You can use a 120V - 12V step down transformer (12 - 0 - 12) along with 2A bridge and 470mfd filter. Feed this to 7805 metal package and from here u can drive the PIC directly. Bypass the 12V line directly to the relay coil and drive it with a transistor. You will get 12V relay with 10A contact, this is enough to switch your load.

If you still want reduce the cost and remove the bulky transformer....there is another way ....Graveyard design. Here you can step down the 120V line using a 5W resistor and drive the rectifier section.

Hope this help....
__________________
Sqn R.K. Chakravarthy
----------------------
Sky is not the limit for Air Warriors
Rajaneesh is offline   Reply With Quote
Old 16th May 2008, 09:38 PM   (permalink)
Default

Thanks again for your message. With regard to load, if I use an optoisolator & triac, surely there wont be much? A MOC3020 seems to be a DIP package with the isolator and triac inbuilt and can take 240v no problem. It is also fairly cheap. I assume I can connect the LED side to the PIC and the other side straight to the same incoming mains as the transformer.

However, if I ever design a PCB for this, how do I run 240v through it? Are there recommendations for size of track etc?

Your help is greatly appreciated, power electronics sure is turning out to be more to think about!
edeca is offline   Reply With Quote
Old 16th May 2008, 09:46 PM   (permalink)
Default

Thanks again for your message. With regard to load, if I use an optoisolator & triac, surely there wont be much? A MOC3020 seems to be a DIP package with the isolator and triac inbuilt and can take 240v no problem. It is also fairly cheap. I assume I can connect the LED side to the PIC and the other side straight to the same incoming mains as the transformer.

However, if I ever design a PCB for this, how do I run 240v through it? Are there recommendations for size of track etc?

Your help is greatly appreciated, power electronics sure is turning out to be more to think about!
edeca is offline   Reply With Quote
Old 17th May 2008, 06:29 AM   (permalink)
Default

Quote:
Originally Posted by edeca View Post
Thanks again for your message. With regard to load, if I use an optoisolator & triac, surely there wont be much? A MOC3020 seems to be a DIP package with the isolator and triac inbuilt and can take 240v no problem. It is also fairly cheap. I assume I can connect the LED side to the PIC and the other side straight to the same incoming mains as the transformer.

However, if I ever design a PCB for this, how do I run 240v through it? Are there recommendations for size of track etc?

Your help is greatly appreciated, power electronics sure is turning out to be more to think about!

Hi edeca,

You cant drive your load directly with MOC out. You need to drive it through another triac because Igt max=50mA. Please refer the datasheet....

Regarding PCB track, you can run the AC lines in one side and keep all the low voltage line other side. There are some IPC standard for track thickness and isolation. I have enclosed the same for your ref....

Hope this will help you to overcome the obstacle....
Attached Files
File Type: pdf moc3020.pdf (102.9 KB, 2 views)
File Type: pdf Document2.pdf (14.8 KB, 1 views)
__________________
Sqn R.K. Chakravarthy
----------------------
Sky is not the limit for Air Warriors
Rajaneesh is offline   Reply With Quote
Old 17th May 2008, 08:55 AM   (permalink)
Default

Thanks Rajaneesh! I realised that about the output after

Is there any real difference then between a MOCxxxx and an isolator with a transistor in, which is what the book I have here describes. I can then couple this with a minimum 400V 1.5A triac (e.g. BTA10 which is 10A) to drive the load?

Your document about the PCB is very useful. Does this mean that you have to run the tracks on separate sides? Or that it is recommended? I have only ever dealt with single sided boards before.

I will draw a circuit later and post a list of parts I think I will use. If anybody can tell me which bits are wrong, I will be grateful

Last edited by edeca; 17th May 2008 at 08:59 AM.
edeca is offline   Reply With Quote
Old 17th May 2008, 08:10 PM   (permalink)
Default

I've had a look now, could you advise me whether any of these are unsuitable?

Transformer: BLOCK | VB1.5/2/6 | Transformers & Accessories | Components & Spares | CPC
Diode bridge: MULTICOMP | 2KBP02M. | Diodes | Components & Spares | CPC
Triac for driver circuit: STMICROELECTRONICS | Z0107DA. | Thyristors & Triacs | Components & Spares | CPC - I think 0.8A at 230V should provide 192W, which is more than enough

I can't seem to find optocouplers at this supplier though, are any or the ones in this category suitable: Transistor Output | CPC ? Or would a relay be much easier?

Thanks for all your help.

Last edited by edeca; 17th May 2008 at 09:21 PM.
edeca is offline   Reply With Quote
Old 18th May 2008, 05:55 PM   (permalink)
Default

You obviously need a smoothing capacitor and a voltage regulator.

5V is enough to turn on the Triac, but if you isolate with an opto isolator you need some type of non-isolated supply to feed the gate of the Triac.

You can't get power through an opto isolator. Its output just appears as a switch and if you want to block 230 V ac you need a switch rated to 400 V dc
Diver300 is offline   Reply With Quote
Old 18th May 2008, 09:58 PM   (permalink)
Default

Quote:
Originally Posted by Diver300 View Post
You obviously need a smoothing capacitor and a voltage regulator.
That's fine, I'm used to using those. I hope I can calculate the correct values and buy ones rated for the right voltages.

Quote:
5V is enough to turn on the Triac, but if you isolate with an opto isolator you need some type of non-isolated supply to feed the gate of the Triac.

You can't get power through an opto isolator. Its output just appears as a switch and if you want to block 230 V ac you need a switch rated to 400 V dc
This is where I am confused, hence lots of questions, sorry. The book I have here shows the mains voltage straight through the coupler. I couldn't find any parts rated for this. Are there any? Or is mains through the coupler the wrong way to do it? I have attached a small scan from the book showing just this portion of the circuit.

If I need a separate supply through the coupler to the triac gate, I don't see the advantage over a relay which would also need a separate supply. Thus I'm not sure which to use as I could just connect up a relay with a protective diode and forget all about optocouplers.

Can I take the separate supply from before the regulator? If so, would you recommend a relay instead of a triac?

Thanks again for your reply.
Attached Images
File Type: jpg IMG.jpg (24.0 KB, 9 views)
edeca is offline   Reply With Quote
Old 19th May 2008, 09:04 PM   (permalink)
Default

Quote:
Originally Posted by edeca View Post
That's fine, I'm used to using those. I hope I can calculate the correct values and buy ones rated for the right voltages.
For the smoothing capacitor, the site at Power Supplies suggests the following equation for 10% ripple:

C = (5 * Io) / (Vs * f)

470uF is suggested in many circuits. Vs is easy to calculate, 0.7v drop per diode:

Vs = 12 - (0.7 * 2)
Vs = 10.6

I am not entirely sure about Io, is this assumed to be 2A if the bridge rectifier is 2A? What else does it depend on?

So for 240v 50hz input, what value capacitor would be required to smooth the transformed/rectified 12v?
edeca is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Got a new EVBoard How do i supply power to it? cubdh23 Micro Controllers 2 3rd August 2007 09:39 AM
Capacitor based power supply dadwhiskers Electronic Projects Design/Ideas/Reviews 6 28th April 2007 08:42 PM
Draining capacitors on power supply hfireworks Electronic Projects Design/Ideas/Reviews 24 27th April 2007 02:03 AM
24v DC Power Supply (Help & Information Wanted Urgently) ampthetex Electronic Projects Design/Ideas/Reviews 5 17th November 2006 12:44 PM
help on Protection circuit for power supply ronchiejames Electronic Projects Design/Ideas/Reviews 19 9th May 2005 12:52 PM



All times are GMT. The time now is 12:50 PM.


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