Book 6
Working with Arduino Microprocessors
Contents at a Glance
Chapter 1: Introducing Arduino
Introducing the Arduino UNO
Buying an UNO Starter Kit
Installing the Arduino IDE
Connecting to an UNO
Looking at a Simple Arduino Sketch
Running the Blink Program
Using a Digital I/O Pin to Control an LED
Project 43: Blinking an LED with an Arduino UNO
Chapter 2: Creating Arduino Sketches
Introducing C
Building a Test Circuit
Project 44: An Arduino LED Test Board
Flashing the LEDs
Using Comments
Creating Identifiers
Using Variables
Doing Math
A Program That Uses Variables and Math
Using If Statements
Using While Loops
Using For Loops
Crafting Your Own Functions
Chapter 3: More Arduino Programming Tricks
Using a Push Button with an Arduino
Checking the Status of a Switch in Arduino
Project 45: A Push-Button Controlled Arduino LED Flasher
Randomizing Your Programs
Reading a Value from a Potentiometer
Project 46: A Variable-Rate LED Flasher
Chapter 4: An Arduino Proximity Sensor
Using an Ultrasonic Range Finder
Using an LCD
Building a Proximity Sensor
Project 47: An Arduino Proximity Sensor