'Soft' On/Off Power Switch


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Smile

    Can this work this way?
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    That will work to turn your PIC ON, and have the PIC switch OFF... D2 and R4 are then not required.

    However, if you require a Button-OFF function, then you need to tell the PIC that the Button has been pressed. In that case D2 and R4 are required and in your circuit you will then have omitted to take a line from the D2/R4 junction back to an available PIC pin.

  3. #3


    Did you find this post helpful? Yes | No

    Smile

    Melanie,

    Thank you very much by its aid.

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Unhappy Turn-On won't work...

    I do have difficulties to make this circuit switch-ON.

    Problem description: if I switch-off my power-supply for about 2 to 3 minutes and switch it on back again, the soft-switch won't function and power the PIC. But once the PIC has been "successfully" powered, it works any time (as long as I don't switch-off the supply again).

    For Q1, I implemented a 2N3906, then aBC307, then BC557; no way to make it work. Finally an old (metal case) 2n2905.

    By "chance", I got it to work by making a false-contact between the 2n2905's (Collector is connected to case) and R1 (any pole) on the breadboard.

    Once the contact has shortly happened and as long as the power-supply is not disconnected, the soft-switch will work perfectly (!?).

    What shall I do to correct this?
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2705&stc=1&d=121475975 5">
    NB: I didn't implement D2 + R3 since the program shuts-off the circuit by program (RA1 = 0).
    Attached Images Attached Images  
    Roger

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    I'm not sure, but I think your R1 has to tap directly to the base of Q1 and not below the resistor below that...

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


    Did you find this post helpful? Yes | No

    Default

    Apart from the Resistor connection that Ski mentioned (which is there to keep Q1 switched OFF), it is the job of your PIC to drive RA1 high BEFORE the User removes his finger from the switch. If your software has delays or other things before it sets RA1 high, then the circuit will simply switch-off when the finger is taken off the switch.

    It is a simple circuit - it can't fail. As long as the Base of Q1 is driven low (what is your value for R2 and what is the current draw via Q1?), it will conduct and supply power. Check your wiring and software and value for R2. Remember (simplistically) the gain (hfe) value for your chosen Transistor together with the current you're sucking out the Collector will determine the amount of cuurent you need to put into the Base. Your chosen R2 may be too high a value.

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Yup, R1 is actually connected du Q1's base. Thanks for noticing, skimask.

    My drawing only is incorrect, in fact, I built this circuit according to Melanie's plan in a previous post.

    The values of the components are those stated in the same previous post.
    Quote Originally Posted by Melanie
    Q1 BC327B (most any PNP transistor)
    Q2 BC547B (most any NPN transistor)
    D1, D2 1N4148 (or equivallent low-power signal Diode)
    R1 22K
    R2, R3, and R4 12K
    There is no delay in the program. In fact, I set RA1 high at the very beginning of the code.

    At startup, the circuit draws 4,5 mA. A few milliseconds later, the current peaks up to 600mA (I drive an IR led - it's a remote control).

    I'm going to add another Tr to provide the "power" to the IR-led instead of using only Q1. This should solve the problem.
    Roger

Similar Threads

  1. Switch mode power supply Pic Micro
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th July 2009, 13:11
  2. Replies: 3
    Last Post: - 29th April 2009, 00:45
  3. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  4. Switch PIC16F877 ON/OFF
    By koossa in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th August 2005, 12:34
  5. Electronic 'Soft' Power Switch
    By Art in forum Schematics
    Replies: 0
    Last Post: - 10th August 2003, 23:50

Members who have read this thread : 1

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