Help adding to a previous P-MOSFET project

Discussion in 'General Electronics Chat' started by woodworkerjb, Jan 3, 2016.

  1. woodworkerjb

    Thread Starter New Member

    Mar 20, 2012
    7
    0
    A few weeks ago I was lucky enough to have help on a project from DL324. That discussion subject was on how I could get a remote to energize a 12 volt 4 amp automotive solenoid. After all of my failed attempt Dennis came up with a great circuit that worked like a charm. Now I am further into the project and have determined I need to add to this circuit so that I can make it a latching circuit. The 4 channel remote is a momentary switch type and I need to push on push off. I have posted DL324's circuit for completeness. Any suggestions would be appreciated.


    [​IMG]
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,136
    1,786
    Without understanding the nature of the pushbutton remote and the decoder for the pushbutton remote it is hard to visualize the best way to go. Many remote control devices repeat the command associated with a particular button as long as it is held down. Some devices send a unique code for the button, and then send a REPEAT code as long as the button is held down. Debouncing a button is another issue that is hard to imagine from just the data provided. Also are you thinking of using an IC for the latch or do you want something in a discrete transistor design?

    Real Estate is LOCATION, LOCATION, LOCATION
    Electronic Design is REQUIREMENTS, REQUIREMENTS, REQUIREMENTS

    Are you familiar with the operation of a JK Flip-flop?
     
  3. dl324

    Distinguished Member

    Mar 30, 2015
    3,235
    619
    Are you okay with using an IC flip flop, or do you want to use discrete components?
     
  4. woodworkerjb

    Thread Starter New Member

    Mar 20, 2012
    7
    0
    Thanks for the replies.

    Whichever way offers the best reliability is great with me.
     
  5. Papabravo

    Expert

    Feb 24, 2006
    10,136
    1,786
    IMHO, a CD4027 Dual JK Flip-Flop should be considered. You'll need to figure out some logic with respect to the available signals and you'll need some way to synthesize a clock.

    I'm not sure what reliability refers to. Can you elaborate on what factors you think the reliability of a circuit might be compromised?
     
  6. dl324

    Distinguished Member

    Mar 30, 2015
    3,235
    619
    You could wire a JK or D flip flop as a toggle flip flop. Both would require you to reset them at power on if you want them to initialize in a known state. Your switch would provide the clock signal. Can you take it from there?
     
  7. dannyf

    Well-Known Member

    Sep 13, 2015
    1,771
    359
    1. Unless for some reason the relay has to be grounded, using a high-side switch is unnecessary here. A low-side switch is sufficient.

    2. There are a lot of one-on / one-off circuitry. Yours can be easily modified to do that. If you can find it via google, let me know.
     
  8. dl324

    Distinguished Member

    Mar 30, 2015
    3,235
    619
  9. dannyf

    Well-Known Member

    Sep 13, 2015
    1,771
    359
    The general thought process is to use the output of your device to latch the input -> positive feedback.

    Typically it can be done via a flip-flop (a 555 timer can be configured as a flip-flop for example), some inverters (both logic gates or transistors / mosfets), or a mcu (either custom programmed or via PLC).

    Fairly straight forward.
     
  10. woodworkerjb

    Thread Starter New Member

    Mar 20, 2012
    7
    0
    Thanks you everyone. I will study up and play with a CD4027 and a 555 and see what I can come up with.

    JB
     
  11. dl324

    Distinguished Member

    Mar 30, 2015
    3,235
    619
    Here's something for you to think about:
    upload_2016-1-3_21-2-40.png

    Your control is 5V, but the rest of the circuit is operating at 12V.
     
  12. crutschow

    Expert

    Mar 14, 2008
    12,991
    3,227
    I was going to suggest a circuit similar to that of dl324 but he beat me to it
    But note that if the 5V signal if from a relay on the receiver then the circuit may need an added debounce circuit in front of the 4013 CLK input.
    Do you know if the receiver does have a relay output or is it just a 5V pulse?
     
  13. dl324

    Distinguished Member

    Mar 30, 2015
    3,235
    619
    I didn't complete my thought regarding the 5V control signal.

    The rising edge of the clock to the flip flop needs to be within a few volts of it's supply voltage. That's what Q1 and Q2 do.

    C1 is to initialize the flip flop in the set condition. The time constant is around 10,000 times the minimum set pulse width required.

    As crutschow mentioned, if the control switch has any bounce, the flip flop clock will require debouncing.
     
  14. Bordodynov

    Active Member

    May 20, 2015
    637
    188
    Using chip HEF4013B. This chip has a clock input hysteresis.
     
Loading...