Page 7 - ARM Based Microcontroller Projects Using MBED
P. 7
vi CONTENTS
7.14 Project 11—RGB LED Control 113 8.29 PROJECT 24—Sawtooth Waveform 226
7.15 Project 12—Random Colored LED 8.30 PROJECT 25—Triangular Waveform 228
Display 117 8.31 PROJECT 26—Sine Waveform 229
7.16 Project 13—7-Segment LED Display 120 8.32 PROJECT 27—Arbitrary Periodic
7.17 Project 14—Powering Large Loads—DC Motor Waveform 233
Control 130 8.33 PROJECT 28—Waveform Generator 235
7.18 Summary 133 8.34 Using the PWM 244
7.19 Exercises 134 8.35 PROJECT 29—Melody Maker 247
8.36 PROJECT 30—Electronic Organ 250
8. Intermediate Level Projects 8.37 PROJECT 31—Varying the LED
Brightness 254
8.1 Overview 135 8.38 Summary 257
8.2 PROJECT 1—Two-Digit Multiplexed 8.39 Exercises 259
7-Segment LED 135
8.3 PROJECT 2—Four-Digit Multiplexed 9. Motor Control Projects
7-Segment LED 139
8.4 Polling and Interrupts 146 9.1 Overview 261
8.5 PROJECT 3—Four-Digit 7-Segment LED 9.2 PROJECT 1—Simple Brushed DC Motor
Counter 148 Control 261
8.6 PROJECT 4—Four-Digit 7-Segment LED 9.3 PROJECT 2—Changing the Motor Rotation
Event Counter 150 Direction 264
8.7 PROJECT 5—7-Segment LED Dice 156 9.4 PROJECT 3—Simple Servo Motor Control 268
8.8 PC Serial Interface 160 9.5 PROJECT 4—Simple Stepper Motor
8.9 PROJECT 6—Volume of a Cylinder 165 Control 271
8.10 PROJECT 7—Calculator 167 9.6 Summary 279
8.11 PROJECT 8—Learn Your Times Tables 168 9.7 Exercises 279
8.12 PROJECT 9—Improving Your
Multiplication Skills 173 10. Using Liquid Crystal Displays (LCDs)
8.13 PROJECT 10—Loop Execution Times 174
8.14 PROJECT 11—Reaction Timer 178 10.1 Overview 281
8.15 PROJECT 12—Event Counter 179 10.2 PROJECT 1—Displaying Text on the
8.16 PROJECT 13—Hi-Lo Game 181 LCD 283
8.17 PROJECT 14—Serial Interrupt 184 10.3 PROJECT 2—External Interrupt-Driven Event
8.18 PROJECT 15—Euro Millionaire Lottery Counter 286
Numbers 188 10.4 PROJECT 3—Ultrasonic Height
8.19 Using the Analog-to-Digital Converter 191 Measurement 290
8.20 PROJECT 16—Digital Voltmeter 193 10.5 PROJECT 4—Calculator Using a Keypad 294
8.21 PROJECT 17—Analog Temperature Sensor 10.6 Summary 304
(Digital Thermometer) 196 10.7 Exercises 304
8.22 PROJECT 18—Digital Thermostat 201
2
8.23 PROJECT 19—ON/OFF Temperature 11. I C Bus Projects
Controller 206
8.24 PROJECT 20—Light Level Meter 211 11.1 Overview 305
2
8.25 PROJECT 21—Changing LED Flashing Rate 11.2 Nucleo-F411RE I C GPIO Pins 306
With a Potentiometer 214 11.3 PROJECT 1—TMP102 Temperature
8.26 PROJECT 22—Sound Level Meter 218 Sensor 307
8.27 Using the Digital-to-Analog Converter 221 11.4 Summary 312
8.28 PROJECT 23—Generating Fixed Voltage 224 11.5 Exercises 314