Book description
This 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
Table of contents
- Cover image
- Title page
- Table of Contents
- Copyright
- Preface
- Acknowledgments
- Chapter 1. Prepare for Liftoff!
- Chapter 2. Meet the LaunchPad
- Chapter 3. The Fellowship of the LaunchPad
- Chapter 4. Meet Energia—a Software Development Environment
- Chapter 5. Day in the Life of a Microcontroller
- Chapter 6. Think Digitally
- Chapter 7. The Ins and Outs of Digital I/O
-
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
- Appendix. Quick References
Product information
- Title: Getting Started with the MSP430 Launchpad
- Author(s):
- Release date: April 2013
- Publisher(s): Newnes
- ISBN: 9780124116009
You might also like
book
MSP430-based Robot Applications
This book provides a careful explanation of the basic areas of electronics and computer architecture, along …
book
Make: Technology on Your Time Volume 36
Boards, Boards, Boards! It’s all about the boards that are rocking the Maker world. We're in …
book
Programming PIC Microcontrollers with XC8
Learn how to use microcontrollers without all the frills and math. This book uses a practical …
book
Ad Hoc Mobile Wireless Networks, 2nd Edition
Now in its second edition, this volume explains the concepts, mechanism, design, and performance of ad …