![]() |
![]() |
![]() |
|
|
|||||||
| 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. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi,
I need to create a 5V supply for a PIC from a mains 240vac 50hz supply. Its a lamp dimmer circuit, so the supply line will be inline with the bulb that is being controlled. This means that when designing the power supply, it needs to have a wide input voltage and still maintain the correct output for the PIC. I guess the PIC should make sure the controlled 'dim' state does not drop below a certain average voltage so the PIC can always remain powered. Does anyone have any existing circuits for this? I looked at using a resistive transformerless supply, but ended up with a resistor that needed to dissapate 10W so would like to use a capacitive solution instread. I am competent with high voltages, so understand the risks involved with live supplies and no isolation etc.. Any help would be great on this. I guess someone must have a circuit for this as there are many inline digital dimmers out there already. Last edited by kybert; 1st September 2007 at 09:49 PM. |
|
|
|
|
|
|
(permalink) |
|
That sounds strage. Is this for school or something, because If I wanted a 5v stabilized supply for an IC this is not how i'd do it. I would reccommend using a step-down transformer and a 5v regulator. check google for some circuits.
__________________
-michael11298 |
|
|
|
|
|
|
(permalink) |
|
I think you have it backwards - the greatest voltage drop will be when the lamp is fully on. But not to worry about that. consider 2 lamps plugged in to the same outlet (i.e. in parallel). Turning a second lamp on won't cause the other to dim unless your wiring is really substandard.
for a transformerless supply, look for an ap note on the Microchip site. It's pretty easy to follow. |
|
|
|
|
|
|
(permalink) |
|
The lamp is already wired in the house. The only access point to the wiring for the lamp is the existing switch on the wall. So, i have to derive the power supply with the bulb in series to any electronics that will be required to control the voltage to the bulb.
Hence, i need a transformerless supply that can work over the full dimable range. It's not for school, im a software guy that likes to do a bit of hardware every now and then. Last edited by kybert; 27th October 2007 at 04:45 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
What voltage and current do you want the PIC mains psu to supply?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) |
|
I want it to supply enough current to power 10 leds (If=2mA leds running at 1mA to save power), a PIC controller, and the supporting circuitry for the triac, so i'd guess in total, 30mA should be enough on the 5V line.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
I will post a drawing in the next 24hrs, showing how to make such a psu. Are you experienced enough to work with mains powered, non-isolated devices? I have to ask.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) |
|
Im fine working with live electronics, i use MCD and RCD protectors and im carfull!
Am i right in assuming that 10mA will be enough to fire a triac via a MOC3020(?) and power a pic? |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Look thru these examples, READ the warning messages. http://home.clear.net.nz/pages/joecolquitt/txless.html http://www.e-sonic.com/whatsnew/Micr...ower/TB008.pdf http://www.e-sonic.com/whatsnew/Micr...ower/AN954.pdf http://www.zen22142.zen.co.uk/Circuits/Power/tps.htm http://www.aaroncake.net/circuits/supply5.asp Allow more than 10mA, say total about 40mA if you triggering a triac, some require 30mA. From the above examples, you should find a suitable psu. IF IN DOUBT ASK!
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) |
|
Use a mains adaptor, I'm pretty sure you can get regulated units, failing that, use a 9V unregulated unit with an LM7805 on the output.
__________________
I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez |
|
|
|
|
|
|
(permalink) |
|
I cant use a mains adaptor, its inline with the bulb ina standard domestic house lighting circuit, the dimmer replaces the switch on the wall.
|
|
|
|
|
|
|
(permalink) |
|
That's even worse, since it probably won't work on the lowest brighness setting.
What's the power consumption? You could use a lithium battery that should last years if it doesn't use much power.
__________________
I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez |
|
|
|
|
|
|
(permalink) |
|
Why serial, and where are these LEDs in relation to the existing light. Is this the lower floor of a 2 storey house? An all concrete apartment? There are remote controlled LED replacement lights available.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
Below is an ap note for a 120VAC 60Hz dimmer which could be adapted for 240V 50Hz use with a few component changes: http://ww1.microchip.com/downloads/e...tes/40171a.pdf
__________________
--- The days of the digital watch are numbered. --- |
||
|
|
|
|
|
(permalink) |
|
Hi,
In the UK, its usual to only have a 3 core wire in the switch housing. The wire carries LIVE into the switch, and the live return comes out of the switch directly to the bulb. The 3rd conductor is the earth. The whole idea here is that the existing wiring need not be aultered; simply replace the switch with the circuit (the yellow box in the drawing). Therefore, i assume that the control circuit would need to ensure that at the lowest dim setting, there is still enough voltage to supply the PIC. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Linear Unregulated Power Supply | jbchrist | Electronic Projects Design/Ideas/Reviews | 19 | 16th February 2007 10:10 AM |
| Power supply design | FusionITR | General Electronics Chat | 4 | 11th March 2006 01:16 PM |
| Ultra low power power supply | steevke | Electronic Projects Design/Ideas/Reviews | 1 | 3rd February 2006 03:46 AM |
| Power Supply for a project to be powered within an Auto? | hexibot43 | General Electronics Chat | 16 | 8th September 2005 02:35 PM |
| Power supply/ current supply design | inkedallusion | Electronic Projects Design/Ideas/Reviews | 1 | 17th December 2002 01:10 AM |