Circuit help - cut off when microswitch changes state - not just opens

Discussion in 'The Projects Forum' started by Yakshaver, Feb 3, 2015.

  1. Yakshaver

    Thread Starter New Member

    Oct 9, 2014
    4
    0
    I would like to build the following circuit. A user holds down a button for a few seconds that then powers a motor to position 1 where a microswitch is trggered and cuts power to the motor. the user then releases button. Then again the user holds down a button for a few seconds that then powers a motor to position 2 where a microswitch is trggered and cuts pwr to the motor. user then releases button. then the next operation it's back to position 1.

    I have built the 1st part where the motor stops when the microswitch opens but I am stuck on how to get the behaviour above. Any help appreciated.

    Thanks.
     
  2. Reloadron

    Active Member

    Jan 15, 2015
    963
    232
    Same button? How large of a motor as in voltage and current?

    Ron
     
  3. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    OK so you seem to have 0 ---- 1 ---- 2

    it starts at '0', the user presses the button and the motor runs until something driven by the motor hits '1'; do they hold the button down until the motor stops or is it a momentary press and it runs until '1'?

    They then press the same button again and it runs until it hits '2'

    The next press causes it to go from '2' to '1', I assume this means running the motor backwards?

    What sort of technology do you have in mind, relays, transistors, logic gates, micro-controller?
     
  4. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,794
    1,103
    Is the motor rotation direction always the same (i.e. are the stop positions on a circular path)?
     
  5. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    The solution that makes most sense to me is a state machine as you have a number of states here:

    1- Do nothing till button press
    2- Power motor till trip sensor
    3- Do nothing till button press
    4- Power motor till trip sensor
    5- Not sure what happans here as the description peters out, eventually get back to #1

    A counter can accomplish this, though a shift register may be a cleaner approach as each state is defined by a single output.

    No further suggestions are offered until the fuzzy step 5 is defined.
     
  6. Dodgydave

    Distinguished Member

    Jun 22, 2012
    4,980
    744
    A cd4017 counter, button press clocks the outputs, triggers a timer to run motor till it stops, last stop resets counter.
     
Loading...