Connect with us

On/Flash/Off LED

Discussion in 'LEDs and Optoelectronics' started by Tommy_Ent, Nov 13, 2012.

Scroll to continue with content
  1. Tommy_Ent

    Tommy_Ent

    4
    0
    Nov 12, 2012
    Hi there.

    I'm trying to build a circuit that creates three states for an LED (on/flash/off), and is controlled with a momentary switch... something similar to your typical bicycle light.

    I need it to be small and cheap, and I only have room for one push button (otherwise I would just use a three position switch). Does anyone have any ideas of how to build this, or where to look? I'm stumped at the moment.

    Thanks,
    Tommy
     
  2. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    Kris will likely come along with some fancy circuit, but until then... :)

    Momentary switch with hardware debounce into a 4017s clock input... Output 1 of the 4017 toggles transistor that lights LED... Output 2 toggles a transistor that powers a 555 timer circuit, and thus flashes the LED... Output 3 is left floating, thus an 'off' state, note this is really not 'off' it's still drawing a little current as it waits for the next press... If this small drain in the 'off' position is a concern the circuit would need to be designed differently... And of course a few steering diodes on the LED so that output 1 & 2 don't cross...
     
  3. trondyne

    trondyne

    63
    0
    Oct 17, 2012
    Why not use a three position switch that in pos 1 is OFF, in pos 2 is ON and in pos 3 runs a blinker?
     
  4. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    He/she hinted why right after they said they only have room for the push button ;)

    I'm assuming changing the switch is not an option in their design...
     
  5. trondyne

    trondyne

    63
    0
    Oct 17, 2012
    Silly me... :eek: I guess that's the case, still a 3 pos toggle I would think would use a very small space. :/
     
    Last edited: Nov 13, 2012
  6. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    I guess it all depends on the actual layout or desired function, a toggle still requires back and forth movement (and your ability to manipulate it) and this might not be suitable to the design...
     
  7. Tommy_Ent

    Tommy_Ent

    4
    0
    Nov 12, 2012
    @CocaCola,

    Thank you for the suggestion, but I need something that does not draw much power as the momentary switch can be the only means of turning the device off. I'm really curious how other products do this, because it seems very common... even a dollar-store flashlight I found has this capability, but I still can't replicate it.

    I'm assuming that it's a dedicated IC, but where would I look for that sort of thing?
     
  8. Tommy_Ent

    Tommy_Ent

    4
    0
    Nov 12, 2012
    As for the 3 position switch idea, it needs to be a button to fit with the design. I'm an artist and product designer first, and an electronics designer only as needed ;)
     
  9. trondyne

    trondyne

    63
    0
    Oct 17, 2012
    Actually me too..

    I'm sure someone will post a circuit.. It's just a matter of applying some kind of sequential logic to the switching I'd guess..

    I'd be interested in seeing the flashlight in question--and the specs are unknown. What's inside?

    Jim
     
    Last edited: Nov 14, 2012
  10. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    You can replicate it real easy with a micro (like almost all commercial stuff uses) as newer micros go into deep sleep that for all practical purposes draw less current when they are sleeping then the batteries self drain just sitting there not hooked up to anything... There are also a few 'fancy' zero drain momentary on/off circuits out there but since you want additional logic on the same button, they are unusable... Or better stated not real practical in the end...

    To do this with a micro you, well need to be setup to do programming and burning of microchips and you also need to make sure your choice of chips offers extreme low current deep sleep modes...
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-