Psyelmer9's Page
  • Blog

MSP430 Simple Traffic Light

4/28/2012

9 Comments

 
Simple code for the msp430 launchpad to drive 6 LEDs as if they were traffic lights. The 3 LEDs on the right are BLED, YLED and RLED. The ones on the left are BLED2, YLED2, RLED2. An extra delay has been added when the light changes from red to green to simulate any prevention of accidents due to cars running a red light. 

Link for video at higher resolution

Schematic: For the schematic use resistors that matches with the forward voltage and current that LEDs need. Also note that this set up is for the video above. That said the pins are for the Launchpad, if need to be run by just the MSP430 a 47K Resistor needs to be added from the reset to VCC
                                                                                Schematic made with iCircuit app on Apple iPad
Picture
The code is below:

Read More
9 Comments

    Archives

    April 2016
    July 2015
    June 2015
    September 2014
    March 2013
    December 2012
    May 2012
    April 2012
    August 2011
    June 2011
    October 2010
    August 2009
    May 2009

    psyelmer9

    Computer Tech, interest in gaining a greater knowledge about most subjects, specially computer related.

    Categories

    All
    Apple
    Arduino
    C Code
    Ccs Code
    Haiku
    IPad
    Linux
    Microsoft Excel
    Msp430
    Poems
    PowerShell
    Quotes
    Tutorial
    Ubuntu
    Windows

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Blog