
Getting Started with the MSP430 Launchpad
- 1st Edition - April 15, 2013
- Imprint: Newnes
- Authors: Adrian Fernandez, Dung Dang
- Language: English
- Paperback ISBN:9 7 8 - 0 - 1 2 - 4 1 1 5 8 8 - 0
- eBook ISBN:9 7 8 - 0 - 1 2 - 4 1 1 6 0 0 - 9
This book explores the world of microcontroller development through friendly lessons and progressively challenging projects, which will have you blink LEDs, make music with bu… Read more

Purchase options

Institutional subscription on ScienceDirect
Request a sales quoteThis book explores the world of microcontroller development through friendly lessons and progressively challenging projects, which will have you blink LEDs, make music with buzzers & interact with different sensors like accelerometers and temperature sensors. This book is focused on the MSP-EXP430G2 LaunchPad Evaluation Kit, which is a complete microcontroller development platform that includes everything you need to start creating microcontroller-based projects. Many of the 25+ projects will also leverage external components, such as the highly-integrated Educational BoosterPack, which is a modular extension to the LaunchPad and includes many components such as an RGB LED, character LCD & potentiometer.
This book provides helpful guides that break down hardware circuits through visual diagrams and includes fully-commented code examples. Concepts are broken down and explained in an easy to follow language and analogies to help you understand the principles behind each project/system. The projects will encourage you to use and even combine the fundamental concepts to develop your ideas in creating new microcontroller solutions.
Coverage includes:
- Digital Input/Output: buttons, LEDs, turning anything into a button
- Analog Input/Output: sensors, temperature, accelerometer, potentiometer, etc.
- Programming fundamentals: conditional branches & loops, flow, logic, number systems
- Pulse-Width Modulation (PWM): square wave, buzzer, analog signal simulation
- Serial Communication: UART, SPI & I2C
- Code development using Energia, a free, open-source code editor and compiler
- Debugging through serial communication with a computer
- Interfacing with external components such as LEDs, buzzers, potentiometers, sensors & more.
With the help of this book, you will be challenged to think about developing your own unique microcontroller-based application, and you will be equipped to start solving various problems, adding intelligence to existing products, or even developing your own innovative creations with a LaunchPad development kit.
- Includes over 25 projects which focuses on a learn by doing approach
- Contains easy to follow diagrams and code examples
- Covers Programming fundamentals, such as conditional branches and loops, flow, logic, number systems
- Preface
- Acknowledgments
- Chapter 1. Prepare for Liftoff!
- 1.1 Who Should Read This Book?
- 1.2 What to Expect Out of This Book
- 1.3 What Is Possible?
- Chapter 2. Meet the LaunchPad
- 2.1 The Brain, the Senses, and the Actions
- 2.2 Teach the LaunchPad
- 2.3 Inside the Box
- 2.4 Project 1: The First Encounter of the LaunchPad Kind
- Chapter 3. The Fellowship of the LaunchPad
- 3.1 Your Journey’s Companion
- 3.2 The Educational BoosterPack
- 3.3 The Breadboard
- 3.4 Breakout Board
- 3.5 Soldering
- 3.6 Electrical Etiquette
- 3.7 Recreating the Educational BoosterPack
- 3.8 So I’ve Got the Hardware, What About the Software?
- Chapter 4. Meet Energia—a Software Development Environment
- 4.1 How to Teach Your LaunchPad New Tricks
- 4.2 Get Energia
- 4.3 Project 2: LaunchPad’s First Trick—Blink
- 4.4 Looking at Our First Code Example
- 4.5 Modifying Our First Code Example
- 4.6 Breaking a Problem Down
- Chapter 5. Day in the Life of a Microcontroller
- 5.1 The Logical LaunchPad
- 5.2 If (hungry) {eat}
- 5.3 Conditionals
- 5.4 If (hungry) {eat} else {sleep}:
- 5.5 Multiple Choices with the Switch
- 5.6 Repetition+Condition=Loop
- 5.7 Project 3: LED Blink Counter
- 5.8 Your LaunchPad Just Got Educated!
- Chapter 6. Think Digitally
- 6.1 Binary: 0+1=65,536
- 6.2 Hexadecimal—Binary’s Big Brother
- 6.3 What’s with the Math Class?
- 6.4 Dissecting the LaunchPad’s Brain
- 6.5 Project 4: Controlling the LEDs the Hard Way!
- 6.6 Diving Deep to the Register Level
- Chapter 7. The Ins and Outs of Digital I/O
- 7.1 Project 5: Reading a Button Input
- 7.2 Configuring I/O
- 7.3 How a Button Works
- 7.4 Digitizing Voltage
- 7.5 Beyond LEDs and Buttons
- 7.6 Project 6: Turn Anything into an Input
- 7.7 EE101—Ohm’s Law
- 7.8 Your Resistance Is Futile
- Chapter 8. Analog: The Infinite Shades of Gray
- 8.1 Beyond Black and White
- 8.2 Project 7: Our First Analog Experiment—The Potentiometer
- 8.3 Reading Analog Signals with Energia
- 8.4 Project 8: Analog-to-Digital Signal Chain
- 8.5 Project 9: Our First Debug Session—A Look Inside Our LaunchPad Brain
- 8.6 Digitizing an Analog Signal
- 8.7 Project 10: Battery-Life Tester
- 8.8 Types of Analog Signals
- 8.9 Project 11: Is It Hot in Here?
- 8.10 Project 12: Fun with Forces
- 8.11 Analog Output
- 8.12 Project 13: Analogwrite() with One LED
- 8.13 Project 14: House Cleaning and Coding Best Practices
- 8.14 Project 15: Heart Beat
- 8.15 Project 16: Mixing Colors with an RGB LED
- 8.16 Analog-to-Analog Signal Chain
- 8.17 Project 17: Analog-to-Analog Signal Chain: Potentiometer→White LED
- 8.18 Project 17: Analog-to-Analog Signal Chain: Accelerometer→RGB
- 8.19 Analog Wrap Up
- Chapter 9. 1s and 0s Revisited: The Digital Stream
- 9.1 The Flexible Digital World
- 9.2 Pulse-Width Modulation
- 9.3 What? Analogwrite() Is a Lie
- 9.4 Project 17: Square Wave and a Buzzer
- 9.5 Project 18: Doe, a Deer, a Female Deer (Music with LaunchPad)
- 9.6 Project 19: Musical Instrument—Potentiometer to Buzzer
- 9.7 Project 20: Musical Instrument Part 2—Accelerometer to Buzzer
- 9.8 Wrapping Up the Digital Stream
- Chapter 10. The Languages of LaunchPad
- 10.1 LaunchPad—A Social Butterfly
- 10.2 A Multilingual LaunchPad
- 10.3 Project 21: LaunchPad, Meet Computer, Computer, Meet LaunchPad (with UART)
- 10.4 “What Is You-Art?”
- 10.5 Project 22: Echo! Echo! Echo! Echo!
- 10.6 Translating LaunchPad—Speak with ASCII
- 10.7 The Hardware Behind UART
- 10.8 Project 23: Controlling LaunchPad with Commands from Computer
- 10.9 Project 24: The Color Picker
- 10.10 Serial Peripheral Interface
- 10.11 Project 25: Hello World with LCD
- 10.12 Project 26: A Magic Eight Ball LaunchPad
- 10.13 Other Languages
- 10.14 Wrapping Up the Languages of LaunchPad
- Chapter 11. LaunchPad is Just the Beginning
- 11.1 We Did It
- 11.2 Looking Back
- Appendix. Quick References
- Energia Pin Mapping
- Using the Educational BoosterPack
- Edition: 1
- Published: April 15, 2013
- No. of pages (Paperback): 200
- No. of pages (eBook): 200
- Imprint: Newnes
- Language: English
- Paperback ISBN: 9780124115880
- eBook ISBN: 9780124116009
AF
Adrian Fernandez
DD
Dung Dang
Within the area of development tools, Dung started the work on the LaunchPad since its inception, created the very first BoosterPacks, and has since continued to develop and support the ecosystem surrounding this tool. Through this work, he has been privileged and fortunate to witness the excitement and the warm reception of the LaunchPad in the community. This inspires Dung to keep on making and contributing to this incredible and ever-growing community of makers.
Dung lives in Dallas, TX with his wife Kacy, who lovingly puts up with his late nights, and Buck, a Border Collie who never fails to outsmart him.