Guide

1/12/2018 mbed Starter Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/mbed-starter-kit-experiment-guide/all 7/65
mbed Starter Kit - Part 2: Buttons and PWM SparkFun Wish List
Going Further
This is just the beginning! You got a taste of the mbed Compiler and built your first program. Now that you understand how to use the mbed Compiler, we will
move on to more advanced topics and show you how to connect other pieces of hardware to make the LPC1768 do fun and interesting things.
Beyond the Tutorial
Can you make the LED blink slower?
Can you make another LED blink?
Can you make an LED blink exactly 10 times and then stop? (Hint: the while(1) loop continues forever. How would you modify that to stop after 10 times?)
Digging Deeper
Read about mbed’s SDK
Read about mbed’s HDK
Read about mbed’s Compiler
Read about mbed’s website
Take a look at mbed’s Handbook, which has official mbed libraries
Take a look at mbed’s Cookbook, which has user-submitted libraries and projects
Experiment 2: Buttons and PWM
Now that you have had a chance to set up your mbed account and blink an LED, we will move on to simple human interaction: pushbuttons! In this tutorial, we
add 3 pushbuttons to the LPC1768 and use them to control the colors in an RGB LED.
The Circuit
This circuit can be made with parts in the SparkFun mbed Starter Kit. Also, keep in mind that the LPC1768 box contains a USB mini-B cable for programming
and power.
Parts List
To follow this experiment, you would will need the following materials if you did not order the SparkFun mbed starter kit. You may not need everything though
depending on what you have. Add it to your cart, read through the guide, and adjust the cart as necessary. The experiment will be using 3x 330Ohm and 3x
10kOhm resistors.
Resistor 10K Ohm 1/4 Watt PTH - 20 pack (Thick Leads)
PRT-14491
Resistor 330 Ohm 1/4 Watt PTH - 20 pack (Thick Leads)
PRT-14490
mbed - LPC1768 (Cortex-M3)
DEV-09564
The mbed microcontroller is an ARM processor, a comprehensive set of peripherals and a USB programming and communication interface provided in a small…
(3) Momentary Pushbutton Switch - 12mm Square
COM-09190
This is a standard 12mm square momentary button. What we really like is the large button head and good tactile feel (it 'clicks' really well). This bu…
LED - RGB Clear Common Cathode
COM-00105
Ever hear of a thing called RGB? Red, Green, Blue? How about an RGB LED? These 5mm units have four pins - Cathode is the longest pin. One for each col…
Jumper Wires Standard 7" M/M - 30 AWG (30 Pack)
PRT-11026
If you need to knock up a quick prototype there's nothing like having a pile of jumper wires to speed things up, and let's face it: sometimes you want…