a little help with capacitive power supply values


Closed Thread
Results 1 to 40 of 82

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default power supply

    Dennis,
    Very through work !, and good questions.
    Your diag had diodes in wrong places.
    1) too much current draw will drop voltage to PIC to a point of no-operation,
    thats why my ckt had 12V ZD and 5V reg, it provides smoother supply.
    2)you have to insert DC ammeret (can be digital meter) in wire supplying PIC and other circuit.
    3)Probably getting toward your 30MA, keep draws as small as possible, example---2MA led
    4) C1 drops most voltage but most all parts are critical for operation
    5)C1 is the current limiter, could use 600VAC rated part which is larger than say 250V part
    -R1 developes heat by the amount of -- Current squared times Resistance
    - also Z diode makes a little heat -----Z voltage times current through it (can measure or estimate
    6) use an OPTO triac driver then any triac of the amps you need is OK
    7) use 200 to 500 ohm to drive the triac driver depending on the opto chosen
    8) consider added power used (more current) by added parts, within range of designed supply components
    9) full-wave bridge makes use of pos and neg cycle of ACV, where 2 diodes only uses 1/2 cycle and the other 1/2 cycle is just wasted. bridge rectifiers come in dip package up to 1000 volts.
    10,11,12,13,1,2))) If not using Z crossing, you could hook 10 or 20 volts from an ac or dc supply to test,adjust, ICSP then after all working hook to 110/220 power.
    I think touch-sense sw's would be possible shock hazzard due to lack of higher voltage isolation, at some point Transformer isolation makes more sence.

    I made some push-button 110V fan timers with this circuit, fits in wall switch box, never skipped a beat or burned one up, so I was addressing the same issues as you.

    good luck,
    don
    amgen

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dennis,

    Glad to see you are not jumping into this without asking the questions.
    But by asking the questions I see you are not familiar with high voltage.
    So it is a "catch 22" to learn how to handle it. This is one of the places where "self experimentation" could get you in trouble.

    Make sure you have a low value fuse in the system.

    I do not want you to end up looking like my avatar

    Yes, I am getting to be an "old fuddy duddy"
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default still researching ...

    Hi guys :-)

    Don thanks for the reply and update :-)
    Your diag had diodes in wrong places.
    Which diode is in the wrong place ??

    Dave ....
    Thanks for the tip .. just curious though ..fast blow low current fuses ?

    Kind regards
    Dennis

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Happy New Year Boys...

    That's a very dangerous circuit you've posted Dennis.

    What you've got is Vdd at LIVE potential, and Vss is just -5v below it. You've put all your voltage drop in the NETURAL rail. That means your ENTIRE low-voltage PIC circuitry is actually referenced against your HIGH VOLTAGE LIVE. Yes it will work, but there is no margin for error anywhere, because GROUND is (more than) 250 volts away...

    If you look at other half-wave rectified circuits (posted on this forum), you'll notice that Vss (0v) is sitting at NEUTRAL, with Vdd +5v above it (with all the voltage drop being done in the LIVE rail). So, in that instance most of your PIC circuit is close to GROUND (since NETURAL and GROUND 'should' be connected together somewhere along the Power Grid to your Wall Socket). This makes it a damn sight 'safer' if you really want to play with mains. I use the word 'safer' cautiously - because playing with supply mains for folks that don't know what they're doing is not safe at all.

    All the above is negated by the fact that some countries Power Systems allow users to plug appliances in either way around.

    Now I'm going to get serious here. Your questions highlight the fact that you don't know what you're doing and you're asking the forum for advice on values of components and such. Read the Datasheets for the components you're using and determine if what you are doing is correct for the purpose intended. For example, the TRIAC Datasheet should tell you what Gate current it requires (your R3 question) to switch on. Because if ANYONE gives advice on a particular component or value, and you end up killing yourself, the liability falls onto the person that gave you the advice.

  5. #5


    Did you find this post helpful? Yes | No

    Default power supply danger

    I would like to take a step back.........and agree with Melanie about this power supply danger.
    Any possible touching or contacting of any parts of this circuit can cause serious injury!!! Leaving this circuit available for any person to contact in any way would be very negligent. Only persons with strong electronic knowledge should be working with this type of circuit.
    Never want to see someone hurt.
    df
    amgen

  6. #6


    Did you find this post helpful? Yes | No

    Default how do you know without trying ? how did others know ? making the un-safe safe ..-ish

    Hi All (Happy new year by the way :-) I hope it's a good and prosperous one for everyone!)

    Melanie thanks for the clarity and tips again ,

    So if we are using a 3 prong plug, (Three wire system)
    then Brown wire is LIVE
    and Blue is NEUTRAL
    and YELLOW/GREEN is EARTH

    The measured voltages are as follows
    At the time I measured

    Between LIVE and EARTH = 227.5 V (Readings may vary 235 to 225V (Varies based on time of day load etc) )

    Between NEUTRAL and EARTH = < 1 V (May vary too!)

    Between LIVE and NEUTRAL = 227.1 V

    In most AC driven appliances where a mechanical SWITCH is used to switch
    Either one of two switches are used (not so ?)
    1.
    ON-OFF
    Single Pole, Single Throw = SPST

    A simple on-off switch. This type can be used to switch the power supply to a circuit.

    When used with mains electricity this type of switch must be in the live wire, but it is better to use a DPST switch to isolate both live and neutral.

    2.
    Dual ON-OFF
    Double Pole, Single Throw = DPST

    A pair of on-off switches which operate together (shown by the dotted line in the circuit symbol).

    A DPST switch is often used to switch mains electricity because it can isolate both the live and neutral connections.

    In at two wire system (2 prong plug) we are using LIVE and NEUTRAL


    So....

    In for the example of a PIR security light controller, the circuit draws its power from the mains , when the PIR detects a movement (PIC pin goes high) it opens the power to the load , in this instance it switches the light on (the light draws from the same mains power that the circuit draws from)
    See the attached diagram..

    So without creating a dangerous circuit how does one draw from the very same power that you are switching on and off (or dimming for that matter) ???

    Melanie, what exactly are you suggesting to make it safe ?
    You said ...
    What you've got is Vdd at LIVE potential, and Vss is just -5v below it. You've put all your voltage drop in the NETURAL rail. That means your ENTIRE low-voltage PIC circuitry is actually referenced against your HIGH VOLTAGE LIVE. Yes it will work, but there is no margin for error anywhere, because GROUND is (more than) 250 volts away...
    I agree it would be better to be 5V away from ground than 5v away from 250V :-)
    You also said ...If you look at other half-wave rectified circuits (posted on this forum), you'll notice that Vss (0v) is sitting at NEUTRAL, with Vdd +5v above it (with all the voltage drop being done in the LIVE rail).
    [/QUOTE]
    What keywords did you search on ? I tried transformerless and transformer-less as well as half-wave, and didn't find very much :-(
    I did find some that you had suggested to others ...
    Like this onehttp://www.picbasic.co.uk/forum/atta...9&d=1213285761
    and this one
    http://www.picbasic.co.uk/forum/atta...1&d=1139474240

    In the cuits I have seen, not many actually depict how the PIC is to be wired for various operations.

    You aslo said ...
    So, in that instance most of your PIC circuit is close to GROUND (since NETURAL and GROUND 'should' be connected together somewhere along the Power Grid to your Wall Socket). This makes it a damn sight 'safer' if you really want to play with mains. I use the word 'safer' cautiously - because playing with supply mains for folks that don't know what they're doing is not safe at all.
    I totally agree here
    But how do you suggest I change the circuit to do that ?

    Please check the attached (but no yet complete) updated diagram , what's missing here is the value for R2, R3 and the TRIAC stage (I plan to use a BT139F (see attached diagram) ..Is 01A correct ?
    I did raise a question about it being correct.

    I do understand the risks of the circuit and have been shocked before and why I am raising all these questions is because I would like to cover all the bases and not just dive into the deep-end.

    And regarding the calculations and so forth , I last used most of them 20 years ago when I was studying electronics (and sadly it is not my full-time career!) so please forgive me for being a little rusty.
    Electronics and PIC programming are a really fond hobby of mine which I recently re-kindled after a nearly 4 or 5 year break !

    As regards the safety aspects ... thanks to everyone who has issues warnings here and all have been noted and considered.
    I have a question though .. did you all encounter the dangers first-hand by a shock or was it from a warning from others ?
    Was it that feeling of total shock and frustration (at yourself) when you opened the equipment to work on or look inside while ignoring the DANGER and HIGH-VOLTAGE warning stickers ?


    I look forward to your responses be they critical, analytical or other :-)

    Kind regards

    Dennis
    Attached Images Attached Images    

  7. #7


    Did you find this post helpful? Yes | No

    Default and tranformer-based ?

    Just to throw a 'spanner in the works' , if I do eventually use a transformer based supply like the dimmer attachment, what would be the smallest footprint 220V to 9V/5V transformer I could use ?

    Kind regards
    Dennis
    Attached Images Attached Images  

  8. #8


    Did you find this post helpful? Yes | No

    Default a quest for knowledge...

    My questions ....

    Are they perhaps profane , not correctly formulated, without direction , off-the beaten track, stupid ?

    I realise there is google, encyclopedias, textbooks, etc. , but nothing can replace the power of human thoughts and minds !!

    Is not our very nature to question how a system works and why ? When new technology is built or invented don't we find ourselves asking how it works ? How did someone think of that ?

    Don't questions and discussions prompt new thoughts and ideas ?

    In this instance I am asking for advice, information and thoughts regarding how others power PIC's and their circuitry.
    I have not even attempted to build any such circuit yet and I have been researching this particular topic for two weeks already, gathering info.

    Did the inventors of X10 and the likes of know all the odds before they started dabbling ?

    What was life like before transformers?

    Are there alternatives to transformers ?

    I thank you all once again for answering some or most of my questions as well as for your concern for my safety !

    I apologize for my lack of knowledge BUT I have a desire to learn more and I have found this forum to be the most interesting in this field thus far! Hats off to all of you !! THANK YOU!

    So I have two options .. I recede back into cyberspace and lurk around in the shadows silently OR I summon the courage to ask the questions that other may/may not have thought of or asked before !

    Thank you

    Kind regards
    Dennis

  9. #9
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Just to throw a 'spanner in the works' , if I do eventually use a transformer based supply like the dimmer attachment, what would be the smallest footprint 220V to 9V/5V transformer I could use ?
    One alternative would be to use a switchmode wall transformer that supplies regulated +5V. That way, it's external to your device and has minimal effect on the footprint.

  10. #10
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Just to throw a 'spanner in the works' , if I do eventually use a transformer based supply like the dimmer attachment, what would be the smallest footprint 220V to 9V/5V transformer I could use ?

    Kind regards
    Dennis
    Dunno what the smallest available size would be, but I like these quite a lot for only $2.67USD each in 10 quantity:
    http://ww2.pulseeng.com/products/dat.../LT2007_04.pdf

    I use 6 volt output... rectified and filtered it's perfect for powering a LDO to get 5 volts at up to 80mA.

    Size is 22mm x 23mm x 19mm.

    Small, cheap, safer than transformerless supplies, and able to produce plenty of current for powering a PIC + accessories.

    For circuits where an "external" power supply (wall wart) is acceptable, I use these or something similar:
    http://search.digikey.com/scripts/Dk...P6P-ND&stock=1



    steve

Similar Threads

  1. Battery charger - power supply issue affecting ADC
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 14th December 2008, 00:12
  2. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 17:05
  3. Need advice for 74VDC power supply
    By Christopher4187 in forum Off Topic
    Replies: 8
    Last Post: - 4th March 2007, 20:54
  4. Decent 24 volt Pic power supply
    By rwskinner in forum Schematics
    Replies: 7
    Last Post: - 18th December 2006, 12:27
  5. Dual Power Supply Design
    By sougata in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th October 2006, 04:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts