Guide

1/12/2018 mbed Starter Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/mbed-starter-kit-experiment-guide/all 20/65
mbed Starter Kit - Part 4: Accelerometer SparkFun Wish List
Can you make the circle grow and shrink in size?
Can you make the circle speed up and slow down?
Can you make the text move around the screen?
Can you make a scrolling text marquee? (Hint: Look at how we create text and how we move objects around the screen)
Can you draw a rectangle instead of a circle? (Hint: see Jim Hamblen’s Demo Code)
Digging Deeper
Read more about UART and Serial Communications as well as mbed’s Serial library
Learn about the history of computer graphics
Try out Jim Hamblen’s other uLCD-144-G2 demo program. Can you get video to play on your LCD?
Experiment 4: Accelerometer
Using the graphic LCD from the previous tutorial, we will connect a sensor to add an interactive component to our project. We can use an MMA8452Q 3-axis
accelerometer to move a ball around the screen for a cool demo.
Suggested Reading
I2C
Accelerometer Basics
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.
Heads up! For anyone ordering the parts separately from the SparkFun mbed starter kit, you will need to solder the header to the accelerometer's breakout
board.
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…
Serial Miniature LCD Module - 1.44" (uLCD-144-G2 GFX)
LCD-11377
The µLCD-144-G2(GFX) is a compact and cost effective display module using the latest state of the art LCD (TFT) technology with an embedded GOLDELOX-…
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…
Breadboard - Self-Adhesive (White)
PRT-12002
This is your tried and true white solderless breadboard. It has 2 power buses, 10 columns, and 30 rows - a total of 400 tie in points. All pins are sp…
SparkFun Triple Axis Accelerometer Breakout - MMA8452Q
SEN-12756
This breakout board makes it easy to use the tiny MMA8452Q accelerometer in your project. The MMA8452Q is a smart low-power, three-axis, capacitive ME…
Break Away Headers - Straight
PRT-00116
A row of headers - break to fit. 40 pins that can be cut to any size. Used with custom PCBs or general custom headers.**Features: *** Pin Style: Squar…
Schematic