Implement state machine without using MCU

Discussion in 'General Electronics Chat' started by rbgautam, Oct 29, 2015.

  1. rbgautam

    Thread Starter New Member

    Nov 22, 2014
    1
    0
    I want to implement a simple lighting circuit, which moves from one state to another using a simple momentary switch. The modes are as follows:
    Bright mode -> Dim Mode -> Strobing mode -> Off

    I want to use only one switch and minimum of components.
     
  2. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    What's stopping you?
     
  3. DickCappels

    Moderator

    Aug 21, 2008
    2,658
    632
    [​IMG]
    Google Search: debounced sequencer with CD4017

    Does this give you any ideas?
     
  4. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    It will be hard to stop it on the desired state.
     
  5. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    Controlling the clock?
     
  6. AnalogKid

    Distinguished Member

    Aug 1, 2013
    4,542
    1,251
    Here on earth there are 47,139 different kinds of lights (I checked). Which one is yours?

    ak
     
  7. Roderick Young

    Member

    Feb 22, 2015
    408
    168
    That's exactly the behavior of our TechLite Lumen Master flashlight. Maybe there is a mass-produced flashlight chip that you can buy, or you can harvest the circuit from a flashlight?

    Alternatively, why not use an MCU? A simple one like a PICAXE 08M2 is capable of doing what you want, including debouncing the pushbutton. Not that hard to learn, and trivial to program (you just use BASIC). Comes in an 8-pin DIP, that's pretty simple and small. No external oscillators. About all you would need is an external pass transistor to handle the current of your LED.
     
  8. PeterCoxSmith

    Member

    Feb 23, 2015
    148
    38
    Use a 4 stage ring counter circulating 1000. Clock with the switch, with debounce. Enable each mode by one-hot state.
     
  9. WBahn

    Moderator

    Mar 31, 2012
    17,757
    4,800
    This seems a lot like a homework assignment. Is it?
     
Loading...