Blinking your LED on the MSP430 LaunchPad(Onboard and then with a breadboard)Level: Beginner
What you will need:
A Video that demonstrates the below can be found at this link: http://youtu.be/0-1LGptbBw4
*You may want to verify that the MSP430 being programmed matches the one on your LaunchPad You can find this on the bottom row status window. You can change which chip you are working with by going to Tools--> Boards--> Selecting the same as your LaunchPad
Once you wire up your LaunchPad, return to Energia. You will be changing any of the pins from Pin 14 (default LED Blink) to Pin 6 (any other output pin will work, but I chose 6)
Verify and Upload Code
Congratulations! Blinking LED on breadboard
I'd encourage you to play around with the different timings and connections on the MSP430 LaunchPad. Example: Change the times from 1000 to 15, 500, 25, and upload the program.
Look at how it changes the blinking LED.
If you change the different pins (from 6 to 2, or 2 to 14) you'll see the LaunchPad and the LED behave differently.
What can you do now that you know how to blink an LED?Since Halloween is around the corner, I decided to make a Jack-o-lantern!
By changing the times of the digital read and writes in the sketches I got a fast flickering LED that sorta looks like a candle. How to Make the Paper Pumpkin: Just used orange paper and the origami WaterBomb (only tricky part is to cover up the eyes and mouth when you blow up the paper balloon, I used painter's tape then peeled it off). http://www.youtube.com/watch?v=tSMLk_zGzf4
Next goal for MSP430 beginners - learn about timers and interrupts. Then you can replace the delay(1000) with some code to put the MSP430 into sleep and let it wake up after a second. That would be a Hal-low-power-ween lamp, wouldn't it?
That's a good idea Ravi!
I hope everyone shares their Halloween projects on the Microcontroller Projects pages!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.