Welcome to the TI Microcontroller projects page! Feel free to share your latest and greatest projects and designs based on TI microcontrollers. Or if you’re not quite ready to contribute, please browse around and rate the your favorite projects! This is a great place to get new design ideas, resources & inspiration.

Fun with LEDs and MSP430 and Cap Touch BoosterPack

PROJECT NAME: Fun with LEDs and MSP430 and Cap Touch BoosterPack
SUB PROJECT NAMEs:
1. Count Up
2. LED Driver for Cap Touch BoosterPack
3. Circle Game

TEAM MEMBERS:
Michelle Geppert
Brent DeVetter

PROJECT DESCRIPTION
1. CountUp.c counts from 0 to 9 repeatly by using leds to display the count
2. LEDdriver.c receives UART commands from the Capacitive Touch BoosterPack demo code.
When it receives
wake-up command: it does the same led blink sequence as the Capacitive Touch BoosterPack.
sleep command: it turns on the center led.
middle button command: it turns the center led on then off the next time.
any other command: the outside lights blink off then on then off.
3. CircleGame.c receives UART commands from the Capacitive Touch BoosterPack demo code.
The LEDs turn on one at a time and in such a way that the looks like it is going around in a circle.
When the center button on the Capacitive Touch BoosterPack is pushed, the light stops moving.
If the light stops on the center LED, then you have "won" and all the outside LEDs flash on then off.
If the lights stops on one of the other LEDs, then you have "lost" and the LEDs turn on in a counter clockwise sequence.
The game resets when the Capacitive Touch BoosterPack goes to sleep or an outside button is pressed.


PROJECT FEATURES:
It was cheap to create.
CountUp.c requires launchpad, bread board, 14 LEDs, and 14 200ohm resistors.
LEDdriver.c requires 2 launchpads, 1 Capacitive Touch BoosterPack, bread board, 9 LEDs, and 9 200ohm resistors.
CircleGame.c requires 2 launchpads, 1 Capacitive Touch BoosterPack, bread board, 9 LEDs, and 9 200ohm resistors.

1. CountUp.c provides an example on how to use multiple pins and timing
2. LEDdriver.c gets UART commands from Capacitive Touch BoosterPack demo code, which provides an example on how to interact with Cap Touch BoosterPack.
It also handles multiple UART commands.
3. CircleGame.c is a fun game that allows the user to practice hand-eye coordination.


USER'S GUIDE:

1. CountUp.c
Setup:
CountUp.c uses 7 output pins and 1 GND pin
P1.0 (BIT0) connects to the LEDs on top of the digital
P1.4 (BIT4) connects to the LEDs on top right of the digital
P1.5 (BIT5) connects to the LEDs on bottom right of the digital
P1.7 (BIT7) connects to the LEDs on top left of the digital
P1.6 (BIT6) connects to the LEDs on bottom left of the digital
P2.1 (BIT1) connects to the LEDs on middle of the digital
P2.2 (BIT2) connects to the LEDs on bottom of the digital
pin GND connects to ground
All LEDs have a 200 ohm resistor in series before gnd.
/*----------------- LED definition---------------------------------------------
P1.0
P1.7 P1.4
P2.1
P1.6 P1.5
P2.2
*----------------------------------------------------------------------------*/

2. LEDdriver.c
Setup:
The first msp430 is loaded with this code
The second msp430 is loaded with the Capacitive Touch BoosterPack demo code
P1.2(RX) connects to P1.1(TX) (the UART transmitter) on the msp430 that is connected to the Capacitive Touch BoosterPack
P1.0 (BIT0) connects to the center LED
P1.4 (BIT4) connects to the 30 degree LED
P1.3 (BIT3) connects to the 60 degree LED
P1.7 (BIT7) connects to the 120 degree LED
P1.6 (BIT6) connects to the 150 degree LED
P2.2 (BIT2) connects to the 210 degree LED
P2.1 (BIT1) connects to the 240 degree LED
P2.0 (BIT0) connects to the 300 degree LED
P1.5 (BIT5) connects to the 330 degree LED
pin 20 (GND) connects to ground
All LEDs have a 200 ohm resistor in series before gnd.


3. CircleGame.c
Setup:
The first msp430 is loaded with this code
The second msp430 is loaded with the Capacitive Touch BoosterPack demo code
P1.2(RX) connects to P1.1(TX) (the UART transmitter) on the msp430 that is connected to the Capacitive Touch BoosterPack
P1.0 (BIT0) connects to the center LED
P1.4 (BIT4) connects to the 30 degree LED
P1.3 (BIT3) connects to the 60 degree LED
P1.7 (BIT7) connects to the 120 degree LED
P1.6 (BIT6) connects to the 150 degree LED
P2.2 (BIT2) connects to the 210 degree LED
P2.1 (BIT1) connects to the 240 degree LED
P2.0 (BIT0) connects to the 300 degree LED
P1.5 (BIT5) connects to the 330 degree LED
pin GND connects to ground
All LEDs have a 200 ohm resistor in series before gnd.

The LED setup is the same for both CircleGame and LEDdriver.
/*----------------- LED definition---------------------------------------------
P1 BIT7 P1 BIT3
P1 BIT6 P1 BIT4
P1 BIT0
P2 BIT2 P1 BIT5
P2 BIT1 P2 BIT0
*----------------------------------------------------------------------------*/

 

 

6507.CountUp.c

8233.LEDdriver.c

4101.CircleGame.c

2678.uart.c

2021.uart.h

Comments
  • re: Fun with LEDs and MSP430 and Cap Touch BoosterPack

    It won't let me edit, so here are the video links.

    Count Up Video

    www.youtube.com/watch

    LED Driver Video

    www.youtube.com/watch

    Circle Game Video

    www.youtube.com/watch

  • Fun with LEDs and MSP430 and Cap Touch BoosterPack

    sir,I tried led driver.c program..

    inthis i kept ,msp4302452  with launchpad and capacitive touch booster pack..i m fine with errors but ii think that the commmunication between two launchpads doesnt work ..so,would u pls suggest me any thing..