Potentiometer Help

Discussion in 'The Projects Forum' started by MikeNdaMaddawg66, Jun 3, 2009.

  1. MikeNdaMaddawg66

    Thread Starter New Member

    Jun 3, 2009
    2
    0
    Hello,
    I've recently been given a project in a fairly beginner electronics class. I have to use a potentiometer to light a green LED in the extreme clockwise position, yellow in the extreme counterclockwise position, and red when it is at the center position. I can do this using analog or digital. Any suggestions? Any help would be greatly appreciated.
     
  2. Søren

    Senior Member

    Sep 2, 2006
    472
    28
    Hi,

    A window comparator would be an easy way to do it.
     
  3. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Do you have a choice as to the value of the potentiometer?

    Have been given a specific set of power supply voltages you must use?

    Are you free to choose your own LED lamps or are they pre-specified?

    hgmjr
     
  4. MikeNdaMaddawg66

    Thread Starter New Member

    Jun 3, 2009
    2
    0
    Yes, I do have a choice as to what potentiometer to use, and we must use 9v battery. Also, the LED lamps are pre-specified.
     
  5. CDRIVE

    Senior Member

    Jul 1, 2008
    2,223
    99
    This is a class project so I didn't include any values or the 5V reg that powers this from a 9V bat. This is the Picaxe 08M microcontroller wired up and programmed as an ADC that will do what you want easily.

    http://www.rev-ed.co.uk/picaxe/
     
Loading...